Mining Text Data    Charu C. Aggarwal • ChengXiang Zhai
Editors

Mining Text Data

Library of Congress Control Number: 2012930923

Printed on acid-free paper Springer is part of Springer Science+Business Media (www.springer.com) All rights reserved. This work may not be translated or copied in whole or in part without the written permission of the publisher (Springer Science+Business Media, LLC, 233 Spring Street, New York, NY 10013, USA), except for brief excerpts in connection with reviews or scholarly analysis. Use inconnection with any form of information storage and retrieval, electronic adaptation, computer software,or by similar or dissimilar methodology now known or hereafter developed is forbidden.The use in this publication of trade names, trademarks, service marks, and similar terms, even if theyare not identified as such, is not to be taken as an expression of opinion as to whether or not they aresubject to proprietary rights. Springer New York Dordrecht Heidelberg LondonISBN978-1-4614-3222-7e-ISBN978-1-4614-3223-4DOI10.1007/978-1-4614-© Springer Science+Business Media, LLC 2012EditorsCharu C. AggarwalIBM T.J. Watson Research CenterYorktown Heights, NY, USAcharu@us.ibm.comUniversity of Illinois at Urbana-ChampaignUrbana, IL, USAczhai@cs.uiuc.edu3223-4ChengXiang ZhaiContents1AnIntroductiontoTextMining1CharuC.AggarwalandChengXiangZhai1.Introduction12.AlgorithmsforTextMining43.FutureDirections8References102InformationExtractionfromText11JingJiang1.Introduction112.NamedEntityRecognition152.1Rule-basedApproach162.2StatisticalLearningApproach173.RelationExtraction223.1Feature-basedClassiﬁcation233.2KernelMethods263.3WeaklySupervisedLearningMethods294.UnsupervisedInformationExtraction304.1RelationDiscoveryandTemplateInduction314.2OpenInformationExtraction325.Evaluation336.ConclusionsandSummary34References353ASurveyofTextSummarizationTechniques43AniNenkovaandKathleenMcKeown1.HowdoExtractiveSummarizersWork?442.TopicRepresentationApproaches462.1TopicWords462.2Frequency-drivenApproaches482.3LatentSemanticAnalysis522.4BayesianTopicModels532.5SentenceClusteringandDomain-dependentTopics553.InﬂuenceofContext563.1WebSummarization573.2SummarizationofScientiﬁcArticles58vfor Summarization

2.

Feature Selection and Transformation Methods for Text
Clustering

81

5
Dimensionality Reduction and Topic Modeling
Steven P. Crain, Ke Zhou, Shuang-Hong Yang and Hongyuan Zha

1.

2.

3.

4.

Introduction
1.1

The Relationship Between Clustering, Dimension
Reduction and Topic Modeling
Notation and Concepts

The Procedure of Latent Semantic Indexing
Implementation Issues
Analysis

1.2
Latent Semantic Indexing
2.1
2.2
2.3
Topic Models and Dimension Reduction
3.1
3.2
Interpretation and Evaluation

Probabilistic Latent Semantic Indexing
Latent Dirichlet Allocation

129

130

131
132
133
134
135
137
139
140
142
148

viMININGTEXTDATA3.3Query-focusedSummarization583.4EmailSummarization594.IndicatorRepresentationsandMachineLearning4.1GraphMethodsforSentenceImportance604.2MachineLearningforSummarization625.SelectingSummarySentences645.1GreedyApproaches:MaximalMarginalRelevance645.2GlobalSummarySelection656.Conclusion66References664ASurveyofTextClusteringAlgorithms77CharuC.AggarwalandChengXiangZhai1.Introduction772.1FeatureSelectionMethods812.2LSI-basedMethods842.3Non-negativeMatrixFactorization863.Distance-basedClusteringAlgorithms893.1AgglomerativeandHierarchicalClusteringAlgorithms903.2Distance-basedPartitioningAlgorithms923.3AHybridApproach:TheScatter-GatherMethod944.WordandPhrase-basedClustering994.1ClusteringwithFrequentWordPatterns1004.2LeveragingWordClustersforDocumentClusters1024.3Co-clusteringWordsandDocuments1034.4ClusteringwithFrequentPhrases1055.ProbabilisticDocumentClusteringandTopicModels1076.OnlineClusteringwithTextStreams1107.ClusteringTextinNetworks1158.Semi-SupervisedClustering1189.ConclusionsandSummary120References12160Contentsvii4.1Interpretation1484.2Evaluation1494.3ParameterSelection1504.4DimensionReduction1505.BeyondLatentDirichletAllocation1515.1Scalability1515.2DynamicData1515.3NetworkedData1525.4AdaptingTopicModelstoApplications1546.Conclusion155References1566ASurveyofTextClassiﬁcationAlgorithms163CharuC.AggarwalandChengXiangZhai1.Introduction1632.FeatureSelectionforTextClassiﬁcation1672.1GiniIndex1682.2InformationGain1692.3MutualInformation1692.4χ2-Statistic1702.5FeatureTransformationMethods:SupervisedLSI1712.6SupervisedClusteringforDimensionalityReduction1722.7LinearDiscriminantAnalysis1732.8GeneralizedSingularValueDecomposition1752.9InteractionofFeatureSelectionwithClassiﬁcation1753.DecisionTreeClassiﬁers1764.Rule-basedClassiﬁers1785.ProbabilisticandNaiveBayesClassiﬁers1815.1BernoulliMultivariateModel1835.2MultinomialDistribution1885.3MixtureModelingforTextClassiﬁcation1906.LinearClassiﬁers1936.1SVMClassiﬁers1946.2Regression-BasedClassiﬁers1966.3NeuralNetworkClassiﬁers1976.4SomeObservationsaboutLinearClassiﬁers1997.Proximity-basedClassiﬁers2008.ClassiﬁcationofLinkedandWebData2039.Meta-AlgorithmsforTextClassiﬁcation2099.1ClassiﬁerEnsembleLearning2099.2DataCenteredMethods:BoostingandBagging2109.3OptimizingSpeciﬁcMeasuresofAccuracy21110.ConclusionsandSummary213References2137TransferLearningforTextMining223WeikePan,ErhengZhongandQiangYang1.Introduction2242.TransferLearninginTextClassiﬁcation2252.1CrossDomainTextClassiﬁcation225viiiMININGTEXTDATA2.2Instance-basedTransfer2312.3Cross-DomainEnsembleLearning2322.4Feature-basedTransferLearningforDocumentﬁcation2353.HeterogeneousTransferLearning2393.1HeterogeneousFeatureSpace2413.2HeterogeneousLabelSpace2433.3Summary2444.Discussion2455.Conclusions246References2478ProbabilisticModelsforTextMining259YizhouSun,HongboDengandJiaweiHan1.Introduction2602.MixtureModels2612.1GeneralMixtureModelFramework2622.2VariationsandApplications2632.3TheLearningAlgorithms2663.StochasticProcessesinBayesianNonparametricModels2693.1ChineseRestaurantProcess2693.2DirichletProcess2703.3Pitman-YorProcess2743.4Others2754.GraphicalModels2754.1BayesianNetworks2764.2HiddenMarkovModels2784.3MarkovRandomFields2824.4ConditionalRandomFields2854.5OtherModels2865.ProbabilisticModelswithConstraints2876.ParallelLearningAlgorithms2887.Conclusions289References2909MiningTextStreams297CharuC.Aggarwal1.Introduction2972.ClusteringTextStreams2992.1TopicDetectionandTrackinginTextStreams3073.ClassiﬁcationofTextStreams3124.EvolutionAnalysisinTextStreams3165.Conclusions317References31810TranslingualMiningfromTextData323Jian-YunNie,JianfengGaoandGuihongCao1.Introduction3242.TraditionalTranslingualTextMining–MachineTranslation325ClassiContentsix2.1SMTandGenerativeTranslationModels3252.2Word-BasedModels3272.3Phrase-BasedModels3292.4Syntax-BasedModels3333.AutomaticMiningofParalleltexts3363.1UsingWebstructure3373.2Matchingparallelpages3394.UsingTranslationModelsinCLIR3415.CollectingandExploitingComparableTexts3446.SelectingParallelSentences,PhrasesandTranslationWords3477.MiningTranslingualRelationsFromMonolingualTexts3498.Miningusinghyperlinks3519.ConclusionsandDiscussions353References35411TextMininginMultimedia361Zheng-JunZha,MengWang,JialieShenandTat-SengChua1.Introduction3622.SurroundingTextMining3643.TagMining3663.1TagRanking3663.2TagReﬁnement3673.3TagInformationEnrichment3694.JointTextandVisualContentMining3704.1VisualRe-ranking3715.CrossTextandVisualContentMining3746.SummaryandOpenIssues377References37912TextAnalyticsinSocialMedia385XiaHuandHuanLiu1.Introduction3852.DistinctAspectsofTextinSocialMedia3882.1AGeneralFrameworkforTextAnalytics3882.2TimeSensitivity3902.3ShortLength3912.4UnstructuredPhrases3922.5AbundantInformation3933.ApplyingTextAnalyticstoSocialMedia3933.1EventDetection3933.2CollaborativeQuestionAnswering3953.3SocialTagging3973.4BridgingtheSemanticGap3983.5ExploitingthePowerofAbundantInformation3993.6RelatedEﬀorts4014.AnIllustrativeExample4024.1SeedPhraseExtraction4024.2SemanticFeatureGeneration4044.3FeatureSpaceConstruction4065.ConclusionandFutureWork407References408xMININGTEXTDATA13ASurveyofOpinionMiningandSentimentAnalysis415BingLiuandLeiZhang1.TheProblemofOpinionMining4161.1OpinionDeﬁnition4161.2Aspect-BasedOpinionSummary4202.DocumentSentimentClassiﬁcation4222.1ClassiﬁcationbasedonSupervisedLearning4222.2ClassiﬁcationbasedonUnsupervisedLearning4243.SentenceSubjectivityandSentimentClassiﬁcation4264.OpinionLexiconExpansion4294.1Dictionarybasedapproach4294.2Corpus-basedapproachandsentimentconsistency4305.Aspect-BasedSentimentAnalysis4325.1AspectSentimentClassiﬁcation4335.2BasicRulesofOpinions4345.3AspectExtraction4385.4SimultaneousOpinionLexiconExpansionandAspectExtraction4406.MiningComparativeOpinions4417.SomeOtherProblems4448.OpinionSpamDetection4478.1SpamDetectionBasedonSupervisedLearning4488.2SpamDetectionBasedonAbnormalBehaviors4498.3GroupSpamDetection4509.UtilityofReviews45110.Conclusions452References45314BiomedicalTextMining:ASurveyofRecentProgress465MatthewS.SimpsonandDinaDemner-Fushman1.Introduction4662.ResourcesforBiomedicalTextMining4672.1Corpora4672.2Annotation4692.3KnowledgeSources4702.4SupportingTools4713.InformationExtraction4723.1NamedEntityRecognition4733.2RelationExtraction4783.3EventExtraction4824.Summarization4845.QuestionAnswering4885.1MedicalQuestionAnswering4895.2BiologicalQuestionAnswering4916.Literature-BasedDiscovery4927.Conclusion495References496Index519xiPrefaceTheimportanceoftextminingapplicationshasincreasedinrecentyearsbecauseofthelargenumberofweb-enabledapplicationswhichleadtothecreationofsuchdata.Whileclassicalapplicationshavefocussedonprocessingandminingrawtext,theadventofwebenabledapplicationsrequiresnovelmethodsforminingandprocessing,suchastheuseoflinkage,multi-lingualinformationorthejointminingoftextwithotherkindsofmultimediadatasuchasimagesorvideos.Inmanycases,thishasalsoleadtothedevelopmentofotherrelatedareasofresearchsuchasheterogeneoustransferlearning.Animportantcharacteristicofthisareaisthatithasbeenexploredbymultiplecommunitiessuchasdatamining,machinelearningandinformationretrieval.Inmanycases,thesecommunitiestendtohavesomeoverlap,butarelargelydisjointandcarryontheirresearchin-dependently.Oneofthegoalsofthisbookistobringtogetherre-searchersofdiﬀerentcommunitiestogetherinordertomaximizethecross-disciplinaryunderstandingofthisarea.Anotheraspectofthetextminingareaisthatthereseemstobeadistinctsetofresearchersworkingonneweraspectsoftextmininginthecontextofemergingplatformssuchasdatastreamsandsocialnetworks.Thisbookisalsoanattempttodiscussboththeclassicalandmodernaspectsoftextmininginauniﬁedway.Chaptersaredevotedtomanyclassicalmethodssuchasclustering,classiﬁcationandtopicmodeling.Inaddition,wealsostudydiﬀerentaspectsoftextmininginthecontextofmodernapplicationsinsocialandinformationnetworks,andsocialmedia.Manynewapplicationssuchasdatastreamshavealsobeenexploredfortheﬁrsttimeinthisbook.Eachchapterinthebookisstructuredasacomprehensivesurveywhichdiscussesthekeymodelsandalgorithmsfortheparticulararea.Inadditionthefuturetrendsandresearchdirectionsarepresentedineachchapter.Itishopedthatthisbookwillprovideacomprehensiveunderstandingoftheareatostudents,professorsandresearchers.    Chapter1ANINTRODUCTIONTOTEXTMININGCharuC.AggarwalIBMT.J.WatsonResearchCenterYorktownHeights,NYcharu@us.ibm.comChengXiangZhaiUniversityofIllinoisatUrbana-ChampaignUrbana,ILczhai@cs.uiuc.eduAbstractTheproblemoftextmininghasgainedincreasingattentioninrecentyearsbecauseofthelargeamountsoftextdata,whicharecreatedinavarietyofsocialnetwork,web,andotherinformation-centricapplica-tions.Unstructureddataistheeasiestformofdatawhichcanbecreatedinanyapplicationscenario.Asaresult,therehasbeenatremendousneedtodesignmethodsandalgorithmswhichcaneﬀectivelyprocessawidevarietyoftextapplications.Thisbookwillprovideanoverviewofthediﬀerentmethodsandalgorithmswhicharecommoninthetextdomain,withaparticularfocusonminingmethods.1.IntroductionDataminingisaﬁeldwhichhasseenrapidadvancesinrecentyears[8]becauseoftheimmenseadvancesinhardwareandsoftwaretechnologywhichhasleadtotheavailabilityofdiﬀerentkindsofdata.Thisisparticularlytrueforthecaseoftextdata,wherethedevelopmentofhardwareandsoftwareplatformsforthewebandsocialnetworkshasenabledtherapidcreationoflargerepositoriesofdiﬀerentkindsofdata.Inparticular,thewebisatechnologicalenablerwhichencouragesthe © Springer Science+Business Media, LLC 2012 1 C.C. Aggarwal and C.X. Zhai(eds.),Mining Text Data, DOI 10.1007/978-1-4614-3223-4_1,2MININGTEXTDATAcreationofalargeamountoftextcontentbydiﬀerentusersinaformwhichiseasytostoreandprocess.Theincreasingamountsoftextdataavailablefromdiﬀerentapplicationshascreatedaneedforadvancesinalgorithmicdesignwhichcanlearninterestingpatternsfromthedatainadynamicandscalableway.Whilestructureddataisgenerallymanagedwithadatabasesystem,textdataistypicallymanagedviaasearchengineduetothelackofstructures[5].Asearchengineenablesausertoﬁndusefulinforma-tionfromacollectionconvenientlywithakeywordquery,andhowtoimprovetheeﬀectivenessandeﬃciencyofasearchenginehasbeenacentralresearchtopicintheﬁeldofinformationretrieval[13,3],wheremanyrelatedtopicstosearchsuchastextclustering,textcategoriza-tion,summarization,andrecommendersystemsarealsostudied[12,9,7].However,researchininformationretrievalhastraditionallyfocusedmoreonfacilitatinginformationaccess[13]ratherthananalyzinginfor-mationtodiscoverpatterns,whichistheprimarygoaloftextmining.Thegoalofinformationaccessistoconnecttherightinformationwiththerightusersattherighttimewithlessemphasisonprocessingortransformationoftextinformation.Textminingcanberegardedasgo-ingbeyondinformationaccesstofurtherhelpusersanalyzeanddigestinformationandfacilitatedecisionmaking.Therearealsomanyapplica-tionsoftextminingwheretheprimarygoalistoanalyzeanddiscoveranyinterestingpattterns,includingtrendsandoutliers,intextdata,andthenotionofaqueryisnotessentialorevenrelevant.Technically,miningtechniquesfocusontheprimarymodels,algo-rithmsandapplicationsaboutwhatonecanlearnfromdiﬀerentkindsoftextdata.Someexamplesofsuchquestionsareasfollows:Whataretheprimarysupervisedandunsupervisedmodelsforlearningfromtextdata?Howaretraditionalclusteringandclas-siﬁcationproblemsdiﬀerentfortextdata,ascomparedtothetra-ditionaldatabaseliterature?Whataretheusefultoolsandtechniquesusedforminingtextdata?Whicharetheusefulmathematicaltechniqueswhichoneshouldknow,andwhicharerepeatedlyusedinthecontextofdif-ferentkindsoftextdata?Whatarethekeyapplicationdomainsinwhichsuchminingtech-niquesareused,andhowaretheyeﬀectivelyapplied?Anumberofkeycharacteristicsdistinguishtextdatafromotherformsofdatasuchasrelationalorquantitativedata.ThisnaturallyaﬀectstheAnIntroductiontoTextMining3miningtechniqueswhichcanbeusedforsuchdata.Themostimportantcharacteristicoftextdataisthatitissparseandhighdimensional.Forexample,agivencorpusmaybedrawnfromalexiconofabout100,000words,butagiventextdocumentmaycontainonlyafewhundredwords.Thus,acorpusoftextdocumentscanberepresentedasasparseterm-documentmatrixofsizen×d,whennisthenumberofdocuments,anddisthesizeofthelexiconvocabulary.The(i,j)thentryofthismatrixisthe(normalized)frequencyofthejthwordinthelexiconindocumenti.Thelargesizeandthesparsityofthematrixhasimmediateimplica-tionsforanumberofdataanalyticaltechniquessuchasdimensionalityreduction.Insuchcases,themethodsforreductionshouldbespeciﬁ-callydesignedwhiletakingthischaracteristicoftextdataintoaccount.Thevariationinwordfrequenciesanddocumentlengthsalsoleadtoanumberofissuesinvolvingdocumentrepresentationandnormalization,whicharecriticalfortextmining.Furthermore,textdatacanbeanalyzedatdiﬀerentlevelsofrepresen-tation.Forexample,textdatacaneasilybetreatedasabag-of-words,oritcanbetreatedasastringofwords.However,inmostapplica-tions,itwouldbedesirabletorepresenttextinformationsemanticallysothatmoremeaningfulanalysisandminingcanbedone.Forexam-ple,representingtextdataatthelevelofnamedentitiessuchaspeople,organizations,andlocations,andtheirrelationsmayenablediscoveryofmoreinterestingpatternsthanrepresentingtextasabagofwords.Unfortunately,thestateoftheartmethodsinnaturallanguageprocess-ingarestillnotrobustenoughtoworkwellinunrestrictedtextdomainstogenerateaccuratesemanticrepresentationoftext.Thusmosttextminingapproachescurrentlystillrelyonthemoreshallowword-basedrepresentations,especiallythebag-of-wrodsapproach,which,whilelos-ingthepositioninginformationinthewords,isgenerallymuchsimplertodealwithfromanalgorithmicpointofviewthanthestring-basedapproach.Inspecialdomains(e.g.,biomedicaldomain)andforspecialminingtasks(e.g.,extractionofknowledgefromtheWeb),naturallan-guageprocessingtechniques,especiallyinformationextraction,arealsoplayinganimportantroleinobtainingasemanticallymoremeaningfulrepresentationoftext.Recently,therehasbeenrapidgrowthoftextdatainthecontextofdiﬀerentweb-basedapplicationssuchassocialmedia,whichoftenoccurinthecontextofmultimediaorotherheterogeneousdatadomains.Therefore,anumberoftechniqueshaverecentlybeendesignedforthejointminingoftextdatainthecontextofthesediﬀerentkindsofdatadomains.Forexample,theWebcontainstextandimagedatawhichareoftenintimatelyconnectedtoeachotherandtheselinkscanbeused4MININGTEXTDATAtoimprovethelearningprocessfromonedomaintoanother.Similarly,cross-linguallinkagesbetweendocumentsofdiﬀerentlanguagescanalsobeusedinordertotransferknowledgefromonelanguagedomaintoanother.Thisiscloselyrelatedtotheproblemoftransferlearning[11].Therestofthischapterisorganizedasfollows.Thenextsectionwilldiscussthediﬀerentkindsofalgorithmsandapplicationsfortextmining.Wewillalsopointoutthespeciﬁcchaptersinwhichtheyarediscussedinthebook.Section3willdiscusssomeinterestingfutureresearchdirections.2.AlgorithmsforTextMiningInthissection,wewillexplorethekeyproblemsarisinginthecon-textoftextmining.Wewillalsopresenttheorganizationofthediﬀerentchaptersofthisbookinthecontextofthesediﬀerentproblems.Wein-tentionallyleavethedeﬁnitionoftheconcept”textmining”vaguetobroadlycoveralargesetofrelatedtopicsandalgorithmsfortextanal-ysis,spanningmanydiﬀerentcommunities,includingnaturallanguageprocessing,informationretrieval,datamining,machinelearning,andmanyapplicationdomainssuchastheWorldWideWebandBiomedi-calScience.Wehavealsointentionallyallowed(sometimessigniﬁcant)overlapsbetweenchapterstoalloweachchaptertoberelativelyselfcontained,thususefulasastanding-alonechapterforlearningaboutaspeciﬁctopic.InformationExtractionfromTextData:InformationExtractionisoneofthekeyproblemsoftextmining,whichservesasastartingpointformanytextminingalgorithms.Forexample,extractionofenti-tiesandtheirrelationsfromtextcanrevealmoremeaningfulsemanticinformationintextdatathanasimplebag-of-wordsrepresentation,andisgenerallyneededtosupportinferencesaboutknowledgeburiedintextdata.Chapter2providesansurveyofkeyproblemsinInformationEx-tractionandthemajoralgorithmsforextractingentitiesandrelationsfromtextdata.TextSummarization:Anothercommonfunctionneededinmanytextminingapplicationsistosummarizethetextdocumentsinordertoob-tainabriefoverviewofalargetextdocumentorasetofdocumentsonatopic.Summarizationtechniquesgenerallyfallintotwocategories.Inextractivesummarization,asummaryconsistsofinformationunitsex-tractedfromtheoriginaltext;incontrast,inabstractivesummarization,asummarymaycontain“synthesized”informationunitsthatmaynotnecessarilyoccurinthetextdocuments.Mostexistingsummarizationmethodsareextractive,andinChapter3,wegiveabriefsurveyoftheseAnIntroductiontoTextMining5commonlyusedsummarizationmethods.UnsupervisedLearningMethodsfromTextData:Unsupervisedlearningmethodsdonotrequireanytrainingdata,thuscanbeappliedtoanytextdatawithoutrequiringanymanualeﬀort.Thetwomainun-supervisedlearningmethodscommonlyusedinthecontextoftextdataareclusteringandtopicmodeling.Theproblemofclusteringisthatofsegmentingacorpusofdocumentsintopartitions,eachcorrespond-ingtoatopicalcluster.Theproblemsofclusteringandtopicmodelingarecloselyrelated.Intopicmodelingweuseaprobabilisticmodelinordertodetermineasoftclustering,inwhicheachdocumenthasamembershipprobabilityofthecluster,asopposedtoahardsegmenta-tionofthedocuments.Topicmodelscanbeconsideredastheprocessofclusteringwithagenerativeprobabilisticmodel.Eachtopiccanbeconsideredaprobabilitydistributionoverwords,withtherepresentativewordshavingthehighestprobability.Eachdocumentcanbeexpressedasaprobabilisticcombinationofthesediﬀerenttopics.Thus,atopiccanbeconsideredtobeanalogoustoacluster,andthemembershipofadocumenttoaclusterisprobabilisticinnature.Thisalsoleadstoamoreelegantclustermembershiprepresentationincasesinwhichthedocumentisknowntocontaindistincttopics.Inthecaseofhardclustering,itissometimeschallengingtoassignadocumenttoasin-gleclusterinsuchcases.Furthermore,topicmodelingrelateselegantlytothedimensionreductionproblem,whereeachtopicprovidesacon-ceptualdimension,andthedocumentsmayberepresentedasalinearprobabilisticcombinationofthesediﬀerenttopics.Thus,topic-modelingprovidesanextremelygeneralframework,whichrelatestoboththeclus-teringanddimensionreductionproblems.Inchapter4,westudytheproblemofclustering,whiletopicmodelingiscoveredintwochapters(Chapters5and8).InChapter5,wediscusstopicmodelingfromtheperspectiveofdimensionreductionsincethediscoveredtopicscanserveasalow-dimensionalspacerepresentationoftextdata,wheresemanti-callyrelatedwordscan“match”eachother,whichishardtoachievewithbag-of-wordsrepresentation.Inchapter8,topicmodelingisdis-cussedasageneralprobabilisticmodelfortextmining.LSIandDimensionalityReductionforTextMining:Theprob-lemofdimensionalityreductioniswidelystudiedinthedatabaseliter-atureasamethodforrepresentingtheunderlyingdataincompressedformatforindexingandretrieval[10].Avariationofdimensionalityre-ductionwhichiscommonlyusedfortextdataisknownaslatentseman-ticindexing[6].Oneoftheinterestingcharacteristicsoflatentsemanticindexingisthatitbringsourthekeysemanticaspectsofthetextdata,whichmakesitmoresuitableforavarietyofminingapplications.Forex-6MININGTEXTDATAample,thenoiseeﬀectsofsynonymyandpolysemyarereducedbecauseoftheuseofsuchdimensionalityreductiontechniques.Anotherfamilyofdimensionreductiontechniquesareprobabilistictopicmodels,notablyPLSA,LDA,andtheirvariants;theyperformdimensionreductioninaprobabilisticwaywithpotentiallymoremeaningfultopicrepresentationsbasedonworddistributions.Inchapter5,wewilldiscussavarietyofLSIanddimensionalityreductiontechniquesfortextdata,andtheiruseinavarietyofminingapplications.SupervisedLearningMethodsforTextData:Supervisedlearningmethodsaregeneralmachinelearningmethodsthatcanexploittrain-ingdata(i.e.,pairsofinputdatapointsandthecorrespondingdesiredoutput)tolearnaclassiﬁerorregressionfunctionthatcanbeusedtocomputepredictionsonunseennewdata.Sinceawiderangeofapplica-tionproblemscanbecastasaclassiﬁcationproblem(thatcanbesolvedusingsupervisedlearning),theproblemofsupervisedlearningissome-timesalsoreferredtoasclassiﬁcation.Mostofthetraditionalmethodsfortextmininginthemachinelearningliteraturehavebeenextendedtosolveproblemsoftextmining.Theseincludemethodssuchasrule-basedclassiﬁer,decisiontrees,nearestneighborclassiﬁers,maximum-marginclassiﬁers,andprobabilisticclassiﬁers.InChapter6,wewillstudymachinelearningmethodsforautomatedtextcategorization,amajorapplicationareaofsupervisedlearningintextmining.AmoregeneraldiscussionofsupervisedlearningmethodsisgiveninChapter8.Aspecialclassoftechniquesinsupervisedlearningtoaddresstheissueoflackoftrainingdata,calledtransferlearning,arecoveredinChapter7.TransferLearningwithTextData:Theafore-mentionedexampleofcross-lingualminingprovidesacasewheretheattributesofthetextcollectionmaybeheterogeneous.Clearly,thefeaturerepresentationsinthediﬀerentlanguagesareheterogeneous,anditcanoftenprovideuse-fultotransferknowledgefromonedomaintoanother,especiallywhentheirispaucityofdatainonedomain.Forexample,labeledEnglishdocumentsarecopiousandeasytoﬁnd.Ontheotherhand,itismuchhardertoobtainlabeledChinesedocuments.Theproblemoftransferlearningattemptstotransferthelearnedknowledgefromonedomaintoanother.Someotherscenariosinwhichthisarisesisthecasewherewehaveamixtureoftextandmultimediadata.Thisisoftenthecaseinmanyweb-basedandsocialmediaapplicationssuchasFlickr,Youtubeorothermultimediasharingsites.Insuchcases,itmaybedesirabletotransferthelearnedknowledgefromonedomaintoanotherwiththeuseofcross-mediatransfer.Chapter7providesadetailedsurveyofsuchlearningtechniques.AnIntroductiontoTextMining7ProbabilisticTechniquesforTextMining:Avarietyofprobabilis-ticmethods,particularlyunsupervisedtopicmodelssuchasPLSAandLDAandsupervisedlearningmethodssuchasconditionalrandomﬁeldsareusedfrequentlyinthecontextoftextminingalgorithms.Sincesuchmethodsareusedfrequentlyinawidevarietyofcontexts,itisusefultocreateanorganizedsurveywhichdescribesthediﬀerenttoolsandtechniquesthatareusedinthiscontext.InChapter8,weintroducethebasicsofthecommonprobabilisticmodelsandmethodswhichareoftenusedinthecontextoftextmining.Thematerialinthischapterisalsorelevanttomanyoftheclustering,dimensionalityreduction,topicmodelingandclassiﬁcationtechniquesdiscussedinChapters4,5,6and7.MiningTextStreams:Manyrecentapplicationsonthewebcreatemassivestreamsoftextdata.Inparticularwebapplicationssuchassocialnetworkswhichallowthesimultaneousinputoftextfromawidevarietyofuserscanresultinacontinuousstreamoflargevolumesoftextdata.Similarly,newsstreamssuchasReutersoraggregatorssuchasGooglenewscreatelargevolumesofstreamswhichcanbeminedcon-tinuously.Suchtextdataaremorechallengingtomine,becausetheyneedtobeprocessedinthecontextofaone-passconstraint[1].Theone-passconstraintessentiallymeansthatitmaysometimesbediﬃculttostorethedataoﬄineforprocessing,anditisnecessarytoperformtheminingtaskscontinuously,asthedatacomesin.Thismakesalgo-rithmicdesignamuchmorechallengingtask.Inchapter9,westudythecommontechniqueswhichareoftenusedinthecontextofavarietyoftextminingtasks.Cross-LingualMiningofTextData:Withtheproliferationofweb-basedandotherinformationretrievalapplicationstootherapplications,ithasbecomeparticularlyusefultoapplyminingtasksindiﬀerentlan-guages,orusetheknowledgeorcorporainonelanguagetoanother.Forexample,incross-languagemining,itmaybedesirabletoclusteragroupofdocumentsindiﬀerentlanguages,sothatdocumentsfromdif-ferentlanguagesbutsimilarsemantictopicsmaybeplacedinthesamecluster.Suchcross-lingualapplicationsareextremelyrich,becausetheycanoftenbeusedtoleverageknowledgefromonedatadomainintoan-other.Inchapter10,wewillstudymethodsforcross-lingualminingoftextdata,coveringtechniquessuchasmachinetranslation,cross-lingualinformationretrieval,andanalysisofcomparableandparallelcorpora.TextMininginMultimediaNetworks:TextoftenoccursinthecontextofmanymultimediasharingsitessuchasFlickrorYoutube.Anaturalquestionarisesastowhetherwecanenrichtheunderlyingminingprocessbysimultaneouslyusingthedatafromotherdomains8MININGTEXTDATAtogetherwiththetextcollection.Thisisalsorelatedtotheproblemoftransferlearning,whichwasdiscussedearlier.Inchapter11,adetailedsurveywillbeprovidedonminingothermultimediadatatogetherwithtextcollections.TextMininginSocialMedia:Oneofthemostcommonsourcesoftextonthewebisthepresenceofsocialmedia,whichallowshumanactorstoexpressthemselvesquicklyandfreelyinthecontextofawiderangeofsubjects[2].Socialmediaisnowexploitedwidelybycommer-cialsitesforinﬂuencingusersandtargetedmarketing.Theprocessofminingtextinsocialmediarequiresthespecialabilitytominedynamicdatawhichoftencontainspoorandnon-standardvocabulary.Further-more,thetextmayoccurinthecontextoflinkedsocialnetworks.Suchlinkscanbeusedinordertoimprovethequalityoftheunderlyingmin-ingprocess.Forexample,methodsthatusebothlinkandcontent[4]arewidelyknowntoprovidemuchmoreeﬀectiveresultswhichuseonlycontentorlinks.Chapter12providesadetailedsurveyoftextminingmethodsinsocialmedia.OpinionMiningfromTextData:Aconsiderableamountoftextonwebsitesoccursinthecontextofproductreviewsoropinionsofdiﬀerentusers.Miningsuchopinionatedtextdatatorevealandsummarizetheopinionsaboutatopichaswidespreadapplications,suchasinsupport-ingconsumersforoptimizingdecisionsandbusinessintelligence.spamopinionswhicharenotusefulandsimplyaddnoisetotheminingpro-cess.Chapter13providesadetailedsurveyofmodelsandmethodsforopinionminingandsentimentanalysis.TextMiningfromBiomedicalData:Textminingtechniquesplayanimportantroleinbothenablingbiomedicalresearcherstoeﬀectivelyandeﬃcientlyaccesstheknowledgeburiedinlargeamountsofliteratureandsupplementingtheminingofotherbiomedicaldatasuchasgenomesequences,geneexpressiondata,andproteinstructurestofacilitateandspeedupbiomedicaldiscovery.Asaresult,agreatdealofresearchworkhasbeendoneinadaptingandextendingstandardtextminingmethodstothebiomedicaldomain,suchasrecognitionofvariousbiomedicalen-titiesandtheirrelations,textsummarization,andquestionanswering.Chapter14providesadetailedsurveyofthemodelsandmethodsusedforbiomedicaltextmining.3.FutureDirectionsTherapidgrowthofonlinetextualdatacreatesanurgentneedforpowerfultextminingtechniques.Asaninterdisciplinaryﬁeld,textdataminingspansmultipleresearchcommunities,especiallydatamining,AnIntroductiontoTextMining9naturallanguageprocessing,informationretrieval,andmachinelearn-ingwithapplicationsinmanydiﬀerentareas,andhasattractedmuchattentionrecently.Manymodelsandalgorithmshavebeendevelopedforvarioustextminingtaskshavebeendevelopedaswediscussedaboveandwillbesurveyedintherestofthisbook.Lookingforward,weseethefollowinggeneralfuturedirectionsthatarepromising:Scalableandrobustmethodsfornaturallanguageunder-standing:Understandingtextinformationisfundamentaltotextmining.Whilethecurrentapproachesmostlyrelyonbagofwordsrepresentation,itisclearlydesirabletogobeyondsuchasimplerepresentation.Informationextractiontechniquesprovideonestepforwardtowardsemanticrepresentation,butthecurrentinforma-tionextractionmethodsmostlyrelyonsupervisedlearningandgenerallyonlyworkwellwhensuﬃcienttrainingdataareavail-able,restrictingitsapplications.Itisthusimportanttodevelopeﬀectiveandrobustinformationextractionandothernaturallan-guageprocessingmethodsthatcanscaletomultipledomains.Domainadaptationandtransferlearning:Manytextmin-ingtasksrelyonsupervisedlearning,whoseeﬀectivenesshighlydependsontheamountoftrainingdataavailable.Unfortunately,itisgenerallylabor-intensivetocreatelargeamountsoftrainingdata.Domainadaptationandtransferlearningmethodscanal-leviatethisproblembyattemptingtoexploittrainingdatathatmightbeavailableinarelateddomainorforarelatedtask.How-ever,thecurrentapproachesstillhavemanylimitationsandaregenerallyinadequatewhenthereisnoorlittletrainingdatainthetargetdomain.Furtherdevelopmentofmoreeﬀectivedomainadaptationandtransferlearningmethodsisnecessaryformoreeﬀectivetextmining.Contextualanalysisoftextdata:Textdataisgenerallyassoci-atedwithalotofcontextinformationsuchasauthors,sources,andtime,ormorecomplicatedinformationnetworksassociatedwithtextdata.Inmanyapplications,itisimportanttoconsiderthecontextaswellasuserpreferencesintextmining.Itisthusimpor-tanttofurtherextendexistingtextminingapproachestofurtherincorporatecontextandinformationnetworksformorepowerfultextanalysis.Paralleltextmining:Inmanyapplicationsoftextmining,theamountoftextdataishugeandislikelyincreasingovertime,10MININGTEXTDATAthusitisinfeasibletostorethedatainonemachine,makingitnecessarytodevelopparalleltextminingalgorithmsthatcanrunonaclusterofcomputerstoperformtextminingtasksinparallel.Inparticular,howtoparallelizeallkindsoftextminingalgorithms,includingbothunsupervisedandsupervisedlearningmethodsisamajorfuturechallenge.Thisdirectionisclearlyrelatedtocloudcomputinganddata-intensivecomputing,whicharegrowingﬁeldsthemselves.References[1]C.Aggarwal.DataStreams:ModelsandAlgorithms,Springer,2007.[2]C.Aggarwal.SocialNetworkDataAnalytics,Springer,2011.[3]R.A.Baeza-Yates,B.A.Ribeiro-Neto,ModernInformationRe-trieval-theconceptsandtechnologybehindsearch,Secondedition,PearsonEducationLtd.,Harlow,England,2011.[4]S.Chakrabarti,B.Dom,P.Indyk.EnhancedHypertextCategoriza-tionusingHyperlinks,ACMSIGMODConference,1998.[5]W.B.Croft,D.Metzler,T.Strohma,SearchEngines-InformationRetrievalinPractice,PearsonEducation,2009.[6]S.Deerwester,S.Dumais,T.Landauer,G.Furnas,R.Harshman.IndexingbyLatentSemanticAnalysis.JASIS,41(6),pp.391–407,1990.[7]D.A.Grossman,O.Frieder,InformationRetrieval:AlgorithmsandHeuristics(TheKluwerInternationalSeriesonInformationRe-trieval),Springer-VerlagNewYork,Inc,2004.[8]J.Han,M.Kamber.DataMining:ConceptsandTechniques,2ndEdition,MorganKaufmann,2005.[9]C.Manning,P.Raghavan,H.Schutze,IntroductiontoInformationRetrieval,CambridgeUniversityPress,2008.[10]I.T.Jolliﬀee.PrincipalComponentAnalysis.Springer,2002.[11]S.J.Pan,Q.Yang.ASurveyonTransferLearning,IEEETrans-actionsonKnowledgeandDataEngineering,22(10):pp1345–1359,Oct.2010.[12]G.Salton.AnIntroductiontoModernInformationRetrieval,McGrawHill,1983.[13]K.SparckJonesP.Willett(ed.).ReadingsinInformationRetrieval,MorganKaufmannPublishersInc,1997.C.C. Aggarwal and C.X. Zhai (eds.), Mining Text Data, DOI 10.1007/978-1-4614-3223-4_2,

Chapter2INFORMATIONEXTRACTIONFROMTEXTJingJiangSingaporeManagementUniversityjingjiang@smu.edu.sgAbstractInformationextractionisthetaskofﬁndingstructuredinformationfromunstructuredorsemi-structuredtext.Itisanimportanttaskintextminingandhasbeenextensivelystudiedinvariousresearchcommu-nitiesincludingnaturallanguageprocessing,informationretrievalandWebmining.Ithasawiderangeofapplicationsindomainssuchasbiomedicalliteratureminingandbusinessintelligence.Twofundamen-taltasksofinformationextractionarenamedentityrecognitionandrelationextraction.Theformerreferstoﬁndingnamesofentitiessuchaspeople,organizationsandlocations.ThelatterreferstoﬁndingthesemanticrelationssuchasFounderOfandHeadquarteredInbetweenen-tities.Inthischapterweprovideasurveyofthemajorworkonnamedentityrecognitionandrelationextractioninthepastfewdecades,withafocusonworkfromthenaturallanguageprocessingcommunity.Keywords:Informationextraction,namedentityrecognition,relationextraction1.IntroductionInformationextractionfromtextisanimportanttaskintextmin-ing.Thegeneralgoalofinformationextractionistodiscoverstructuredinformationfromunstructuredorsemi-structuredtext.Forexample,giventhefollowingEnglishsentence,In1998,LarryPageandSergeyBrinfoundedGoogleInc.wecanextractthefollowinginformation,FounderOf(LarryPage,GoogleInc.),FounderOf(SergeyBrin,GoogleInc.),FoundedIn(GoogleInc.,1998).© Springer Science+Business Media, LLC 2012 11 
 
12MININGTEXTDATASuchinformationcanbedirectlypresentedtoanenduser,ormorecommonly,itcanbeusedbyothercomputersystemssuchassearchenginesanddatabasemanagementsystemstoprovidebetterservicestoendusers.Informationextractionhasapplicationsinawiderangeofdomains.Thespeciﬁctypeandstructureoftheinformationtobeextractedde-pendontheneedoftheparticularapplication.Wegivesomeexampleapplicationsofinformationextractionbelow:Biomedicalresearchersoftenneedtosiftthroughalargeamountofscientiﬁcpublicationstolookfordiscoveriesrelatedtopartic-ulargenes,proteinsorotherbiomedicalentities.Toassistthiseﬀort,simplesearchbasedonkeywordmatchingmaynotsuﬃcebecausebiomedicalentitiesoftenhavesynonymsandambiguousnames,makingithardtoaccuratelyretrieverelevantdocuments.Acriticaltaskinbiomedicalliteratureminingisthereforetoau-tomaticallyidentifymentionsofbiomedicalentitiesfromtextandtolinkthemtotheircorrespondingentriesinexistingknowledgebasessuchastheFlyBase.Financialprofessionalsoftenneedtoseekspeciﬁcpiecesofinforma-tionfromnewsarticlestohelptheirday-to-daydecisionmaking.Forexample,aﬁnancecompanymayneedtoknowallthecompanytakeoversthattakeplaceduringacertaintimespanandthedetailsofeachacquisition.Automaticallyﬁndingsuchinformationfromtextrequiresstandardinformationextractiontechnologiessuchasnamedentityrecognitionandrelationextraction.Intelligenceanalystsreviewlargeamountsoftexttosearchforin-formationsuchaspeopleinvolvedinterrorismevents,theweaponsusedandthetargetsoftheattacks.Whileinformationretrievaltechnologiescanbeusedtoquicklylocatedocumentsthatdescribeterrorismevents,informationextractiontechnologiesareneededtofurtherpinpointthespeciﬁcinformationunitswithinthesedocu-ments.WiththefastgrowthoftheWeb,searchengineshavebecomeanintegralpartofpeople’sdailylives,andusers’searchbehaviorsaremuchbetterunderstoodnow.Searchbasedonbag-of-wordrepre-sentationofdocumentscannolongerprovidesatisfactoryresults.Moreadvancedsearchproblemssuchasentitysearch,structuredsearchandquestionansweringcanprovideuserswithbettersearchexperience.Tofacilitatethesesearchcapabilities,informationex-InformationExtractionfromText13TerrorismTemplateSlotFillValueIncident:Date07Jan90Incident:LocationChile:MolinaIncident:TyperobberyIncident:StageofexecutionaccomplishedIncident:InstrumenttypegunHumanTarget:Name“EnriqueOrmazabalOrmazabal”HumanTarget:Description“Businessman”:“EnriqueOrmazabalOrmazabal”HumanTarget:Typecivilian:“EnriqueOrmazabalOrmazabal”HumanTarget:Number1:“EnriqueOrmazabalOrmazabal”......ASampleDocumentSantiago,10Jan90–PolicearecarryingoutintensiveoperationsinthetownofMolinaintheseventhregioninsearchofagangofallegedextremistswhocouldbelinkedtoarecentlydiscoveredarsenal.IthasbeenreportedthatCarabinerosinMolinaraidedthehouseofof25-year-oldworkerMarioMunozPardo,wheretheyfoundafalriﬂe,ammunitionclipsforvariousweapons,detonators,andmaterialformakingexplosives.ItshouldberecalledthatagroupofarmedindividualswearingskimasksrobbedabusinessmanonaruralroadnearMolinaon7January.Thebusinessman,EnriqueOrmazabalOrmazabal,triedtoresist;Themenshothimandlefthimseriouslywounded.HewaslaterhospitalizedinCurico.Carabineroscarriedoutseveraloperations,includingtheraidonMunoz’home.Thepolicearecontinuingtopatroltheareainsearchoftheallegedterroristcommand.Figure2.1.PartoftheterrorismtemplateusedinMUC-4andasampledocumentthatcontainsaterrorismevent.tractionisoftenneededasapreprocessingsteptoenrichdocumentrepresentationortopopulateanunderlyingdatabase.Whileextractionofstructuredinformationfromtextdatesbacktothe’70s(e.g.DeJong’sFRUMPprogram[28]),itonlystartedgainingmuchattentionwhenDARPAinitiatedandfundedtheMessageUn-derstandingConferences(MUC)inthe’90s[33].Sincethen,researcheﬀortsonthistopichavenotdeclined.EarlyMUCsdeﬁnedinformationextractionasﬁllingapredeﬁnedtemplatethatcontainsasetofprede-ﬁnedslots.Forexample,Figure2.1showsasubsetoftheslotsintheterrorismtemplateusedinMUC-4andasampledocumentfromwhichtemplateslotﬁllvalueswereextracted.Someoftheslotﬁllvaluessuchas“EnriqueOrmazabalOrmazabal”and“Businessman”wereextracteddirectlyfromthetextwhileotherssuchasrobbery,accomplishedandgunwereselectedfromapredeﬁnedvaluesetforthecorrespondingslotbasedonthedocument.14MININGTEXTDATATemplateﬁllingisacomplextaskandsystemsdevelopedtoﬁllonetemplatecannotdirectlyworkforadiﬀerenttemplate.InMUC-6,anumberoftemplate-independentsubtasksofinformationextractionweredeﬁned[33].Theseincludenamedentityrecognition,coreferencereso-lutionandrelationextraction.Thesetasksserveasbuildingblockstosupportfull-ﬂedged,domain-speciﬁcinformationextractionsystems.Earlyinformationextractionsystemssuchastheonesthatpartici-patedintheMUCsareoftenrule-basedsystems(e.g.[32,42]).Theyuselinguisticextractionpatternsdevelopedbyhumanstomatchtextandlocateinformationunits.Theycanachievegoodperformanceonthespeciﬁctargetdomain,butitislaborintensivetodesigngoodextractionrules,andthedevelopedrulesarehighlydomaindependent.Realizingthelimitationsofthesemanuallydevelopedsystems,researchersturnedtostatisticalmachinelearningapproaches.Andwiththedecompositionofinformationextractionsystemsintocomponentssuchasnamedentityrecognition,manyinformationextractionsubtaskscanbetransformedintoclassiﬁcationproblems,whichcanbesolvedbystandardsupervisedlearningalgorithmssuchassupportvectormachinesandmaximumen-tropymodels.Becauseinformationextractioninvolvesidentifyingseg-mentsoftextthatplaydiﬀerentroles,sequencelabelingmethodssuchashiddenMarkovmodelsandconditionalrandomﬁeldshavealsobeenwidelyused.Traditionallyinformationextractiontasksassumethatthestructurestobeextracted,e.g.thetypesofnamedentities,thetypesofrelations,orthetemplateslots,arewelldeﬁned.Insomescenarios,wedonotknowinadvancethestructuresoftheinformationwewouldliketoextractandwouldliketominesuchstructuresfromlargecorpora.Forexample,fromasetofearthquakenewsarticleswemaywanttoautomaticallydiscoverthatthedate,time,epicenter,magnitudeandcasualtyofanearthquakearethemostimportantpiecesofinformationreportedinnewsarticles.Therehavebeensomerecentstudiesonthiskindofunsupervisedinformationextractionproblemsbutoverallworkalongthislineremainslimited.Anothernewdirectionisopeninformationextraction,wherethesys-temisexpectedtoextractallusefulentityrelationsfromalarge,diversecorpussuchastheWeb.Theoutputofsuchsystemsincludesnotonlytheargumentsinvolvedinarelationbutalsoadescriptionoftherela-tionextractedfromthetext.RecentadvancesinthisdirectionincludesystemslikeTextRunner[6],Woe[66]andReVerb[29].Informationextractionfromsemi-structuredWebpageshasalsobeenanimportantresearchtopicinWebmining(e.g.[40,45,25]).Ama-jordiﬀerenceofWebinformationextractionfrominformationextractionInformationExtractionfromText15studiedinnaturallanguageprocessingisthatWebpagesoftencontainstructuredorsemi-structuredtextsuchastablesandlists,whoseextrac-tionreliesmoreonHTMLtagsthanlinguisticfeatures.Webinformationextractionsystemsarealsocalledwrappersandlearningsuchsystemsiscalledwrapperinduction.Inthissurveyweonlycoverinformationex-tractionfrompurelyunstructurednaturallanguagetext.Readerswhoareinterestedinwrapperinductionmayreferto[31,20]forin-depthsurveys.Inthischapterwefocusonthetwomostfundamentaltasksinin-formationextraction,namely,namedentityrecognitionandrelationex-traction.Thestate-of-the-artsolutionstobothtasksrelyonstatisticalmachinelearningmethods.Wealsodiscussunsupervisedinformationextraction,whichhasnotattractedmuchattentiontraditionally.Therestofthischapterisorganizedasfollows.Section2discussescurrentapproachestonamedentityrecognition,includingrule-basedmethodsandstatisticallearningmethods.Section3discussesrelationextractionunderbothafullysupervisedsettingandaweaklysupervisedsetting.WethendiscussunsupervisedrelationdiscoveryandopeninformationextractioninSection4.InSection5wediscussevaluationofinformationextractionsystems.WeﬁnallyconcludeinSection6.2.NamedEntityRecognitionAnamedentityisasequenceofwordsthatdesignatessomereal-worldentity,e.g.“California,”“SteveJobs”and“AppleInc.”Thetaskofnamedentityrecognition,oftenabbreviatedasNER,istoidentifynamedentitiesfromfree-formtextandtoclassifythemintoasetofpredeﬁnedtypessuchasperson,organizationandlocation.Oftentimesthistaskcannotbesimplyaccomplishedbystringmatchingagainstpre-compiledgazetteersbecausenamedentitiesofagivenentitytypeusuallydonotformaclosedsetandthereforeanygazetteerwouldbeincomplete.Anotherreasonisthatthetypeofanamedentitycanbecontext-dependent.Forexample,“JFK”mayrefertotheperson“JohnF.Kennedy,”thelocation“JFKInternationalAirport,”oranyotherentitysharingthesameabbreviation.Todeterminetheentitytypefor“JFK”occurringinaparticulardocument,itscontexthastobeconsidered.Namedentityrecognitionisprobablythemostfundamentaltaskininformationextraction.Extractionofmorecomplexstructuressuchasrelationsandeventsdependsonaccuratenamedentityrecognitionasapreprocessingstep.Namedentityrecognitionalsohasmanyapplicationsapartfrombeingabuildingblockforinformationextraction.Inquestion16MININGTEXTDATAanswering,forexample,candidateanswerstringsareoftennamedenti-tiesthatneedtobeextractedandclassiﬁedﬁrst[44].Inentity-orientedsearch,identifyingnamedentitiesindocumentsaswellasinqueriesistheﬁrststeptowardshighrelevanceofsearchresults[34,21].Althoughthestudyofnamedentityrecognitiondatesbacktotheearly’90s[56],thetaskwasformallyintroducedin1995bythesixthMessageUnderstandingConference(MUC-6)asasubtaskofinformationextrac-tion[33].Sincethen,NERhasdrawnmuchattentionintheresearchcommunity.Therehavebeenseveralevaluationprogramsonthistask,includingtheAutomaticContentExtraction(ACE)program[1],thesharedtaskoftheConferenceonNaturalLanguageLearning(CoNLL)in2002and2003[63],andtheBioCreAtIvE(CriticalAssessmentofInformationExtractionSystemsinBiology)challengeevaluation[2].Themostcommonlystudiednamedentitytypesareperson,organiza-tionandlocation,whichwereﬁrstdeﬁnedbyMUC-6.Thesetypesaregeneralenoughtobeusefulformanyapplicationdomains.Extractionofexpressionsofdates,times,monetaryvaluesandpercentages,whichwasalsointroducedbyMUC-6,isoftenalsostudiedunderNER,althoughstrictlyspeakingtheseexpressionsarenotnamedentities.Besidesthesegeneralentitytypes,othertypesofentitiesareusuallydeﬁnedforspe-ciﬁcdomainsandapplications.Forexample,theGENIAcorpususesaﬁne-grainedontologytoclassifybiologicalentities[52].Inonlinesearchandadvertising,extractionofproductnamesisausefultask.Earlysolutionstonamedentityrecognitionrelyonmanuallycraftedpatterns[4].Becauseitrequireshumanexpertiseandislaborintensivetocreatesuchpatterns,latersystemstrytoautomaticallylearnsuchpatternsfromlabeleddata[62,16,23].Morerecentworkonnamedentityrecognitionusesstatisticalmachinelearningmethods.AnearlyattemptisNymble,anameﬁnderbasedonhiddenMarkovmodels[10].Otherlearningmodelssuchasmaximumentropymodels[22],maximumentropyMarkovmodels[8,27,39,30],supportvectormachines[35]andconditionalrandomﬁelds[59]havealsobeenappliedtonamedentityrecognition.2.1Rule-basedApproachRule-basedmethodsfornamedentityrecognitiongenerallyworkasfollows:Asetofrulesiseithermanuallydeﬁnedorautomaticallylearned.Eachtokeninthetextisrepresentedbyasetoffeatures.Thetextisthencomparedagainsttherulesandaruleisﬁredifamatchisfound.Aruleconsistsofapatternandanaction.Apatternisusuallyaregularexpressiondeﬁnedoverfeaturesoftokens.WhenthispatternInformationExtractionfromText17matchesasequenceoftokens,thespeciﬁedactionisﬁred.Anactioncanbelabelingasequenceoftokensasanentity,insertingthestartorendlabelofanentity,oridentifyingmultipleentitiessimultaneously.Forexample,tolabelanysequenceoftokensoftheform“Mr.X”whereXisacapitalizedwordasapersonentity,thefollowingrulecanbedeﬁned:(token=“Mr.”orthographytype=FirstCap)→personname.Thelefthandsideisaregularexpressionthatmatchesanysequenceoftwotokenswheretheﬁrsttokenis“Mr.”andthesecondtokenhastheorthographytypeFirstCap.Therighthandsideindicatesthatthematchedtokensequenceshouldbelabeledasapersonname.Thiskindofrule-basedmethodshasbeenwidelyused[4,62,16,61,23].Commonlyusedfeaturestorepresenttokensincludethetokenitself,thepart-of-speechtagofthetoken,theorthographytypeofthetoken(e.g.ﬁrstlettercapitalized,allletterscapitalized,number,etc.),andwhetherthetokenisinsidesomepredeﬁnedgazetteer.Itispossibleforasequenceoftokenstomatchmultiplerules.Tohandlesuchconﬂicts,asetofpolicieshastobedeﬁnedtocontrolhowrulesshouldbeﬁred.Oneapproachistoordertherulesinadvancesothattheyaresequentiallycheckedandﬁred.Manuallycreatingtherulesfornamedentityrecognitionrequireshu-manexpertiseandislaborintensive.Toautomaticallylearntherules,diﬀerentmethodshavebeenproposed.Theycanberoughlycategorizedintotwogroups:top-down(e.g.[61])andbottom-up(e.g.[16,23]).Witheitherapproach,asetoftrainingdocumentswithmanuallyla-belednamedentitiesisrequired.Inthetop-downapproach,generalrulesareﬁrstdeﬁnedthatcancovertheextractionofmanytraininginstances.However,theserulestendtohavelowprecision.Thesystemtheniterativelydeﬁnesmorespeciﬁcrulesbytakingtheintersectionsofthemoregeneralrules.Inthebottom-upapproach,speciﬁcrulesaredeﬁnedbasedontraininginstancesthatarenotyetcoveredbytheexistingruleset.Thesespeciﬁcrulesarethengeneralized.2.2StatisticalLearningApproachMorerecentworkonnamedentityrecognitionisusuallybasedonsta-tisticalmachinelearning.Manystatisticallearning-basednamedentityrecognitionalgorithmstreatthetaskasasequencelabelingproblem.Sequencelabelingisageneralmachinelearningproblemandhasbeenusedtomodelmanynaturallanguageprocessingtasksincludingpart-of-speechtagging,chunkingandnamedentityrecognition.Itcanbeformulatedasfollows.Wearegivenasequenceofobservations,denotedasx=(x1,x2,...,xn).Usuallyeachobservationisrepresentedasa18MININGTEXTDATASteveJobswasaco-founderofAppleInc.B-PERI-PEROOOOB-ORGI-ORGFigure2.2.AnexamplesentencewithNERlabelsintheBIOnotation.PERstandsforpersonandORGstandsfororganization.featurevector.Wewouldliketoassignalabelyitoeachobservationxi.Whileonemayapplystandardclassiﬁcationtopredictthelabelyibasedsolelyonxi,insequencelabeling,itisassumedthatthelabelyidependsnotonlyonitscorrespondingobservationxibutalsopossiblyonotherobservationsandotherlabelsinthesequence.Typicallythisdependencyislimitedtoobservationsandlabelswithinacloseneighborhoodofthecurrentpositioni.Tomapnamedentityrecognitiontoasequencelabelingproblem,wetreateachwordinasentenceasanobservation.Theclasslabelshavetoclearlyindicateboththeboundariesandthetypesofnamedentitieswithinthesequence.UsuallytheBIOnotation,initiallyintroducedfortextchunking[55],isused.Withthisnotation,foreachentitytypeT,twolabelsarecreated,namely,B-TandI-T.AtokenlabeledwithB-TisthebeginningofanamedentityoftypeTwhileatokenlabeledwithI-Tisinside(butnotthebeginningof)anamedentityoftypeT.Inaddition,thereisalabelOfortokensoutsideofanynamedentity.Figure2.2showsanexamplesentenceanditscorrectNERlabelsequence.2.2.1HiddenMarkovModels.Inaprobabilisticframework,thebestlabelsequencey=(y1,y2,...,yn)foranobservationsequencex=(x1,x2,...,xn)istheonethatmaximizestheconditionalprobabil-ityp(y|x),orequivalently,theonethatmaximizesthejointprobabilityp(x,y).OnewaytomodelthejointprobabilityistoassumeaMarkovprocesswherethegenerationofalabeloranobservationisdependentonlyononeorafewpreviouslabelsand/orobservations.Ifwetreatyashiddenstates,thenweessentiallyhaveahiddenMarkovmodel[54].AnexampleistheNymblesystemdevelopedbyBBN,oneoftheearlieststatisticallearning-basedNERsystems[10].Nymbleassumesthefollowinggenerativeprocess:(1)Eachyiisgeneratedconditioningonthepreviouslabelyi−1andthepreviouswordxi−1.(2)Ifxiistheﬁrstwordofanamedentity,itisgeneratedconditioningonthecurrentandthepreviouslabels,i.e.yiandyi−1.(3)Ifxiisinsideanamedentity,itisgeneratedconditioningonthepreviousobservationxi−1.InformationExtractionfromText19Forsubsequencesofwordsoutsideofanynamedentity,NymbletreatsthemasaNot-A-Nameclass.Nymblealsoassumesthatthereisamagical+end+wordattheendofeachnamedentityandmodelstheprobabilityofawordbeingtheﬁnalwordofanamedentity.Withthegenerativeprocessdescribedabove,theprobabilityp(x,y)canbeexpressedintermsofvariousconditionalprobabilities.Initiallyxiissimplythewordatpositioni.Nymblefurtheraugmentsitintoxi=(cid:2)w,f(cid:3)i,wherewisthewordatpositioniandfisawordfeaturecharacterizingw.Forexample,thefeatureFourDigitNumindi-catesthatthewordisanumberwithfourdigits.Therationalebehindintroducingwordfeaturesisthatthesefeaturesmaycarrystrongcorre-lationswithentitytypes.Forexample,afour-digitnumberislikelytobeayear.ThemodelparametersofNymbleareessentiallythevariousmultino-mialdistributionsthatgovernthegenerationofxiandyi.Nymbleusessupervisedlearningtolearntheseparameters.Givensentenceslabeledwithnamedentities,Nymbleperformsmaximumlikelihoodestimationtoﬁndthemodelparametersthatmaximizep(X,Y)whereXdenotesallthesentencesinthetrainingdataandYdenotestheirtruelabelsequences.Parameterestimationessentiallybecomescounting.Forex-ample,p(yi=c1|yi−1=c2,xi−1=w)=c(c1,c2,w)c(c2,w),(2.1)wherec1andc2aretwoclasslabelsandwisaword.p(yi=c1|yi−1=c2,xi−1=w)istheprobabilityofobservingtheclasslabelc1giventhatthepreviousclasslabelisc2andthepreviouswordisw.c(c1,c2,w)isthenumberoftimesweobserveclasslabelc1whenthepreviousclasslabelisc2andthepreviouswordisw,andc(c2,w)isthenumberoftimesweobservethepreviousclasslabeltobec2andthepreviouswordtobewregardlessofthecurrentclasslabel.Duringprediction,Nymbleusesthelearnedmodelparameterstoﬁndthelabelsequenceythatmaximizesp(x,y)foragivenx.WiththeMarkovianassumption,dynamicprogrammingcanbeusedtoeﬃcientlyﬁndthebestlabelsequence.2.2.2MaximumEntropyMarkovModels.ThehiddenMarkovmodelsdescribedabovearegenerativemodels.Ingeneral,re-searchershavefoundthatwhentrainingdataissuﬃcient,comparedwithgenerativemodelsthatmodelp(x|y),discriminativemodelsthatdirectlymodelp(y|x)tendtogivealowerpredictionerrorrateandthusarepreferable[65].Fornamedentityrecognition,therehasalsobeensuch20MININGTEXTDATAashiftfromgenerativemodelstodiscriminativemodels.Acommonlyuseddiscriminativemodelfornamedentityrecognitionisthemaximumentropymodel[9]coupledwithaMarkovianassumption.Existingworkusingsuchamodelincludes[8,27,39,30].Speciﬁcally,withaMarkovianassumption,thelabelyiatpositioniisdependentontheobservationswithinaneighborhoodofpositioniaswellasanumberofpreviouslabels:p(y|x)=(cid:2)ip(yi|yi−1i−k,xi+li−l).(2.2)Intheequationabove,yi−1i−krefersto(yi−k,yi−k+1,...,yi−1)andxi+li−lrefersto(xi−l,xi−l+1,...,xi+l).Andwithmaximumentropymodels,thefunctionalformofp(yi|yi−1i−k,xi+li−l)followsanexponentialmodel:p(yi|yi−1i−k,xi+li−l)=exp(cid:3)(cid:4)jλjfj(yi,yi−1i−k,xi+li−l)(cid:5)(cid:4)y(cid:2)exp(cid:3)(cid:4)jλjfj(y(cid:2),yi−1i−k,xi+li−l)(cid:5).(2.3)Intheequationabove,fj(·)isafeaturefunctiondeﬁnedoverthecurrentlabel,thepreviousklabelsaswellas2l+1observationssurroundingthecurrentobservation,andλjistheweightforfeaturefj.Anexamplefeatureisbelow:f(yi,yi−1,xi)=(cid:6)1ifyi−1=Oandyi=B-PERandword(xi)=“Mr.”,0otherwise.ThemodeldescribedabovecanbeseenasavariantofthemaximumentropyMarkovmodels(MEMMs),whichwereformallyintroducedbyMcCallumetal.forinformationextraction[48].TotrainamaximumentropyMarkovmodel,welookforthefea-tureweightsΛ={λj}thatcanmaximizetheconditionalprobabilityp(Y|X)whereXdenotesallthesentencesinthetrainingdataandYdenotestheirtruelabelsequences.Justlikeforstandardmaximumentropymodels,anumberofoptimizationalgorithmscanbeusedtotrainmaximumentropyMarkovmodels,includingGeneralizedItera-tiveScaling(GIS),ImprovedIterativeScaling(IIS)andlimitedmemoryquasi-NewtonmethodssuchasL-BFGS[15].Acomparativestudyoftheseoptimizationmethodsformaximumentropymodelscanbefoundin[46].L-BFGSisacommonlyusedmethodcurrently.2.2.3ConditionalRandomFields.Conditionalrandomﬁelds(CRFs)areyetanotherpopulardiscriminativemodelforsequencelabeling.TheywereintroducedbyLaﬀertyetal.toalsoaddressinfor-mationextractionproblems[41].ThemajordiﬀerencebetweenCRFsInformationExtractionfromText21Figure2.3.Graphicalrepresentationsoflinear-chainHMM,MEMMandCRF.andMEMMsisthatinCRFsthelabelofthecurrentobservationcandependnotonlyonpreviouslabelsbutalsoonfuturelabels.Also,CRFsareundirectedgraphicalmodelswhilebothHMMsandMEMMsaredi-rectedgraphicalmodels.Figure2.3graphicallydepictsthediﬀerencesbetweenlinear-chain(i.e.ﬁrst-order)HMM,MEMMandCRF.Eversincetheywereﬁrstintroduced,CRFshavebeenwidelyusedinnaturallanguageprocessingandsomeotherresearchareas.Usuallylinear-chainCRFsareusedforsequencelabelingproblemsinnaturallanguageprocessing,wherethecurrentlabeldependsonthepreviousoneandthenextonelabelsaswellastheobservations.Therehavebeenmanystudiesapplyingconditionalrandomﬁeldstonamedentityrecognition(e.g.[49,59]).Speciﬁcally,followingthesamenotationusedearlier,thefunctionalformofp(y|x)isasfollows:p(y|x)=1Z(x)exp⎛⎝(cid:9)i(cid:9)jλjfj(yi,yi−1,x,i)⎞⎠,(2.4)whereZ(x)isanormalizationfactorofallpossiblelabelsequences:Z(x)=(cid:9)y(cid:2)exp⎛⎝(cid:9)i(cid:9)jλjfj(y(cid:2)i,y(cid:2)i−1,x,i)⎞⎠.(2.5)TotrainCRFs,againmaximumlikelihoodestimationisusedtoﬁndthebestmodelparametersthatmaximizep(Y|X).SimilartoMEMMs,CRFscanbetrainedusingL-BFGS.BecausethenormalizationfactorZ(x)isasumoverallpossiblelabelsequencesforx,trainingCRFsismoreexpensivethantrainingMEMMs.Inlinear-chainCRFswecannotdeﬁnelong-rangefeatures.GeneralCRFsallowlong-rangefeaturesbutaretooexpensivetoperformex-actinference.SarawagiandCohenproposedsemi-Markovconditionalrandomﬁeldsasacompromise[58].Insemi-MarkovCRFs,labelsareassignedtosegmentsoftheobservationsequencexandfeaturescanmea-surepropertiesofthesesegments.Exactlearningandinferenceonsemi-MarkovCRFsisthuscomputationallyfeasible.SarawagiandCohen22MININGTEXTDATAappliedSemi-MarkovCRFstonamedentityrecognitionandachievedbetterperformancethanstandardCRFs.3.RelationExtractionAnotherimportanttaskininformationextractionisrelationextrac-tion.Relationextractionisthetaskofdetectingandcharacterizingthesemanticrelationsbetweenentitiesintext.Forexample,fromthefollowingsentencefragment,Facebookco-founderMarkZuckerbergwecanextractthefollowingrelation,FounderOf(MarkZuckerberg,Facebook).Muchoftheworkonrelationextractionisbasedonthetaskdeﬁni-tionfromtheAutomaticContentExtraction(ACE)program[1].ACEfocusesonbinaryrelations,i.e.relationsbetweentwoentities.Thetwoentitiesinvolvedarealsoreferredtoasarguments.AsetofmajorrelationtypesandtheirsubtypesaredeﬁnedbyACE.ExamplesofACEmajorrelationtypesincludephysical(e.g.anentityisphysicallynearanotherentity),personal/social(e.g.apersonisafamilymemberofanotherperson),andemployment/affiliation(e.g.apersonisemployedbyanorganization).ACEmakesadistinctionbetweenrelationextractionandrelationmentionextraction.Theformerreferstoidentifyingthesemanticrelationbetweenapairofentitiesbasedonalltheevidencewecangatherfromthecorpus,whereasthelatterreferstoidentifyingindividualmentionsofentityrelations.Becausecorpus-levelrelationex-tractiontoalargeextentstillreliesonaccuratemention-levelrelationextraction,intherestofthischapterwedonotmakeanydistinctionbetweenthesetwoproblemsunlessnecessary.Varioustechniqueshavebeenproposedforrelationextraction.Themostcommonandstraightforwardapproachistotreatthetaskasaclassiﬁcationproblem:Givenapairofentitiesco-occurringinthesamesentence,canweclassifytherelationbetweenthetwoentitiesintooneofthepredeﬁnedrelationtypes?Althoughitisalsopossibleforrela-tionmentionstocrosssentenceboundaries,suchcasesarelessfrequentandhardtodetect.Existingworkthereforemostlyfocusesonrelationextractionwithinsentenceboundaries.Therehavebeenanumberofstudiesfollowingtheclassiﬁcationap-proach[38,71,37,18,19].Featureengineeringisthemostcriticalstepofthisapproach.Anextensionofthefeature-basedclassiﬁcationapproachistodeﬁnekernelsratherthanfeaturesandtoapplykernelmachinessuchassupportvectormachinestoperformclassiﬁcation.Ker-InformationExtractionfromText23nelsdeﬁnedoverwordsequences[14],dependencytrees[26],dependencypaths[13]andparsetrees[67,68]havebeenproposed.Bothfeature-basedandkernel-basedclassiﬁcationmethodsrequirealargeamountoftrainingdata.Anothermajorlineofworkonrelationextractionisweaklysupervisedrelationextractionfromlargecorporathatdoesnotrelyontheavailabilityofmanuallylabeledtrainingdata.Oneapproachisthebootstrappingideatostartwithasmallsetofseedexamplesanditerativelyﬁndnewrelationinstancesaswellasnewex-tractionpatterns.RepresentativeworkincludestheSnowballsystem[3].Anotherapproachisdistantsupervisionthatmakesuseofknownrela-tioninstancesfromexistingknowledgebasessuchasFreebase[50].3.1Feature-basedClassiﬁcationAtypicalapproachtorelationextractionistotreatthetaskasaclas-siﬁcationproblem[38,71,37,18,19].Speciﬁcally,anypairofentitiesco-occurringinthesamesentenceisconsideredacandidaterelationin-stance.Thegoalistoassignaclasslabeltothisinstancewheretheclasslabeliseitheroneofthepredeﬁnedrelationtypesornilforunrelatedentitypairs.Alternatively,atwo-stageclassiﬁcationcanbeperformedwhereattheﬁrststagewhethertwoentitiesarerelatedisdeterminedandatthesecondstagetherelationtypeforeachrelatedentitypairisdetermined.Classiﬁcationapproachassumesthatatrainingcorpusexistsinwhichallrelationmentionsforeachpredeﬁnedrelationtypehavebeenman-uallyannotated.Theserelationmentionsareusedaspositivetrainingexamples.Entitypairsco-occurringinthesamesentencebutnotlabeledareusedasnegativetrainingexamples.Eachcandidaterelationinstanceisrepresentedbyasetoffeaturesthatarecarefullychosen.Standardlearningalgorithmssuchassupportvectormachinesandlogisticregres-sioncanthenbeusedtotrainrelationclassiﬁers.Featureengineeringisacriticalstepforthisclassiﬁcationapproach.Researchershaveexaminedawiderangeoflexical,syntacticandseman-ticfeatures.Wesummarizesomeofthemostcommonlyusedfeaturesasfollows:Entityfeatures:Oftentimesthetwoargumententities,includingtheentitywordsthemselvesandtheentitytypes,arecorrelatedwithcertainrelationtypes.IntheACEdatasets,forexample,entitywordssuchasfather,mother,brotherandsisterandthepersonentitytypeareallstrongindicatorsofthefamilyrelationsubtype.24MININGTEXTDATALexicalcontextualfeatures:Intuitivelythecontextssurround-ingthetwoargumententitiesareimportant.Thesimplestwaytoincorporateevidencefromcontextsistouselexicalfeatures.Forexample,ifthewordfoundedoccursbetweenthetwoarguments,theyaremorelikelytohavetheFounderOfrelation.Syntacticcontextualfeatures:Syntacticrelationsbetweenthetwoargumentsorbetweenanargumentandanotherwordcanoftenbeuseful.Forexample,iftheﬁrstargumentisthesubjectoftheverbfoundedandthesecondargumentistheobjectoftheverbfounded,thenonecanalmostimmediatelytellthattheFounderOfrelationexistsbetweenthetwoarguments.Syntacticfeaturescanbederivedfromparsetreesofthesentencecontainingtherelationinstance.Backgroundknowledge:ChanandRothstudiedtheuseofbackgroundknowledgeforrelationextraction[18].AnexampleistomakeuseofWikipedia.Iftwoargumentsco-occurinthesameWikipediaarticle,thecontentofthearticlecanbeusedtocheckwhetherthetwoentitiesarerelated.Anotherexampleiswordclusters.Forexample,ifwecangroupallnamesofcompaniessuchasIBMandAppleintothesamewordcluster,weachievealevelofabstractionhigherthanwordsandlowerthanthegeneralentitytypeorganization.ThislevelofabstractionmayhelpextractionofcertainrelationtypessuchasAcquirebetweentwocompanies.JiangandZhaiproposedaframeworktoorganizethefeaturesusedforrelationextractionsuchthatasystematicexplorationofthefeaturespacecanbeconducted[37].Speciﬁcally,arelationinstanceisrepre-sentedasalabeled,directedgraphG=(V,E,A,B),whereVisthesetofnodesinthegraph,Eisthesetofdirectededgesinthegraph,andAandBarefunctionsthatassignlabelstothenodes.First,foreachnodev∈V,A(v)={a1,a2,...,a|A(v)|}isasetofat-tributesassociatedwithnodev,whereai∈Σ,andΣisanalphabetthatcontainsallpossibleattributevalues.Forexample,ifnodevrepresentsatoken,thenA(v)canincludethetokenitself,itsmorphologicalbaseform,itspart-of-speechtag,etc.Ifvalsohappenstobetheheadwordofarg1orarg2,thenA(v)canalsoincludetheentitytype.Next,func-tionB:V→{0,1,2,3}isintroducedtodistinguishargumentnodesfromnon-argumentnodes.Foreachnodev∈V,B(v)indicateshownodevisrelatedtoarg1andarg2.0indicatesthatvdoesnotcoveranyargument,1or2indicatesthatvcoversarg1orarg2,respectively,and3indicatesthatvcoversbotharguments.Inaconstituencyparsetree,aInformationExtractionfromText25NNShundredsINofNNPPalestiniansPersonVBDconvergedINonDTtheNNsquareBounded-Area0010002PersonVBD10Bounded-Area2Figure2.4.Anexamplesequencerepresentation.Thesubgraphontheleftrepresentsabigramfeature.Thesubgraphontherightrepresentsaunigramfeaturethatstatestheentitytypeofarg2.NNShundredsINofNNPPalestiniansPersonVBDconvergedINonDTtheNNsquareBounded-Area0010002NPBNPBPPNP1101SVPPPNPB3222onDTBounded-Area002PPNPB22Figure2.5.Anexampleconstituencyparsetreerepresentation.Thesubgraphrep-resentsasubtreefeature(grammarproductionfeature).nodevmayrepresentaphraseanditcanpossiblycoverbotharguments.Figures2.4,2.5and2.6showthreerelationinstancegraphsbasedonthetokensequence,theconstituencyparsetreeandthedependencyparsetree,respectively.Giventheabovedeﬁnitionofrelationinstancegraphs,afeatureofarelationinstancecapturespartoftheattributiveand/orstructuralpropertiesoftherelationinstancegraph.Therefore,itisnaturaltodeﬁneafeatureasasubgraphoftherelationinstancegraph.For-mally,givenagraphG=(V,E,A,B),whichrepresentsasinglerelationinstance,afeaturethatexistsinthisrelationinstanceisasubgraphG(cid:2)=(V(cid:2),E(cid:2),A(cid:2),B(cid:2))thatsatisﬁesthefollowingconditions:V(cid:2)⊆V,E(cid:2)⊆E,and∀v∈V(cid:2),A(cid:2)(v)⊆A(v),B(cid:2)(v)=B(v).26MININGTEXTDATANNShundredsINofNNPPalestiniansPersonVBDconvergedINonDTtheNNsquareBounded-Area0010002ofPalestinians10Figure2.6.Anexampledependencyparsetreerepresentation.Thesubgraphrepre-sentsadependencyrelationfeaturebetweenarg1Palestiniansandof.Itcanbeshownthatmanyfeaturesthathavebeenexploredinpre-viousworkonrelationextractioncanbetransformedintothisgraphicrepresentation.Figures2.4,2.5and2.6showsomeexamples.Thisframeworkallowsasystematicexplorationofthefeaturespaceforrelationextraction.Toexplorethefeaturespace,JiangandZhaicon-sideredthreelevelsofsmallunitfeaturesinincreasingorderoftheircom-plexity:unigramfeatures,bigramfeaturesandtrigramfeatures.Theyfoundthatacombinationoffeaturesatdiﬀerentlevelsofcomplexityandfromdiﬀerentsentencerepresentations,coupledwithtask-orientedfeaturepruning,gavethebestperformance.3.2KernelMethodsAnimportantlineofworkforrelationextractioniskernel-basedclas-siﬁcation.Inmachinelearning,akernelorkernelfunctiondeﬁnestheinnerproductoftwoobservedinstancesrepresentedinsomeunderlyingvectorspace.Itcanalsobeseenasasimilaritymeasurefortheobserva-tions.Themajoradvantageofusingkernelsisthatobservedinstancesdonotneedtobeexplicitlymappedtotheunderlyingvectorspaceinorderfortheirinnerproductsdeﬁnedbythekerneltobecomputed.Wewillusetheconvolutiontreekerneltoillustratethisideabelow.Therearegenerallythreetypesofkernelsforrelationextraction:sequence-basedkernels,tree-basedkernelsandcompositekernels.3.2.1Sequence-basedKernels.BunescuandMooneyde-ﬁnedasimplekernelbasedontheshortestdependencypathsbetweentwoarguments[13].Twodependencypathsaresimilariftheyhavethesamelengthandtheysharemanycommonnodes.Hereanodecanberepresentedbytheworditself,itspart-of-speechtag,oritsentitytype.Thusthetwodependencypaths“protestors→seized←stations”and“troops→raided←churches”haveanon-zerosimilarityvaluebecausetheycanbothberepresentedas“Person→VBD←Facility,”althoughInformationExtractionfromText27theydonotshareanycommonword.Alimitationofthiskernelisthatanytwodependencypathswithdiﬀerentlengthshaveazerosimilarity.In[14],BunescuandMooneyintroducedasubsequencekernelwherethesimilaritybetweentwosequencesisdeﬁnedovertheirsimilarsubse-quences.Speciﬁcally,eachnodeinasequenceisrepresentedbyafeaturevectorandthesimilaritybetweentwonodesistheinnerproductoftheirfeaturevectors.Thesimilaritybetweentwosubsequencesofthesamelengthisdeﬁnedastheproductofthesimilaritiesofeachpairoftheirnodesinthesameposition.Thesimilarityoftwosequencesisthendeﬁnedasaweightedsumofthesimilaritiesofallthesubsequencesofthesamelengthfromthetwosequences.Theweightsareintroducedtopenalizelongcommonsubsequences.BunescuandMooneytestedtheirsubsequencekernelforprotein-proteininteractiondetection.3.2.2Tree-basedKernels.Tree-basedkernelsusethesameideaofusingcommonsubstructurestomeasuresimilarities.Zelenkoetal.deﬁnedakernelontheconstituencyparsetreesofrelationin-stances[67].Themainmotivationisthatiftwoparsetreessharemanycommonsubtreestructuresthenthetworelationinstancesaresimilartoeachother.CulottaandSorensenextendedtheideatodependencyparsetrees[26].Zhangetal.[68]furtherappliedtheconvolutiontreekernelinitiallyproposedbyCollinsandDuﬀy[24]torelationextraction.Thisconvolutiontreekernel-basedmethodwaslaterfurtherimprovedbyQianetal.[53]andachievedastate-of-the-artperformanceofaround77%ofF-1measureonthebenchmarkACE2004dataset.Wenowbrieﬂydiscusstheconvolutiontreekernels.Asweexplainedearlier,akernelfunctioncorrespondstoanunderlyingvectorspaceinwhichtheobservedinstancescanberepresented.Forconvolutiontreekernels,eachdimensionofthisunderlyingvectorspacecorrespondstoasubtree.Tomapaconstituencyparsetreetoavectorinthisvectorspace,wesimplyenumerateallthesubtreescontainedintheparsetree.Ifasubtreeioccursktimesintheparsetree,thevalueforthedimen-sioncorrespondingtoiissettok.Onlysubtreescontainingcompletegrammarproductionrulesareconsidered.Figure2.7showsanexampleparsetreeandallthesubtreesundertheNP“thecompany.”Formally,giventwoconstituencyparsetreesT1andT2,theconvolu-tiontreekernelKisdeﬁnedasfollows:K(T1,T2)=(cid:9)n1∈N1(cid:9)n2∈N2(cid:9)iIi(n1)Ii(n2).(2.6)28MININGTEXTDATAFigure2.7.Left:Theconstituencyparsetreeofasimplesentence.Right:AllthesubtreesoftheNP“thecompany”consideredinconvolutiontreekernels.HereN1andN2arethesetsofallnodesinT1andT2respectively.idenotesasubtreeinthefeaturespace.Ii(n)is1ifsubtreeiisseenrootedatnodenand0otherwise.ItisnoteﬃcienttodirectlycomputeKasdeﬁnedinEquation2.6.In-stead,wecandeﬁneC(n1,n2)=(cid:4)iIi(n1)Ii(n2).C(n1,n2)canthenbecomputedinpolynomialtimebasedonthefollowingrecursiveproperty:Ifthegrammarproductionsatn1andn2arediﬀerent,thenthevalueofC(n1,n2)is0.Ifthegrammarproductionsatn1andn2arethesameandn1andn2arepre-terminals,thenC(n1,n2)is1.Herepre-terminalsarenodesdirectlyabovewordsinaparsetree,e.g.theN,VandDinFigure2.7.Ifthegrammarproductionsatn1andn2arethesameandn1andn2arenotpre-terminals,C(n1,n2)=nc(n1)(cid:2)j=1(1+C(ch(n1,j),ch(n2,j))),(2.7)wherenc(n)isthenumberofchild-nodesofn,andch(n,j)isthej-thchild-nodeofn.Notethatherenc(n1)=nc(n2).Withthisrecursiveproperty,convolutiontreekernelscanbeeﬃcientlycomputedinO(|N1||N2|)time.3.2.3CompositeKernels.Itispossibletocombinediﬀerentkernelsintoacompositekernel.Thisiswhenweﬁndithardtoincludealltheusefulfeaturesintoasinglekernel.ZhaoandGrishmandeﬁnedseveralsyntactickernelssuchasargumentkernelanddependencypathkernelbeforecombingthemintoacompositekernel[70].Zhangetal.combinedanentitykernelwiththeconvolutiontreekerneltoformacompositekernel[69].InformationExtractionfromText293.3WeaklySupervisedLearningMethodsBothfeature-basedandkernel-basedclassiﬁcationmethodsforrela-tionextractionrelyonalargeamountoftrainingdata,whichisexpen-sivetoobtain.Asolutiontothisproblemisweaklysupervisedlearn-ingmethodsthatworkwithmuchlesstrainingdata.Themostnotableweaklysupervisedmethodforrelationextractionisbootstrapping,whichstartsfromasmallsetofseedrelationinstancesanditerativelylearnsmorerelationinstancesandextractionpatterns.Ithasbeenwidelyex-plored[12,3].Morerecently,anotherlearningparadigmcalleddistantsupervisionhasbeenproposedtomakeuseofalargenumberofknownrelationinstancesinexistinglargeknowledgebasestocreatetrainingdata[50].Forbothbootstrappinganddistantsupervision,noisytrainingdataisautomaticallygenerated.Toachievegoodperformance,carefulfeatureselectionandpatternﬁlteringneedtobecarriedout.3.3.1Bootstrapping.ArepresentativeworkonbootstrappingforrelationextractionistheSnowballsystemdevelopedbyAgichteinandGravano[3],whichimprovedoveranearliersystemcalledDIPREdevelopedbyBrin[12].TheideabehindSnowballissimple.Westartwithasetofseedentitypairsthatarerelatedthroughthetargetrela-tion.Forexample,ifthetargetrelationisHeadquarteredIn,wemayuseseedpairssuchas(cid:2)Microsoft,Redmond(cid:3),(cid:2)Google,MountainView(cid:3)and(cid:2)Facebook,PaloAlto(cid:3).Givenalargecorpus,wethenlookforco-occurrencesoftheseentitypairswithincloseproximity.Theassumptionisthatiftwoentitiesrelatedthroughthetargetrelationco-occurclosely,thecontextinwhichtheyco-occurislikelytobeapatternforthetargetrelation.Forexample,wemayﬁndsentencefragmentssuchas“Google’sheadquartersinMountainView”and“Redmond-basedMicrosoft”andextractpatternslike“ORG’sheadquartersinLOC”and“LOC-basedORG.”Withthesepatterns,wecansearchthecorpusandﬁndmore(cid:2)ORG,LOC(cid:3)entitypairsthathavetheHeadquarteredInrelation.Weaddtheseen-titypairstothesetofseedrelationinstancesandrepeattheprocess.Morepatternsandentitypairsareaddedtotheresultsuntilacertainconditionissatisﬁed.Animportantstepinbootstrappingmethodsistoevaluatethequal-ityofextractionpatternssoasnottoincludemanynoisypatternsduringtheextractionprocess.Forexample,fromtheseedentitypair(cid:2)Google,MountainView(cid:3)wemayalsoﬁnd“Google,MountainView”inthecorpus.However,thepattern“ORG,LOC”isnotareliableoneandthusshouldnotbeused.Heuristicmethodshavebeenproposedtojudgethequalityofanextractionpattern.Usuallytwofactorsarecon-30MININGTEXTDATAsidered,coverageandprecision.Coverageisrelatedtothepercentageoftruerelationinstancesthatcanbediscoveredbythepattern.Precisionisrelatedtothepercentageofcorrectrelationinstancesamongalltherelationinstancesdiscoveredbythepattern.3.3.2DistantSupervision.Inbootstrappingonlyasmallsetofseedentitypairsisused.WiththegrowthofthesocialWeb,muchhumanknowledgehasbeencontributedbyalargecrowdofusersandstoredinknowledgebases.Awell-knownexampleisWikipedia.AnotherexampleisFreebase,aknowledgebasethatstoresstructuredhumanknowledgesuchasentityrelations[11].Withsuchfreelyavailableknowledge,itbecomespossibletousealargesetofentitypairsknowntohaveatargetrelationtogeneratetrainingdata.Mintzetal.proposeddistantsupervisionforrelationextractionbasedonthisidea[50].Theyassumethatiftwoentitiesparticipateinarelation,anysentencethatcontainthesetwoentitiesexpressthatrelation.Becausethisassumptiondoesnotalwayshold,Mintzetal.usefeaturesextractedfromdiﬀer-entsentencescontainingtheentitypairtocreatearicherfeaturevectorthatissupposedtobemorereliable.Theydeﬁnelexical,syntacticandnamedentitytagfeatures.Theyusestandardmulti-classlogisticregres-sionastheclassiﬁcationalgorithm.Theirexperimentsshowthatthismethodcanreachalmost70%ofprecisionbasedonhumanjudgment.NguyenandMoschittifurtherusedknowledgefrombothYAGOandWikipediadocumentsfordistantsupervisionandachievedaround74%F-1measure[51].4.UnsupervisedInformationExtractionInSection2andSection3,wediscussednamedentityrecognitionandrelationextractionwheretheentitytypesandrelationtypesarewellde-ﬁnedinadvancebasedontheapplication.Alargeamountoflabeledtrainingdataisalsorequiredinordertolearnagoodnamedentityrec-ognizerorrelationextractor.However,bothdeﬁningthestructuresfortheinformationtobeextractedandannotatingdocumentsaccordingtothedeﬁnedstructuresrequirehumanexpertiseandaretimeconsuming.Toalleviatethisproblem,recentlytherehasbeenanincreasingamountofinterestinunsupervisedinformationextractionfromlargecorpora.Inthissectionwereviewsomerecentstudiesalongthisline.Weﬁrstdiscussrelationdiscoveryandtemplateinductionwherethegoalistodiscoversalientrelationtypesortemplatesforagivendomain.Thekeyideaistoclusterentitiesorentitypairsbasedontheirlexico-syntacticcontextualfeatures.WethendiscussopeninformationextractionwhereInformationExtractionfromText31thegoalistoextractanytypeofrelationfromalarge,diversecorpussuchastheWeb.4.1RelationDiscoveryandTemplateInductionInSection3wediscussedrelationextractionwhenthetypesofrela-tionstobeextractedareknowninadvance.Therearealsocaseswherewedonothaveanyspeciﬁcrelationtypesinmindbutwouldliketodiscoversalientrelationtypesfromagivencorpus.Forexample,givenasetofarticlesreportinghurricaneevents,itwouldbeusefulifwecouldautomaticallydiscoverthatoneofthemostimportantrelationsforthisdomainisthehitrelationbetweenahurricaneandtheplacebeinghit.ShinyamaandSekineﬁrstproposedtostudythisproblem,whichtheyreferredtoasUnrestrictedRelationDiscovery[60].Theystartedbycol-lectingalargenumberofnewsarticlesfromdiﬀerentnewssourcesontheWeb.Theythenusedsimpleclusteringbasedonlexicalsimilaritytoﬁndarticlestalkingaboutthesameevent.Inthiswaytheycouldenrichthefeaturerepresentationofanentityusingitsmultipleoccurrencesindiﬀerentarticles.Nexttheyperformedsyntacticparsingandextractednamedentitiesfromthesearticles.Eachnamedentitycouldthenberepresentedbyasetofsyntacticpatternsasitsfeatures.Forexample,apatternmayindicatethattheentityisthesubjectoftheverbhit.Finally,theyclusteredpairsofentitiesco-occurringinthesamearti-cleusingtheirfeaturerepresentations.Theendresultsweretablesinwhichrowscorrespondedtodiﬀerentarticlesandcolumnscorrespondedtodiﬀerentrolesinarelation.Theywereabletoachievearound75%ofaccuracyforthediscoveredtables.RosenfeldandFeldmanformulatedunsupervisedrelationdiscoveryinamoregeneralway[57].Itisassumedthattheinputoftheproblemconsistsofentitypairstogetherwiththeircontexts.Anunsupervisedre-lationdiscoveryalgorithmclusterstheseentitypairsintodisjointgroupswhereeachgrouprepresentsasinglesemanticrelation.Thereisalsoagarbageclustertocaptureunrelatedentitypairsorunimportantrela-tions.Thecontextsforeachentitypairconsistofthecontextsofeachentityandthecontextsofthetwoentities’co-occurrences.Anentitypaircanberepresentedbyasetoffeaturesderivedfromthecontexts.RosenfeldandFeldmanconsideredonlysurfacepatternfeatures.Forexample,“arg1,basedinarg2”isapatterntocaptureaco-occurrencecontextbetweenthetwoentities.Forclustering,RosenfeldandFeldmanconsideredhierarchicalagglomerativeclusteringandK-meanscluster-ing.TheirmethodwasabletodiscoverrelationssuchasCityOfStateandEmployedIn.32MININGTEXTDATAWhilerelationdiscoveryconsidersbinaryrelationsonly,amorecom-plextaskistoautomaticallyinduceaninformationextractiontemplate,whichmaycontainmultipleslotsplayingdiﬀerentsemanticroles.Themoststraightforwardsolutionistoidentifycandidatesofroleﬁllersﬁrstandthenclusterthesecandidatesintoclusters.However,thissimpliﬁedclusteringapproachdoesnotconsideranimportantobservation,whichisthatasingledocumenttendstocoverdiﬀerentslots.Toremedythisproblem,Marxetal.proposedacross-componentclusteringalgorithmforunsupervisedinformationextraction[47].Thealgorithmassignsacandidatefromadocumenttoaclusterbasedonthecandidate’sfeaturesimilaritywithcandidatesfromotherdocumentsonly.Inotherwords,thealgorithmpreferstoseparatecandidatesfromthesamedocumentintodiﬀerentclusters.Leungetal.proposedagenerativemodeltocapturethesameintuition[43].Speciﬁcally,theyassumeapriordistri-butionovertheclusterlabelsofcandidatesinthesamedocumentwherethepriorprefersadiversiﬁedlabelassignment.Theirexperimentsshowthatclusteringresultsarebetterwiththispriorthanwithoutusingtheprior.Theaforementionedtwostudiesassumeasingletemplateanddonotautomaticallylabelthediscoveredslots.ChambersandJurafskypre-sentedacompletemethodthatisabletodiscovermultipletemplatesfromacorpusandgivemeaningfullabelstodiscoveredslots[17].Specif-ically,theirmethodperformstwostepsofclusteringwheretheﬁrstclus-teringstepgroupslexicalpatternsthatarelikelytodescribethesametypeofeventsandthesecondclusteringstepgroupscandidateroleﬁllersintoslotsforeachtypeofevents.Aslotcanbelabeledusingthesyn-tacticpatternsofthecorrespondingslotﬁllers.Forexample,oneoftheslotsdiscoveredbytheirmethodforthebombingtemplateisautomat-icallylabeledas“Person/Organizationwhoraids,questions,discovers,investigates,diﬀuses,arrests.”Ahumancanprobablyinferfromthedescriptionthatthisreferstothepoliceslot.4.2OpenInformationExtractionRelationdiscoveryandtemplateinductionusuallyworkonacorpusfromasingledomain,e.g.articlesdescribingterrorismevents,becausethegoalistodiscoverthemostsalientrelationsfromsuchadomain-speciﬁccorpus.Insomecases,however,ourgoalistoﬁndallthepoten-tiallyusefulfactsfromalargeanddiversecorpussuchastheWeb.Thisisthefocusofopeninformationextraction,ﬁrstintroducedbyBankoetal.[6].InformationExtractionfromText33Openinformationextractiondoesnotassumeanyspeciﬁctargetre-lationtype.Itmakesasinglepassoverthecorpusandtriestoextractasmanyrelationsaspossible.Becausenorelationtypeisspeciﬁedinadvance,partoftheextractionresultsisaphrasethatdescribesthere-lationextracted.Inotherwords,openinformationextractiongenerates(cid:2)arg1,rel,arg2(cid:3)tuples.In[7],BankoandEtzioniintroducedanunlexicalizedCRF-basedmethodforopeninformationextraction.Themethodisbasedontheobservationthatalthoughdiﬀerentrelationtypeshaveverydiﬀerentse-manticmeanings,thereexistsasmallsetofsyntacticpatternsthatcoverthemajorityofsemanticrelationmentions.Itisthereforepossibletotrainarelationextractionmodelthatextractsarbitraryrelations.Thekeyisnottoincludelexicalfeaturesinthemodel.Laterworkonopeninformationextractionintroducedmoreheuristicstoimprovethequalityoftheextractedrelations.In[29],forexample,Faderetal.proposedthefollowingtwoheuristics:(1)Amulti-wordrelationphrasemustbeginwithaverb,endwithapreposition,andbeacontiguoussequenceofwordsinthesentence.(2)Abinaryrelationphraseoughttoappearwithatleastaminimalnumberofdistinctar-gumentpairsinalargecorpus.Itisfoundthatthetwoheuristicscaneﬀectivelyleadtobetterextractionresults.5.EvaluationToevaluateinformationextractionsystems,manuallyannotateddoc-umentshavetobecreated.Fordomain-speciﬁcinformationextractionsystems,theannotateddocumentshavetocomefromthetargetdomain.Forexample,toevaluategeneandproteinnameextraction,biomedicaldocumentssuchasPubMedabstractsareused.Butifthepurposeistoevaluategeneralinformationextractiontechniques,standardbenchmarkdatasetscanbeused.CommonlyusedevaluationdatasetsfornamedentityrecognitionincludetheonesfromMUC[33],CoNLL-2003[63]andACE[1].Forrelationextraction,ACEdatasetsareusuallyused.Thetypicalevaluationmetricsforinformationextractionarepreci-sion,recallandF-1scores.Precisionmeasuresthepercentageofcorrectinstancesamongtheidentiﬁedpositiveinstances.Recallmeasuresthepercentageofcorrectinstancesthatcanbeidentiﬁedamongallthepos-itiveinstances.F-1isthegeometricmeanofprecisionandrecall.Fornamedentityrecognition,strictlyspeakingacorrectlyidentiﬁednamedentitymustsatisfytwocriteria,namely,correctentityboundaryandcorrectentitytype.Mostevaluationisbasedontheexactmatchofentityboundaries.However,itisworthnothingthatinsomecases34MININGTEXTDATAcreditshouldalsobegiventopartialmatches,e.g.whenthegoalisonlytotellwhetheranentityismentionedinadocumentorasentence[64].Forrelationextraction,aswehavementioned,therearetwolevelsofextraction,corpus-levelandmention-level.Whileevaluationatmentionlevelrequiresannotatedrelationmentioninstances,evaluationatcorpuslevelrequiresonlytrulyrelatedentitypairs,whichmaybeeasiertoobtainorannotatethanrelationmentions.Currently,thestate-of-the-artnamedentityrecognitionmethodscanachievearound90%ofF-1scoreswhentrainedandtestedonthesamedomain[63].Itisgenerallyobservedthatpersonentitiesareeasiertoextract,followedbylocationsandthenorganizations.Itisimportanttonotethatwhenthereisdomainchange,namedentityrecognitionperformancecandropsubstantially.Therehavebeenseveralstudiesaddressingthedomainadaptationproblemfornamedentityrecognition(e.g.[36,5]).Forrelationextraction,thestate-of-the-artperformanceislowerthanthatofnamedentityrecognition.OntheACE2004benchmarkdataset,forexample,thebestF-1scoreisaround77%forthesevenmajorrelationtypes[53].6.ConclusionsandSummaryInformationextractionisanimportanttextminingproblemandhasbeenextensivelystudiedinareassuchasnaturallanguageprocessing,in-formationretrievalandWebmining.Inthischapterwereviewedsomerepresentativeworkoninformationextraction,inparticularworkonnamedentityrecognitionandrelationextraction.Namedentityrecog-nitionaimsatﬁndingnamesofentitiessuchaspeople,organizationsandlocations.State-of-the-artsolutionstonamedentityrecognitionrelyonstatisticalsequencelabelingalgorithmssuchasmaximumen-tropyMarkovmodelsandconditionalrandomﬁelds.Relationextrac-tionisthetaskofﬁndingthesemanticrelationsbetweenentitiesfromtext.Currentstate-of-the-artmethodsusecarefullydesignedfeaturesorkernelsandstandardclassiﬁcationtosolvethisproblem.Althoughsupervisedlearninghasbeenthedominatingapproachtoin-formationextraction,weaklysupervisedmethodshavealsodrawnmuchattention.Bootstrappingisamajortechniqueforsemi-supervisedrela-tionextraction.Morerecently,withlargeamountsofknowledgemadeavailableinonlineknowledgebases,distantsupervisionprovidesanewparadigmoflearningwithouttrainingdata.UnsupervisedinformationextractionaimstoautomaticallyinducethestructureoftheinformationtobeextractedsuchastherelationtypesInformationExtractionfromText35andthetemplates.Clusteringisthemaintechniqueusedforunsuper-visedinformationextraction.WiththefastgrowthoftextualdataontheWeb,itisexpectedthatfu-tureworkoninformationextractionwillneedtodealwithevenmoredi-verseandnoisytext.Weaklysupervisedandunsupervisedmethodswillplayalargerroleininformationextraction.Thevarioususer-generatedcontentontheWebsuchasWikipediaarticleswillalsobecomeimpor-tantresourcestoprovidesomekindofsupervision.References[1]Automaticcontentextraction(ACE)evaluation.http://www.itl.nist.gov/iad/mig/tests/ace/.[2]BioCreAtIvE.http://www.biocreative.org/.[3]EugeneAgichteinandLuisGravano.Snowball:Extractingrelationsfromlargeplain-textcollections.InProceedingsofthe5thACMConferenceonDigitalLibraries,pages85–94,2000.[4]DouglasE.Appelt,JerryR.Hobbs,JohnBear,DavidIsrael,andMabryTyson.FASTUS:Aﬁnite-stateprocessorforinformationextractionfromreal-worldtext.InProceedingsofthe13thInterna-tionalJointConferenceonArtiﬁcialIntelligence,1993.[5]AndrewArnold,RameshNallapati,andWilliamW.Cohen.Ex-ploitingfeaturehierarchyfortransferlearninginnamedentityrecognition.InProceedingsofthe46thAnnualMeetingoftheAs-sociationforComputationalLinguistics,pages245–253,2008.[6]MicheleBanko,MichaelJ.Cafarella,StephenSoderland,MatthewBroadhead,andOrenEtzioni.OpeninformationextractionfromtheWeb.InProceedingsofthe20thInternationalJointConferenceonArtiﬁcialIntelligence,pages2670–2676,2007.[7]MicheleBankoandOrenEtzioni.Thetradeoﬀsbetweenopenandtraditionalrelationextraction.InProceedingsofthe46thAnnualMeetingoftheAssociationforComputationalLinguistics,pages28–36,2008.[8]OliverBender,FranzJosefOch,andHermannNey.Maximumen-tropymodelsfornamedentityrecognition.InProceedingsofthe7thConferenceonNaturalLanguageLearning,2003.[9]AdamL.Bergert,VincentJ.DellaPietra,andStephenA.DellaPietra.Amaximumentropyapproachtonaturallanguageprocessing.ComputationalLinguistics,22(1):39–71,March1996.[10]DanielM.Bikel,ScottMiller,RichardSchwartz,andRalphWeischedel.Nymble:ahigh-performancelearningname-ﬁnder.In36MININGTEXTDATAProceedingsofthe5thConferenceonAppliedNaturalLanguagePro-cessing,pages194–201,1997.[11]KurtBollacker,ColinEvans,PraveenParitosh,TimSturge,andJamieTaylor.Freebase:acollaborativelycreatedgraphdatabaseforstructuringhumanknowledge.InProceedingsofthe2008ACMSIGMODInternationalConferenceonManagementofData,pages1247–1250,2008.[12]SergeyBrin.ExtractingpatternsandrelationsfromtheWorldWideWeb.InProceedingsofthe1998InternationalWorkshopontheWebandDatabases,1998.[13]RazvanBunescuandRaymondMooney.Ashortestpathdepen-dencykernelforrelationextraction.InProceedingsoftheHumanLanguageTechnologyConferenceandtheConferenceonEmpiricalMethodsinNaturalLanguageProcessing,pages724–731,2005.[14]RazvanBunescuandRaymondMooney.Subsequencekernelsforrelationextraction.InAdvancesinNeuralInformationProcessingSystems18,pages171–178.2006.[15]RichardH.Byrd,JorgeNocedal,andRobertB.Schnabel.Repre-sentationsofquasi-newtonmatricesandtheiruseinlimitedmemorymethods.JournalofMathematicalProgramming,63(2):129–156,January1994.[16]MaryElaineCaliﬀandRaymondJ.Mooney.Relationallearningofpattern-matchrulesforinformationextraction.InProceedingsofthe16thNationalConferenceonArtiﬁcialIntelligenceandthe11thInnovativeApplicationsofArtiﬁcialIntelligenceConference,pages328–334,1999.[17]NathanaelChambersandDanJurafsky.Template-basedinforma-tionextractionwithoutthetemplates.InProceedingsofthe49thAnnualMeetingoftheAssociationforComputationalLinguistics:HumanLanguageTechnologies,pages976–986,2011.[18]YeeSengChanandDanRoth.Exploitingbackgroundknowledgeforrelationextraction.InProceedingsofthe23rdInternationalConferenceonComputationalLinguistics,pages152–160,2010.[19]YeeSengChanandDanRoth.Exploitingsyntactico-semanticstructuresforrelationextraction.InProceedingsofthe49thAnnualMeetingoftheAssociationforComputationalLinguistics,pages551–560,2011.[20]Chia-HuiChang,MohammedKayed,MohebRamzyGirgis,andKhaledF.Shaalan.AsurveyofWebinformationextractionsys-InformationExtractionfromText37tems.IEEETransactionsonKnowledgeandDataEngineering,18(10):1411–1428,October2006.[21]TaoCheng,XifengYan,andKevinChen-ChuanChang.Supportingentitysearch:alarge-scaleprototypesearchengine.InProceedingsofthe2007ACMSIGMODInternationalConferenceonManage-mentofData,pages1144–1146,2007.[22]HaiLeongChieuandHweeTouNg.Namedentityrecognitionwithamaximumentropyapproach.InProceedingsoftheSeventhConferenceonNaturalLanguageLearning,pages160–163,2003.[23]FabioCiravegna.Adaptiveinformationextractionfromtextbyruleinductionandgeneralisation.InProceedingsofthe17thIn-ternationalJointConferenceonArtiﬁcialIntelligence-Volume2,pages1251–1256,2001.[24]MichaelCollinsandNigelDuﬀy.Convolutionkernelsfornaturallanguage.InAdvancesinNeuralInformationProcessingSystems13.2001.[25]ValterCrescenzi,GiansalvatoreMecca,andPaoloMerialdo.Road-Runner:TowardsautomaticdataextractionfromlargeWebsites.InProceedingsofthe27thInternationalConferenceonVeryLargeDataBases,pages109–118,2001.[26]AronCulottaandJeﬀreySorensen.Dependencytreekernelsforrelationextraction.InProceedingsofthe42ndAnnualMeetingoftheAssociationforComputationalLinguistics,pages423–429,2004.[27]JamesR.CurranandStephenClark.LanguageindependentNERusingamaximumentropytagger.InProceedingsofthe7thCon-ferenceonNaturalLanguageLearning,2003.[28]GeraldDeJong.Predictionandsubstantiation:Anewapproachtonaturallanguageprocessing.CognitiveScience,3:251–173,1979.[29]AnthonyFader,StephenSoderland,andOrenEtzioni.Identifyingrelationsforopeninformationextraction.InProceedingsofthe2011ConferenceonEmpiricalMethodsinNaturalLanguageProcessing,pages1535–1545,2011.[30]JennyFinkel,ShipraDingare,ChristopherD.Manning,MalvinaNissim,BeatriceAlex,andClaireGrover.Exploringtheboundaries:geneandproteinidentiﬁcationinbiomedicaltext.BMCBioinfor-matics,6(Suppl1)(S5),2005.[31]SergioFlesca,GiuseppeManco,ElioMasciari,EugenioRende,andAndreaTagarelli.Webwrapperinduction:abriefsurvey.AICom-munications,17(2):57–61,April2004.38MININGTEXTDATA[32]RalphGrishman,JohnSterling,andCatherineMacleod.NewYorkUniversity:DescriptionofthePROTEUSsystemasusedforMUC-3.InProceedingsofthe3rdMessageUnderstadningConference,pages183–190,1991.[33]RalphGrishmanandBethSundheim.Messageunderstandingconference-6:Abriefhistory.InProceedingsofthe16thInter-nationalConferenceonComputationalLinguistics,pages466–471,1996.[34]GuopingHu,JingjingLiu,HangLi,YunboCao,Jian-YunNie,andJianfengGao.Asupervisedlearningapproachtoentitysearch.InProceedingsofthe3rdAsiaInformationRetrievalSymposium,pages54–66,2006.[35]HidekiIsozakiandHidetoKazawa.Eﬃcientsupportvectorclassi-ﬁersfornamedentityrecognition.InProceedingsofthe19thInter-nationalConferenceonComputationalLinguistics,2002.[36]JingJiangandChengXiangZhai.Exploitingdomainstructurefornamedentityrecognition.InProceedingsoftheHumanLanguageTechnologyConferenceoftheNorthAmericanChapteroftheAs-sociationforComputationalLinguistics,pages74–81,2006.[37]JingJiangandChengXiangZhai.Asystematicexplorationofthefeaturespaceforrelationextraction.InProceedingsoftheHumanLanguageTechnologyConferenceoftheNorthAmericanChapteroftheAssociationforComputationalLinguistics,pages113–120,2007.[38]NandaKambhatla.Combininglexical,syntactic,andsemanticfea-tureswithmaximumentropymodelsforextractingrelations.InTheCompanionVolumetotheProceedingsof42stAnnualMeetingoftheAssociationforComputationalLinguistics,pages178–181,2004.[39]DanKlein,JosephSmarr,HuyNguyen,andChristopherD.Man-ning.Namedentityrecognitionwithcharacter-levelmodels.InProceedingsofthe7thConferenceonNaturalLanguageLearning,2003.[40]NicholasKushmerick,DanielS.Weld,andRobertDoorenbos.Wrapperinductionforinformationextraction.InProceedingsofthe15thInternationalJointConferenceonArtiﬁcialIntelligence,1997.[41]JohnD.Laﬀerty,AndrewMcCallum,andFernandoC.N.Pereira.Conditionalrandomﬁelds:ProbabilisticmodelsforsegmentingandInformationExtractionfromText39labelingsequencedata.InProceedingsofthe18thInternationalConferenceonMachineLearning,pages282–289,2001.[42]WendyLehnert,ClaireCardie,DividFisher,EllenRiloﬀ,andRobertWilliams.UniversityofMassachusetts:DescriptionoftheCIRCUSsystemasusedforMUC-3.InProceedingsofthe3rdMes-sageUnderstadningConference,pages223–233,1991.[43]CaneWing-kiLeung,JingJiang,KianMingA.Chai,HaiLeongChieu,andLoo-NinTeow.Unsupervisedinformationextractionwithdistributionalpriorknowledge.InProceedingsofthe2011ConferenceonEmpiricalMethodsinNaturalLanguageProcessing,pages814–824,2011.[44]XinLiandDanRoth.Learningquestionclassiﬁers.InProceedingsofthe19thInternationalConferenceonComputationalLinguistics,pages1–7,2002.[45]LiuLing,CaltonPu,andWeiHan.XWRAP:AnXML-enabledwrapperconstructionsystemforWebinformationsources.InPro-ceedingsofthe16thInternationalConferenceonDataEngineering,pages611–621,2000.[46]RobertMalouf.Acomparisonofalgorithmsformaximumentropyparameterestimation.InProceedingsofthe6thConferenceonNat-uralLanguageLearning,2002.[47]ZvikaMarx,IdoDagan,andEliShamir.Cross-componentcluster-ingfortemplatelearning.InProceedingsofthe2002ICMLWork-shoponTextLearning,2002.[48]AndrewMcCallum,DayneFreitag,andFernandoC.N.Pereira.MaximumentropyMarkovmodelsforinformationextractionandsegmentation.InProceedingsofthe17thInternationalConferenceonMachineLearning,pages591–598,2000.[49]AndrewMcCallumandWeiLi.Earlyresultsfornamedentityrecognitionwithconditionalrandomﬁelds,featureinductionandweb-enhancedlexicons.InProceedingsofthe7thConferenceonNaturalLanguageLearning,2003.[50]MikeMintz,StevenBills,RionSnow,andDanielJurafsky.Dis-tantsupervisionforrelationextractionwithoutlabeleddata.InProceedingsoftheJointConferenceofthe47thAnnualMeetingoftheAssociationforComputationalLinguisticsandthe4thInter-nationalJointConferenceonNaturalLanguageProcessingoftheAFNLP,pages1003–1011,2009.[51]TrucVienT.NguyenandAlessandroMoschitti.End-to-endre-lationextractionusingdistantsupervisionfromexternalsemantic40MININGTEXTDATArepositories.InProceedingsofthe49thAnnualMeetingoftheAs-sociationforComputationalLinguistics,pages277–282,2011.[52]TomokoOhta,YukaTateisi,andJin-DongKim.TheGENIAcor-pus:anannotatedresearchabstractcorpusinmolecularbiologydomain.InProceedingsofthe2ndInternationalConferenceonHu-manLanguageTechnologyResearch,pages82–86,2002.[53]LonghuaQian,GuodongZhou,FangKong,QiaomingZhu,andPeideQian.Exploitingconstituentdependenciesfortreekernel-basedsemanticrelationextraction.InProceedingsofthe22ndInter-nationalConferenceonComputationalLinguistics,pages697–704,2008.[54]LawrenceR.Rabiner.AtutorialonhiddenMarkovmodelsandselectedapplicationsinspeechrecognition.77,77(2):257–286,1989.[55]LanceA.RamshawandMitchP.Marcus.Textchunkingusingtransformation-basedlearning.InProceedingsofthe3rdWorkshiponVeryLargeCorpora,pages82–94,1995.[56]LisaF.Rau.Extractingcompanynamesfromtext.InProceedingsofthe7thIEEEConferenceonArtiﬁcialIntelligenceApplications,pages29–32,1991.[57]BenjaminRosenfeldandRonenFeldman.Clusteringforunsuper-visedrelationidentiﬁcation.InProceedingsofthe16thACMconfer-enceonConferenceonInformationandKnowledgeManagement,pages411–418,2007.[58]SunitaSarawagiandWilliamW.Cohen.Semi-markovconditionalrandomﬁeldsforinformationextraction.InAdvancesinNeuralInformationProcessingSystems17,pages1185–1192.2005.[59]BurrSettles.Biomedicalnamedentityrecognitionusingcondi-tionalrandomﬁeldsandrichfeaturesets.InProceedingsoftheInternationalJointWorkshoponNaturalLanguageProcessinginBiomedicineandItsApplications,pages104–107,2004.[60]YusukeShinyamaandSatoshiSekine.Preemptiveinformationex-tractionusingunrestrictedrelationdiscovery.InProceedingsoftheHumanLanguageTechnologyConferenceoftheNorthAmericanChapteroftheAssociationforComputationalLinguistics,pages304–311,2006.[61]StephenSoderland.Learninginformationextractionrulesforsemi-structuredandfreetext.MachineLearning,34(1-3):233–272,Febru-ary1999.[62]StephenSoderland,DavidFisher,JonathanAseltine,andWendyLehnert.CRYSTALinducingaconceptualdictionary.InProceed-InformationExtractionfromText41ingsofthe14thInternationalJointConferenceonArtiﬁcialIntel-ligence,pages1314–1319,1995.[63]ErikF.TjongKimSangandFienDeMeulder.IntroductiontotheCoNLL-2003sharedtask:Language-independentnamedentityrecognition.InProceedingsofthe7thConferenceonNaturalLan-guageLearning,pages142–147,2003.[64]RichardTzong-HanTsai,Shih-HungWu,Wen-ChiChou,Yu-ChunLin,DingHe,JiehHsiang,Ting-YiSung,andWen-LianHsu.Var-iouscriteriaintheevaluationofbiomedicalnamedentityrecogni-tion.BMCBioinformatics,7(92),2006.[65]VladimirVapnik.StatisticalLearningTheory.JohnWiley&Sons,2008.[66]FeiWuandDanielS.Weld.OpeninformationextractionusingWikipedia.InProceedingsofthe48thAnnualMeetingoftheAsso-ciationforComputationalLinguistics,pages118–127,2010.[67]DmitryZelenko,ChinatsuAone,andAnthonyRichardella.Ker-nelmethodsforrelationextraction.JournalofMachineLearningResearch,3:1083–1106,February2003.[68]MinZhang,JieZhang,andJianSu.Exploringsyntacticfeaturesforrelationextractionusingaconvolutiontreekernel.InProceedingsoftheHumanLanguageTechnologyConferenceoftheNorthAmericanChapteroftheAssociationforComputationalLinguistics,pages288–295,2006.[69]MinZhang,JieZhang,JianSu,andGuoDongZhou.Acompositekerneltoextractrelationsbetweenentitieswithbothﬂatandstruc-turedfeatures.InProceedingsofthe21stInternationalConferenceonComputationalLinguisticsandthe44thAnnualMeetingoftheAssociationforComputationalLinguistics,pages825–832,2006.[70]ShubinZhaoandRalphGrishman.Extractingrelationswithinte-gratedinformationusingkernelmethods.InProceedingsofthe43rdAnnualMeetingoftheAssociationforComputationalLinguistics,pages419–426,2005.[71]GuoDongZhou,JianSu,JieZhang,andMinZhang.Exploringvariousknowledgeinrelationextraction.InProceedingsofthe43rdAnnualMeetingoftheAssociationforComputationalLinguistics,pages427–434,2005.    C.C. Aggarwal and C.X. Zhai (eds.), Mining Text Data, DOI 10.1007/978-1-4614-3223-4_3,

Chapter3ASURVEYOFTEXTSUMMARIZATIONTECHNIQUESAniNenkovaUniversityofPennsylvanianenkova@seas.upenn.eduKathleenMcKeownColumbiaUniversitykathy@cs.columbia.eduAbstractNumerousapproachesforidentifyingimportantcontentforautomatictextsummarizationhavebeendevelopedtodate.Topicrepresentationapproachesﬁrstderiveanintermediaterepresentationofthetextthatcapturesthetopicsdiscussedintheinput.Basedontheserepresenta-tionsoftopics,sentencesintheinputdocumentarescoredforimpor-tance.Incontrast,inindicatorrepresentationapproaches,thetextisrepresentedbyadiversesetofpossibleindicatorsofimportancewhichdonotaimatdiscoveringtopicality.Theseindicatorsarecombined,veryoftenusingmachinelearningtechniques,toscoretheimportanceofeachsentence.Finally,asummaryisproducedbyselectingsentencesinagreedyapproach,choosingthesentencesthatwillgointhesummaryonebyone,orgloballyoptimizingtheselection,choosingthebestsetofsentencestoformasummary.Inthischapterwegiveabroadoverviewofexistingapproachesbasedonthesedistinctions,withparticularat-tentiononhowrepresentation,sentencescoringorsummaryselectionstrategiesaltertheoverallperformanceofthesummarizer.Wealsopointoutsomeofthepeculiaritiesofthetaskofsummarizationwhichhaveposedchallengestomachinelearningapproachesfortheproblem,andsomeofthesuggestedsolutions1.1Portionsofthischapterhavealreadyappearedinourmoredetailedoverviewofsumma-rizationresearch[67].Thelargermanuscriptincludessectionsongenerationtechniquesfor© Springer Science+Business Media, LLC 2012 43 
 
44MININGTEXTDATAKeywords:Extractivetextsummarization,topicrepresentation,machinelearningforsummarization1.HowdoExtractiveSummarizersWork?Summarizationsystemsneedtoproduceaconciseandﬂuentsummaryconveyingthekeyinformationintheinput.Inthischapterweconstrainourdiscussiontoextractivesummarizationsystemsforshort,paragraph-lengthsummariesandexplainhowthesesystemsperformsummariza-tion.Thesesummarizersidentifythemostimportantsentencesintheinput,whichcanbeeitherasingledocumentoraclusterofrelateddocuments,andstringthemtogethertoformasummary.Thedecisionaboutwhatcontentisimportantisdrivenprimarilybytheinputtothesummarizer.Thechoicetofocusonextractivetechniquesleavesoutthelargebodyoftext-to-textgenerationapproachesdevelopedforabstractivesumma-rization,butallowsustofocusonsomeofthemostdominantapproacheswhichareeasilyadaptedtotakeusers’informationneedintoaccountandworkforbothsingle-andmulti-documentinputs.Moreover,byex-aminingthestagesintheoperationofextractivesummarizersweareabletopointoutcommonalitiesanddiﬀerencesinsummarizationapproacheswhichrelatetocriticalcomponentsofasystemandcouldexplaintheadvantagesofcertaintechniquesoverothers.Inordertobetterunderstandtheoperationofsummarizationsystemsandtoemphasizethedesignchoicessystemdevelopersneedtomake,wedistinguishthreerelativelyindependenttasksperformedbyvirtuallyallsummarizers:creatinganintermediaterepresentationoftheinputwhichcapturesonlythekeyaspectsofthetext,scoringsentencesbasedonthatrepresentationandselectingasummaryconsistingofseveralsentences.IntermediaterepresentationEventhesimplestsystemsderivesomeintermediaterepresentationofthetexttheyhavetosummarizeandidentifyimportantcontentbasedonthisrepresentation.Topicrep-resentationapproachesconvertthetexttoanintermediaterepresenta-tioninterpretedasthetopic(s)discussedinthetext.Someofthemostpopularsummarizationmethodsrelyontopicrepresentationsandthisclassofapproachesexhibitsanimpressivevariationinsophisticationandrepresentationpower.Theyincludefrequency,TF.IDFandtopicwordapproachesinwhichthetopicrepresentationconsistsofasimpletablesummarization,evaluationissuesandgenrespeciﬁcsummarizationwhichwedonotaddressinthischapter.http://dx.doi.org/10.1561/1500000015ASurveyofTextSummarizationTechniques45ofwordsandtheircorrespondingweights,withmorehighlyweightedwordsbeingmoreindicativeofthetopic;lexicalchainapproachesinwhichathesaurussuchasWordNetisusedtoﬁndtopicsorconceptsofsemanticallyrelatedwordsandthengiveweighttotheconcepts;latentsemanticanalysisinwhichpatternsofwordco-occurrenceareidentiﬁedandroughlyconstruedastopics,aswellasweightsforeachpattern;fullblownBayesiantopicmodelsinwhichtheinputisrepresentedasamixtureoftopicsandeachtopicisgivenasatableofwordprob-abilities(weights)forthattopic.Indicatorrepresentationapproachesrepresenteachsentenceintheinputasalistofindicatorsofimportancesuchassentencelength,locationinthedocument,presenceofcertainphrases,etc.Ingraphmodels,suchasLexRank,theentiredocumentisrepresentedasanetworkofinter-relatedsentences.ScoresentencesOnceanintermediaterepresentationhasbeende-rived,eachsentenceisassignedascorewhichindicatesitsimportance.Fortopicrepresentationapproaches,thescoreiscommonlyrelatedtohowwellasentenceexpressessomeofthemostimportanttopicsinthedocumentortowhatextentitcombinesinformationaboutdiﬀerenttop-ics.Forthemajorityofindicatorrepresentationmethods,theweightofeachsentenceisdeterminedbycombiningtheevidencefromthediﬀer-entindicators,mostcommonlybyusingmachinelearningtechniquestodiscoverindicatorweights.InLexRank,theweightofeachsentenceisderivedbyapplyingstochastictechniquestothegraphrepresentationofthetext.SelectsummarysentencesFinally,thesummarizerhastoselectthebestcombinationofimportantsentencestoformaparagraphlengthsummary.Inthebestnapproaches,thetopnmostimportantsentenceswhichcombinedhavethedesiredsummarylengthareselectedtoformthesummary.Inmaximalmarginalrelevanceapproaches,sentencesareselectedinaniterativegreedyprocedure.Ateachstepoftheprocedurethesentenceimportancescoreisrecomputedasalinearcombinationbetweentheoriginalimportanceweightofthesentenceanditssimilaritywithalreadychosensentences.Sentencesthataresimilartoalreadychosensentencesaredispreferred.Inglobalselectionapproaches,theoptimalcollectionofsentencesisselectedsubjecttoconstraintsthattrytomaximizeoverallimportance,minimizeredundancy,and,forsomeapproaches,maximizecoherence.Thereareveryfewinherentdependenciesbetweenthethreeprocess-ingstepsdescribedaboveandasummarizercanincorporateanycom-binationofspeciﬁcchoicesonhowtoperformthesteps.Changesinthewayaspeciﬁcstepisperformedcanmarkedlychangetheperformance46MININGTEXTDATAofthesummarizer,andwewilldiscusssomeoftheknowndiﬀerencesasweintroducethetraditionalmethods.Inrankingtheimportanceofsentencesforsummaries,otherfactorsalsocomeintoplay.Ifwehaveinformationaboutthecontextinwhichthesummaryisgenerated,thiscanhelpindeterminingimportance.Contextcantaketheformofinformationaboutuserneeds,oftenpre-sentedthroughaquery.Contextcanincludetheenvironmentinwhichaninputdocumentissituated,suchasthelinkswhichpointtoawebpage.Anotherfactorwhichaﬀectssentencerankingisthegenreofadocument.Whethertheinputdocumentisanewsarticle,anemailthread,awebpageorajournalarticleinﬂuencesthestrategiesusedtoselectsentences.WebeginwithadiscussionoftopicrepresentationapproachesinSec-tion2.Intheseapproachestheindependencebetweenthemethodsforderivingtheintermediaterepresentationandthoseforscoringsentencesismostclearandweemphasizetherangeofchoicesforeachaswedis-cussindividualapproaches.InSection3wediscussapproachesthatfocusattentiononthecontextualinformationnecessaryfordeterminingsentenceimportanceratherthanthetopicrepresentationitself.Wefol-lowwithapresentationofindicatorrepresentationapproachesinSection4.WethendiscussapproachestoselectingthesentencesofasummaryinSection5beforeconcluding.2.TopicRepresentationApproachesTopicrepresentationapproachesvarytremendouslyinsophisticationandencompassafamilyofmethodsforsummarization.Herewepresentsomeofthemostwidelyappliedtopicrepresentationapproaches,aswellasthosethathavebeengainingpopularitybecauseoftheirrecentsuccesses.2.1TopicWordsInremarkablyearlyworkontextsummarization[53],Luhnproposedtheuseoffrequencythresholdstoidentifydescriptivewordsinadocu-menttobesummarized,asimplerepresentationofthedocument’stopic.Thedescriptivewordsinhisapproachexcludethemostfrequentwordsinthedocument,whicharelikelytobedeterminers,prepositions,ordomainspeciﬁcwords,aswellasthoseoccurringonlyafewtimesAmodernstatisticalversionofLuhn’sideaappliesthelog-likelihoodra-tiotest[22]foridentiﬁcationofwordsthatarehighlydescriptiveoftheinput.Suchwordshavebeentraditionallycalled“topicsignatures”inthesummarizationliterature[46].TheuseoftopicsignatureswordsASurveyofTextSummarizationTechniques47asrepresentationoftheinputhasledtohighperformanceinselectingimportantcontentformulti-documentsummarizationofnews[15,38].Topicsignaturesarewordsthatoccuroftenintheinputbutarerareinothertexts,sotheircomputationrequirescountsfromalargecol-lectionofdocumentsinadditiontotheinputforsummarization.Oneofthekeystrengthsofthelog-likelihoodratiotestapproachisthatitprovidesawayofsettingathresholdtodivideallwordsintheinputintoeitherdescriptiveornot.Thedecisionismadebasedonatestforsta-tisticalsigniﬁcance,tolargeextentremovingtheneedforthearbitrarythresholdsintheoriginalapproach.Informationaboutthefrequencyofoccurrenceofwordsinalargebackgroundcorpusisnecessarytocomputethestatisticonthebasisofwhichtopicsignaturewordsaredetermined.ThelikelihoodoftheinputIandthebackgroundcorpusiscomputedundertwoassumptions:(H1)thattheprobabilityofawordintheinputisthesameasinthebackgroundBor(H2)thatthewordhasadiﬀerent,higherprobability,intheinputthaninthebackground.H1:P(w|I)=P(w|B)=p(wisnotdescriptive)H2:P(w|I)=pIandP(w|B)=pBandpI>pB(wisdescriptive)Thelikelihoodofatextwithrespecttoagivenwordofinterest,w,iscomputedviathebinomialdistributionformula.Theinputandthebackgroundcorpusaretreatedasasequenceofwordswi:w1w2...wN.TheoccurrenceofeachwordisaBernoullitrialwithprobabilitypofsuccess,whichoccurswhenwi=w.TheoverallprobabilityofobservingthewordwappearingktimesintheNtrialsisgivenbythebinomialdistributionb(k,N,p)=(cid:12)Nk(cid:13)pk(1−p)N−k(3.1)ForH1,theprobabilitypiscomputedfromtheinputandtheback-groundcollectiontakentogether.ForH2,p1iscomputedfromtheinput,p2fromthebackground,andthelikelihoodoftheentiredataisequaltotheproductofthebinomialfortheinputandthatforthebackground.Morespeciﬁcally,thelikelihoodratioisdeﬁnedasλ=b(k,N,p)b(kI,NI,pI).b(kB,NB,pB)(3.2)wherethecountswithsubscriptIarecomputedonlyfromtheinputtothesummarizerandthosewithindexBarecomputedovertheback-groundcorpus.Thestatisticequalto−2logλhasaknownstatisticaldistribution(χ2),whichcanbeusedtodeterminewhichwordsaretopicsignatures.48MININGTEXTDATATopicsignaturewordsarethosethathavealikelihoodstatisticgreaterthanwhatonewouldexpectbychance.Theprobabilityofobtainingagivenvalueofthestatisticpurelybychancecanbelookedupinaχ2distributiontable;forinstanceavalueof10.83canbeobtainedbychancewithprobabilityof0.001.Theimportanceofasentenceiscomputedasthenumberoftopicsignaturesitcontainsorastheproportionoftopicsignaturesinthesentence.Bothofthesesentencescoringfunctionsarebasedonthesametopicrepresentation,thescorestheyassigntosentencesmayberatherdiﬀerent.Theﬁrstapproachislikelytoscorelongersentenceshigher,simplybecausetheycontainmorewords.Thesecondapproachfavorsdensityoftopicwords.2.2Frequency-drivenApproachesTherearetwopotentialmodiﬁcationsthatnaturallycometomindwhenconsideringthetopicwordsapproach.Theweightsofwordsintopicrepresentationsneednotbebinary(either1or0)asinthetopicwordapproaches.Inprincipleitwouldevenbebeneﬁcialtobeabletocomparethecontinuousweightsofwordsanddeterminewhichonesaremorerelatedtothetopic.Theapproacheswepresentinthissection—wordprobabilityandTF.IDF—indeedassignnon-binaryweightsrelatedonthenumberofoccurrencesofawordorconcept.ResearchhasalreadyshownthatthebinaryweightsgivemorestableindicatorsofsentenceimportancethanwordprobabilityandTF.IDF[34].Nonethelessweoverviewtheseapproachesbecauseoftheirconceptualsimplicityandreasonableperformance.Wealsodescribethelexicalchainsapproachtodeterminingsentenceimportance.Incontrasttomostotherapproaches,itmakesuseofWordNet,alexicaldatabasewhichrecordssemanticrela-tionsbetweenwords.BasedontheinformationderivedfromWordNet,lexicalchainapproachesareabletotracktheprominence,indicatedbyfrequency,ofdiﬀerenttopicsdiscussedintheinput.Wordprobabilityisthesimplestformofusingfrequencyintheinputasanindicatorofimportance2.Theprobabilityofawordw,p(w)iscomputedfromtheinput,whichcanbeaclusterofrelateddocumentsorasingledocument.Itiscalculatedasthenumberofoccurrencesofaword,c(w)dividedbythenumberofallwordsintheinput,N:2Rawfrequencywouldbeevensimpler,butthismeasureistoostronglyinﬂuencedbydoc-umentlength.Awordappearingtwiceina10worddocumentmaybeimportant,butnotnecessarilysoina1000worddocument.Computingwordprobabilitymakesanadjustmentfordocumentlength.ASurveyofTextSummarizationTechniques49p(w)=c(w)N(3.3)SumBasicisonesystemdevelopedtooperationalizetheideaofusingfrequencyforsentenceselection.Itreliesonlyonwordprobabilitytocalculateimportance[94].ForeachsentenceSjintheinputitassignsaweightequaltotheaverageprobabilityp(wi)ofthecontentwordsinthesentence3,estimatedfromtheinputforsummarization:Weight(Sj)=(cid:4)wi∈Sjp(wi)|{wi|wi∈Sj}|(3.4)Then,inagreedyfashion,SumBasicpicksthebestscoringsentencethatcontainsthewordthatcurrentlyhasthehighestprobability.Thisselectionstrategyassumesthatateachpointwhenasentenceisselected,asingleword—thatwithhighestprobability—representsthemostim-portanttopicinthedocumentandthegoalistoselectthebestsentencethatcoversthisword.Afterthebestsentenceisselected,theprobabilityofeachwordthatappearsinthechosensentenceisadjusted.Itissettoasmallervalue,equaltothesquareoftheprobabilityofthewordatthebeginningofthecurrentselectionstep,toreﬂectthefactthattheprobabilityofawordoccurringtwiceinasummaryislowerthantheprobabilityofthewordoccurringonlyonce.Thisselectionloopisrepeateduntilthedesiredsummarylengthisachieved.Withcontinuousweights,thereareevengreaternumberofpossibil-itiesfordeﬁningthesentencescoringfunctioncomparedtothetopicwordsmethod:theweightscanbesummed,multiplied,averaged,etc.Ineachcasethescoringisderivedbythesamerepresentationbutthere-sultingsummarizerperformancecanvaryconsiderablydependingonthechoice[68].ThesentenceselectionstrategyofSumBasicisavariationofthemaximalmarginalrelevancestrategy,butanapproachthatopti-mizestheoccurrenceofimportantwordsgloballyovertheentiresum-maryinsteadofgreedyselectionperformbetter[89].Wordprobabilitiescanserveasthebasisforincreasinglycomplexviewsofsummarization[50].TF*IDFweighting(TermFrequency*InverseDocumentFrequency)Thewordprobabilityapproachreliesonastopwordlisttoeliminatetoocommonwordsfromconsideration.Decidingwhichwordstoin-cludeinastoplist,however,isnotatrivialtaskandassigningTF*IDFweightstowords[79,87]providesabetteralternative.Thisweighting3Sentencesthathavefewerthan15contentwordsareassignedweightzeroandastopwordlistisusedtoeliminateverycommonwordsfromconsideration.50MININGTEXTDATAexploitscountsfromabackgroundcorpus,whichisalargecollectionofdocuments,normallyfromthesamegenreasthedocumentthatistobesummarized;thebackgroundcorpusservesasindicationofhowoftenawordmaybeexpectedtoappearinanarbitrarytext.Theonlyadditionalinformationbesidesthetermfrequencyc(w)thatweneedinordertocomputetheweightofawordwwhichappearsc(w)timesintheinputforsummarizationisthenumberofdocuments,d(w),inabackgroundcorpusofDdocumentsthatcontaintheword.Thisallowsustocomputetheinversedocumentfrequency:TF∗IDFw=c(w).logDd(w)(3.5)Inmanycasesc(w)isdividedbythemaximumnumberofoccurrencesofanywordinthedocument,whichnormalizesfordocumentlength.Descriptivetopicwordsarethosethatappearofteninadocument,butarenotverycommoninotherdocuments.WordsthatappearinmostdocumentswillhaveanIDFclosetozero.TheTF*IDFweightsofwordsaregoodindicatorsofimportance,andtheyareeasyandfasttocompute.ThesepropertiesexplainwhyTF*IDFisincorporatedinoneformoranotherinmostcurrentsystems[25,26,28–30,40].Centroidsummarization[73],whichhasbecomeapopularbaselinesystem,isalsobuiltonTF.IDFtopicrepresentation.Inthisapproach,anempiricallydeterminedthresholdisset,andallwordswithTF.IDFbelowthatthresholdareconsideredtohaveaweightofzero.Inthiswaythecentroidapproachissimilartothetopicwordapproachbe-causewordswithlowweightaretreatedasnoiseandcompletelyignoredwhencomputingsentenceimportance.Italsoresemblesthewordprob-abilityapproachbecauseitkeepsdiﬀerentialweights(TF.IDF)forallwordabovethethreshold.Thesentencescoringfunctioninthecentroidmethodisthesumofweightsofthewordsinit.Lexicalchains[3,86,31]andsomerelatedapproachesrepresenttopicsthatarediscussedthroughoutatextbyexploitingrelationsbetweenwords.Theycapturesemanticsimilaritybetweennounstodeterminetheimportanceofsentences.Thelexicalchainsapproachcapturestheintuitionthattopicsareexpressedusingnotasinglewordbutinsteaddiﬀerentrelatedwords.Forexample,theoccurrenceofthewords“car”,“wheel”,“seat”,“passenger”indicatesacleartopic,evenifeachofthewordsisnotbyitselfveryfrequent.TheapproachheavilyreliesonWordNet[63],amanuallycompiledthesauruswhichliststhediﬀerentsensesofeachword,aswellaswordrelationshipssuchassynonymy,antonymy,part-wholeandgeneral-speciﬁc.ASurveyofTextSummarizationTechniques51AlargepartofBarzilayandElhadad’soriginalworkonapplyinglexicalchainsforsummarization[3]isonnewmethodsforconstruct-inggoodlexicalchains,withemphasisonwordsensedisambiguationofwordswithmultiplemeanings(i.e.theword“bank”canmeanaﬁnancialinstitutionorthelandnearariverorlake).Theydevelopanalgorithmthatimprovesonpreviousworkbywaitingtodisambiguatepolysemouswordsuntilallpossiblechainsforatexthavebeenconstructed;wordsensesaredisambiguatedbyselectingtheinterpretationswiththemostconnectionsinthetext.Laterresearchfurtherimprovedboththerun-timeofthealgorithmsforbuildingoflexicalchains,andtheaccuracyofwordsensedisambiguation[86,31].BarzilayandElhadadclaimthatthemostprevalentdiscoursetopicwillplayanimportantroleinthesummaryandarguethatlexicalchainsprovideabetterindicationofdiscoursetopicthandoeswordfrequencysimplybecausediﬀerentwordsmayrefertothesametopic.Theydeﬁnethestrengthofalexicalchainbyitslength,whichisequaltothenumberofwordsfoundtobemembersofthesamechain,anditshomogeneity,wherehomogeneitycapturesthenumberofdistinctlexicalitemsinthechaindividedbyitslength.Theybuildthesummarybyextractingonesentenceforeachhighlyscoredchain,choosingtheﬁrstsentenceinthedocumentcontainingarepresentativewordforthechain.Thisstrategyforsummaryselection—onesentenceperimportanttopic—iseasytoimplementbutpossiblytoorestrictive.Thequestionthatstandsout,andwhichBarzilayandElhadadraisebutdonotad-dress,isthatmaybeforsometopicsmorethanonesentenceshouldbeincludedinthesummary.Othersentencescoringtechniquesforlexicalchainsummarizationhavenotbeenexplored,i.e.sentencesthatincludeseveralofthehighlyscoringchainsmaybeevenmoreinformativeabouttheconnectionbetweenthediscussedtopics.Inlaterwork,researcherschosetoavoidtheproblemofwordsensedis-ambiguationaltogetherbutstillusedWordNettotrackthefrequencyofallmembersofaconceptset[82,102].Evenwithoutsensedisambigua-tion,theseapproacheswereabletoderiveconceptslike{war,campaign,warfare,eﬀort,cause,operation,conﬂict},{concern,carrier,worry,fear,scare}or{home,base,source,support,backing}.Eachoftheindividualwordsintheconceptcouldappearonlyonceortwiceintheinput,buttheconceptitselfappearedinthedocumentfrequently.TheheavyrelianceonWordNetisclearlyabottleneckfortheap-proachesabove,becausesuccessisconstrainedbythecoverageofWord-Net.Becauseofthis,robustmethodssuchaslatentsemanticanalysisthatdonotuseaspeciﬁcstatichand-craftedresourcehavemuchappeal.52MININGTEXTDATA2.3LatentSemanticAnalysisLatentsemanticanalysis(LSA)[19]isarobustunsupervisedtech-niqueforderivinganimplicitrepresentationoftextsemanticsbasedonobservedco-occurrenceofwords.GongandLiu[33]proposedtheuseofLSAforsingleandmulti-documentgenericsummarizationofnews,asawayofidentifyingimportanttopicsindocumentswithouttheuseoflexicalresourcessuchasWordNet.BuildingthetopicrepresentationstartsbyﬁllinginanbymmatrixA:eachrowcorrespondstoawordfromtheinput(nwords)andeachcolumncorrespondstoasentenceintheinput(msentences).Entryaijofthematrixcorrespondstotheweightofwordiinsentencej.Ifthesentencedoesnotcontaintheword,theweightiszero,otherwisetheweightisequaltotheTF*IDFweightoftheword.Standardtech-niquesforsingularvaluedecomposition(SVD)fromlinearalgebraareappliedtothematrixA,torepresentitastheproductofthreematrices:A=UΣVT.Everymatrixhasarepresentationofthiskindandmanystandardlibrariesprovideabuilt-inimplementationofthedecomposi-tion.MatrixUisanbymmatrixofrealnumbers.Eachcolumncanbeinterpretedasatopic,i.e.aspeciﬁccombinationofwordsfromtheinputwiththeweightofeachwordinthetopicgivenbytherealnumber.MatrixΣisdiagonalmbymmatrix.Thesingleentryinrowiofthematrixcorrespondstotheweightofthe“topic”,whichistheithcolumnofU.Topicswithlowweightcanbeignored,bydeletingthelastkrowsofU,thelastkrowsandcolumnsofΣandthelastkrowsofVT.Thisprocedureiscalleddimensionalityreduction.Itcorrespondstothethresholdsemployedinthecentroidandtopicwordsapproaches,andtopicswithlowweightaretreatedasnoise.MatrixVTisanewrepresentationofthesentences,onesentenceperrow,eachofwhichisexpressednotintermsofwordsthatoccurinthesentencebutratherintermsofthetopicsgiveninU.ThematrixD=ΣVTcombinesthetopicweightsandthesentencerepresentationtoindicatetowhatextentthesentenceconveysthetopic,withdijindicatingtheweightfortopiciinsentencej.TheoriginalproposalofGongandLiuwastoselectonesentenceforeachofthemostimportanttopics.Theyperformdimensionalityreduc-tion,retainingonlyasmanytopicsasthenumberofsentencestheywanttoincludeinthesummary.Thesentencewiththehighestweightforeachoftheretainedtopicsisselectedtoformthesummary.Thisstrategysuf-fersfromthesamedrawbackasthelexicalchainsapproachbecausemorethanonesentencemayberequiredtoconveyallinformationpertinentASurveyofTextSummarizationTechniques53tothattopic.Laterresearchershaveproposedalternativeprocedureswhichhaveledtoimprovedperformanceofthesummarizerincontentselection.Oneimprovementistousetheweightofeachtopicinordertodeterminetherelativeproportionofthesummarythatshouldcoverthetopic,thusallowingforavariablenumberofsentencespertopic.Anotherimprovementwastonoticethatoftensentencesthatdiscussseveraloftheimportanttopicsaregoodcandidatesforsummaries[88].Toidentifysuchsentences,theweightofsentencesiissettoequalWeight(si)=(cid:14)(cid:15)(cid:15)(cid:16)m(cid:9)j=1d2i,j(3.6)FurthervariationsoftheLSAapproachhavealsobeenexplored[72,35].ThesystemsthatrelyonLSAbestexemplifythesigniﬁcanceoftheprocedureforsentencescoring.Inthemanyvariantsofthealgorithm,thetopicrepresentationremainsthesamewhilethewaysentencesarescoredandchosenvaries,directlyinﬂuencingtheperformanceofthesummarizerwhenselectingimportantcontent.2.4BayesianTopicModelsBayesianmodelsarethemostsophisticatedapproachfortopicrepre-sentationproposedforsummarizationwhichhasbeensteadilygainingpopularity[18,36,97,11].TheoriginalBayesianmodelformulti-documentsummarization[18,36],derivesseveraldistinctprobabilisticdistributionsofwordsthatap-pearintheinput.OnedistributionisforgeneralEnglish(G),onefortheentireclustertobesummarized(C)andoneforeachindividualdoc-umentiinthatcluster(Di).EachofG,CandDconsistoftablesofwordsandtheirprobabilities,orweights,muchlikethewordprobabilityapproach,buttheweightsareverydiﬀerentinG,CandD:awordwithhighprobabilityingeneralEnglishislikelytohave(almost)zeroweightintheclustertableC.Thetables(probabilitydistributions)arederivedasapartofahierarchicaltopicmodel[8].Itisanunsupervisedmodelandtheonlydataitrequiresareseveralmulti-documentclusters;thegeneralEnglishweightsreﬂectoccurrenceofwordsacrossmostoftheinputclusters.Thetopicmodelrepresentationsarequiteappealingbecausetheycap-tureinformationthatislostinmostoftheotherapproaches.They,forexample,haveanexplicitrepresentationoftheindividualdocumentsthatmakeuptheclusterthatistobesummarized,whileitiscustomaryinotherapproachestotreattheinputtoamulti-documentsummarizer54MININGTEXTDATAasonelongtext,withoutdistinguishingdocumentboundaries.Thedetailedrepresentationwouldlikelyenablethedevelopmentofbettersummarizerswhichconveysthesimilaritiesanddiﬀerencesamongthediﬀerentdocumentsthatmakeuptheinputformulti-documentsum-marization[55,24,54].ItisalsoﬂexibleinthemannerinwhichitderivesthegeneralEnglishweightsofwords,withouttheneedforapre-determinedstopwordlist,orIDFvaluesfromabackgroundcorpus.Inadditiontotheimprovedrepresentation,thetopicmodelshighlighttheuseofadiﬀerentsentencescoringprocedure:Kullback-Lieber(KL)divergence.TheKLdivergencebetweentwoprobabilitydistributionscapturesthemismatchinprobabilitiesassignedtothesameeventsbythetwodistributions.Insummarization,theeventsaretheoccurrenceofwords.Theprobabilityofwordsinthesummarycanbecomputeddirectly,asthenumberoftimesthewordoccursdividedbythetotalnumberofwords.IngeneraltheKLdivergenceofprobabilitydistributionQwithrespecttodistributionPoverwordswisdeﬁnedasKL(P||Q)=(cid:9)wP(w)logP(w)Q(w)(3.7)P(w)andQ(w)aretheprobabilitiesofwinPandQrespectively.Sentencesarescoredandselectedinagreedyiterativeprocedure[36].IneachiterationthebestsentenceitobeselectedinthesummaryisdeterminedastheoneforwhichtheKLdivergencebetweenC,theprobabilitiesofwordsintheclustertobesummarized,andthesummarysofar,includingi,issmallest.KLdivergenceisappealingasawayofscoringandselectingsentenceinsummarizationbecauseittrulycapturesanintuitivenotionthatgoodsummariesaresimilartotheinput.Thinkingaboutagoodsummaryinthiswayisnotnewinsummarization[21,74]butKLprovidesawayofmeasuringhowtheimportanceofwords,givenbytheirprobabilities,changesinthesummarycomparedtotheinput.Agoodsummarywouldreﬂecttheimportanceofwordsaccordingtotheinput,sothedivergencebetweenthetwowillbelow.Thisintuitionhasbeenstudiedextensivelyinworkonautomaticevaluationofcontentselectioninsummarization,whereanotherindicatorofdivergence—JensenShannondivergence—hasprovensuperiortoKL[45,52].Givenallthis,informationtheoreticmeasuresforscoringsentencesarelikelytogainpopularityevenoutsidethedomainonBayesiantopicmodelrepresentations.Allthatisnecessaryinordertoapplyadiver-gencetoscorethesummaryisatablewithwordprobabilities.ThewordprobabilityapproachesinthespiritofSumBasic[68]candirectlyap-ASurveyofTextSummarizationTechniques55plydivergencemeasurestoscoresentencesratherthansum,multiplyoraveragetheprobabilitiesofwords;othermethodsthatassignweightstowordscannormalizetheweightstogetaprobabilitydistributionofwords.Inthenextsectionwewillalsodiscussanapproachforsumma-rizingacademicarticleswhichusesKLdivergencetoscoresentences.2.5SentenceClusteringandDomain-dependentTopicsInmulti-documentsummarizationofnews,theinputbydeﬁnitionconsistsofseveralarticles,possiblyfromdiﬀerentsources,onthesametopic.Acrossthediﬀerentarticlestherewillbesentencesthatcontainsimilarinformation.Informationthatoccursinmanyoftheinputdocu-mentsislikelyimportantandworthselectinginasummary.Ofcourse,verbatimrepetitiononthesentencelevelisnotthatcommonacrosssources.Rather,similarsentencescanbeclusteredtogether[59,39,85].Insummarization,cosinesimilarityisstandardlyusedtomeasurethesimilaritybetweenthevectorrepresentationsofsentences[78].Inthisapproach,clustersofsimilarsentencesaretreatedasproxiesfortopics;clusterswithmanysentencesrepresentimportanttopicthemesintheinput.Selectingonerepresentativesentencefromeachmainclusterisonewaytoproduceanextractivesummary,whileminimizingpossibleredundancyinthesummary.Thesentenceclusteringapproachtomulti-documentsummarizationexploitsrepetitionatthesentencelevel.Themoresentencesthereareinacluster,themoreimportanttheinformationintheclusterisconsidered.Belowisanexampleofasentenceclusterfromdiﬀerentdocumentsintheinputtoamulti-documentsummarizer.Allfoursentencessharecommoncontentthatshouldbeconveyedinthesummary.S1PALwasdevastatedbyapilots’strikeinJuneandbytheregion’scurrencycrisis.S2InJune,PALwasembroiledinacripplingthree-weekpilots’strike.S3Tanwantstoretainthe200pilotsbecausetheystoodbyhimwhenthemajorityofPAL’spilotsstagedadevastatingstrikeinJune.S4InJune,PALwasembroiledinacripplingthree-weekpilots’strike.Constrainingeachsentencetobelongtoonlyoneclusterisadistinctdisadvantageofthesentenceclusteringapproach,andgraphmethodsforsummarizationwhichwediscussinthenextsection,haveproventoexploitthesameideasinamoreﬂexibleway.Fordomain-speciﬁcsummarization,however,clusteringofsentencesfrommanysamplesfromthedomaincangiveagoodindicationaboutthetopicsthatareusuallydiscussedinthedomain,andthetypeof56MININGTEXTDATAinformationthatasummarywouldneedtoconvey.Inthiscase,Hid-denMarkovModels(HMM)thatcapture“storyﬂow”—whattopicsarediscussedinwhatorderinthedomain—canbetrained[5,28].Thesemodelscapitalizeonthefactthatwithinaspeciﬁcdomain,informationindiﬀerenttextsispresentedfollowingacommonpresentationﬂow.Forexample,newsarticlesaboutearthquakesoftenﬁrsttalkaboutwheretheearthquakehappened,whatitsmagnitudewas,thenmentionhumanca-sualtiesordamage,andﬁnallydiscussrescueeﬀorts.Such“storyﬂow”canbelearnedfrommultiplearticlesfromthesamedomain.StatesintheHMMcorrespondtotopicsinthedomain,whicharediscoveredviaiterativeclusteringofsimilarsentencesfrommanyarticlesfromthedomainofinterest.Eachstate(topic)ischaracterizedbyaprobabilitydistributionwhichindicateshowlikelyagivenwordistoappearinasen-tencethatdiscussesthetopic.Transitionsbetweenstatesinthemodelcorrespondtotopictransitionsintypicaltexts.TheseHMMmodelsdonotrequireanylabelleddatafortrainingandallowforbothcontentse-lectionandorderinginsummarization.Thesentencesthathavehighestprobabilityofconveyingimportanttopicsareselectedinthesummary.Evensimplerapproachtodiscoveringthetopicsinaspeciﬁcdomaincanbeappliedwhenthereareavailablesamplesfromthedomainthataremorestructuredandcontainhuman-writtenheadings.Forexam-ple,thereareplentyofWikipediaarticlesaboutactorsanddiseases.Clusteringsimilarsectionheadings,wheresimilarityisdeﬁnedbycosinesimilarityforexample,willidentifythetopicsdiscussedineachtypeofarticle[80].Theclusterswithmostheadingsrepresentthemostcom-montopics,andthemostcommonstringintheclusterisusedtolabelit.Thisprocedurediscoversforexamplethatwhentalkingaboutactors,writersmostoftenincludeinformationabouttheirbiography,earlylife,careerandpersonallife.Thentosummarizewebpagesreturnedbyasearchforaspeciﬁcactor,thesystemcancreateaWikipedia-likewebpageontheﬂy,selectingsentencesfromthereturnedresultsthatconveythesetopics.3.InﬂuenceofContextInmanycases,thesummarizerhasavailableadditionalmaterialsthatcanhelpdeterminethemostimportanttopicsinthedocumenttobesummarized.Forexampleinwebpagesummarization,theaugmentedinputconsistsofotherwebpagesthathavelinkstothepagesthatwewanttosummarize.Inblogsummarization,thediscussionfollowingtheblogpostiseasilyavailableandhighlyindicativeofwhatpartsoftheblogpostareinterestingandimportant.InsummarizationofscholarlyASurveyofTextSummarizationTechniques57papers,laterpapersthatcitethepapertobesummarizedandtheci-tationsentencesinparticular,providearichcontextthatindicatewhatsentencesintheoriginalpaperareimportant.Userinterestsareoftentakenintoaccountinquery-focusedsummarization,wherethequerypro-videsadditionalcontext.Alloftheseapproachesrelyingonaugmentedinputhavebeenexploitedforsummarization.3.1WebSummarizationOnetypeofwebpagecontexttoconsideristhetextinpagesthatlinktotheonethathastobesummarized,inparticularthetextsurroundedbythehyperlinktagpointingtothepage.Thistextoftenprovidesadescriptivesummaryofawebpage(e.g.,“AccesstopaperspublishedwithinthelastyearbymembersoftheNLPgroup”).Proponentsofus-ingcontexttoprovidesummarysentencesarguethatawebsiteincludesmultimedia,maycoverdiversetopics,anditmaybehardforasumma-rizertodistinguishgoodsummarycontentfrombad[20].Theearliestworkonthisapproachwascarriedouttoprovidesnippetsforeachresultfromasearchengine[2].Todetermineasummary,theirsystemissuedasearchforaURL,selectedallsentencescontainingalinktothatURLandthebestsentencewasidentiﬁedusingheuristics.Laterworkhasextendedthisapproachthroughanalgorithmthatallowsselectionofasentencethatcoversasmanyaspectsofthewebpageaspossibleandthatisonthesametopic[20].Forcoverage,Delortetal.usedwordoverlap,normalizedbysentencelength,todeterminewhichsentencesareentirelycoveredbyothersandthuscanberemovedfromconsider-ationforthesummary.Toensuretopicality,Delort’ssystemselectsasentencethatisareferencetothepage(e.g.,“CNNisanewssite”)asopposedtocontent(e.g.,“Thetopstoryfortoday...”).Hecomputestopicalitybymeasuringoverlapbetweeneachcontextsentenceandthetextwithinthewebpage,normalizingbythenumberofwordsinthewebpage.Whenthewebpagedoesnothavemanywords,insteadheclustersallsentencesinthecontextandchoosesthesentencethatismostsimilartoallothersusingcosinedistance.Insummarizationofblogposts,importantsentencesareidentiﬁedbasedonwordfrequency[41].Thecriticaldiﬀerencefromotherap-proachesisthatherefrequencyiscomputedoverthecommentsonthepostratherthentheoriginalblogentry.Theextractedsentencesarethosethateliciteddiscussion.58MININGTEXTDATA3.2SummarizationofScientiﬁcArticlesImpactsummarization[60]isdeﬁnedasthetaskofextractingsen-tencesfromapaperthatrepresentthemostinﬂuentialcontentofthatpaper.Languagemodelsprovideanaturalwayforsolvingthetask.Foreachpapertobesummarized,impactsummarizationmethodsﬁndotherpapersinalargecollectionthatcitethatpaperandextracttheareasinwhichthereferencesoccur.Alanguagemodelisbuiltusingthecollectionofallreferenceareastoapaper,givingtheprobabilityofeachwordtooccurinareferencearea.Thislanguagemodelgivesawayofscoringtheimportanceofsentencesintheoriginalarticle:importantsentencesarethosethatconveyinformationsimilartothatwhichlaterpapersdiscussedwhenreferringtotheoriginalpaper.ThemeasureofsimilaritybetweenasentenceandthelanguagemodelismeasuredbyKLdivergence.Inordertoaccountfortheimportanceofeachsentencewithinthesummarizedarticlealone,theapproachuseswordprobabil-itiesestimatedfromthearticle.Theﬁnalscoreofasentenceisalin-earcombinationofimpactimportancecomingfromKLdivergenceandintrinsicimportancecomingfromthewordprobabilitiesintheinputarticle.3.3Query-focusedSummarizationInquery-focusedsummarization,theimportanceofeachsentencewillbedeterminedbyacombinationoftwofactors:howrelevantisthatsen-tencetotheuserquestionandhowimportantisthesentenceinthecon-textoftheinputinwhichitappears.Therearetwoclassesofapproachestothisproblem.Theﬁrstadaptstechniquesforgenericsummarizationofnews.Forexample,anapproachusingtopicsignaturewords[15]isextendedforquery-focusedsummarizationbyassumingthatthewordsthatshouldappearinasummaryhavethefollowingprobability:awordhasprobabilityzeroofappearinginasummaryforauserdeﬁnedtopicifitneitherappearsintheuserquerynorisatopicsignaturewordfortheinput;theprobabilityofthewordtoappearinthesummaryis0.5ifiteitherappearsintheuserqueryorisatopicsignature,butnotboth;andtheprobabilityofawordtoappearinasummaryis1ifitisbothintheuserqueryandinthelistoftopicsignaturewordsfortheinput.Theseprobabilitiesarearbitrarilychosen,butinfactworkwellwhenusedtoassignweightstosentencesequaltotheaverageprobabilityofwordsinthesentence.Graph-basedapproaches[71]havealsobeenadaptedforquery-focusedsummarizationwithminormodiﬁcations.Otherapproacheshavebeendevelopedthatusenewmethodsforiden-tifyingrelevantandsalientsentences.TheseapproacheshaveusuallyASurveyofTextSummarizationTechniques59beendevelopedforspeciﬁctypesofqueries.Forexample,manypeoplehaveworkedongenerationofbiographicalsummaries,wherethequeryisthenameofthepersonforwhomabiographyshouldbegenerated.Mostpeopleusesomebalanceoftop-downdrivenapproachesthatsearchforpatternsofinformationthatmightbefoundinabiography,oftenusingmachinelearningtoidentifythepatterns,combinedwithbottom-upapproachesthatsiftthroughallavailablematerialtoﬁndsentencesthatarebiographicalinnature[7,98,81,105,6].ThemostrecentoftheseapproachesuseslanguagemodelingofbiographicaltextsfoundonWikipediaandnon-biographicaltextsinanewscorpustoidentifybiographicalsentencesininputdocuments.Producingsnippetsforsearchenginesisaparticularlyusefulqueryfocusedapplication[92,95].3.4EmailSummarizationSummarizationmustbesensitivetotheuniquecharacteristicsofemail,adistinctlinguisticgenrethatexhibitscharacteristicsofbothwrittentextandspokenconversation.Athreadoramailboxcontainsoneormoreconversationsbetweentwoormoreparticipantsovertime.Asinsummarizationofspokendialog,therefore,summarizationneedstotaketheinteractivenatureofdialogintoaccount;aresponseisoftenonlymeaningfulinrelationtotheutteranceitaddresses.Unlikespo-kendialog,however,thesummarizerneednotconcernitselfwithspeechrecognitionerrors,theimpactofpronunciation,ortheavailabilityofspeechfeaturessuchasprosody.Furthermore,responsesandreactionsarenotimmediateandduetotheasynchronousnatureofemail,theymayexplicitlymarkthepreviousemailpassagestowhichtheyarerele-vant.Inearlyresearchonsummarizationofemailthreads,[66]usedanex-tractivesummarizertogenerateasummaryfortheﬁrsttwolevelsofthediscussionthreadtree,producingrelativelyshort“overviewsum-maries.”Theyextractedasentenceforeachofthetwolevels,usingoverlapwithprecedingcontext.Laterworkonsummarizationofemailthreads[75]zeroedinonthedialogicnatureofemail.Theirsummarizerusedmachinelearningandreliedonemailspeciﬁcfeaturesinadditiontotraditionalfeatures,includingfeaturesrelatedtothethreadandfea-turesrelatedtoemailstructuresuchasthenumberofresponderstoamessage,similarityofasentencewiththesubject,etc.Emailconversa-tionsareanaturalmeansofgettinganswerstoone’squestionsandtheasynchronousnatureofemailmakesitpossibleforonetopursuesev-eralquestionsinparallel.Asaconsequence,question-answerexchanges60MININGTEXTDATAﬁgureasoneofthedominantusesofemailconversations.Theseobser-vationsledtoresearchonidentiﬁcationofquestionandanswerpairsinemail[84,64]andtheintegrationofsuchpairsinextractivesummariesofemail[58].Emailsummarizershavealsobeendevelopedforafullmailboxorarchiveinsteadofjustathread.[69]presentasystemthatcanbeusedforbrowsinganemailmailboxandthatbuildsuponmulti-documentsummarizationtechniques.Theyﬁrstclusterallemailintopicallyre-latedthreads.Bothanoverviewandafull-lengthsummaryarethengeneratedforeachcluster.Amorerecentapproachtosummarizationofemailwithinafolderusesanovelgraph-basedanalysisofquotationswithinemail[10].Usingthisanalysis,Careninietal.’ssystemcomputesagraphrepresentinghoweachindividualemaildirectlymentionsotheremails,atthegranularityoffragmentsandsentences.4.IndicatorRepresentationsandMachineLearningforSummarizationIndicatorrepresentationapproachesdonotattempttointerpretorrepresentthetopicsdiscussedintheinput.Insteadtheycomeupwitharepresentationofthetextthatcanbeusedtodirectlyranksentencesbyimportance.Graphmethodsareuniquebecauseintheirmostpopularformulationstheybasesummarizationonasingleindicatorofimpor-tance,derivedfromthecentralityofsentencesinagraphrepresentationoftheinput.Incontrastotherapproachesemployavarietyofindica-torsandcombinethemeitherheuristicallyorusingmachinelearningtodecidewhichsentencesareworthytobeincludedinthesummary.4.1GraphMethodsforSentenceImportanceInthegraphmodelsinspiredbythePageRankalgorithm[25,61],theinputisrepresentedasahighlyconnectedgraph.Verticesrepresentsentencesandedgesbetweensentencesareassignedweightsequaltothesimilaritybetweenthetwosentences.ThemethodmostoftenusedtocomputesimilarityiscosinesimilaritywithTF*IDFweightsforwords.Sometimes,insteadofassigningweightstoedges,theconnectionsbe-tweenverticescanbedeterminedinabinaryfashion:theverticesareconnectedonlyifthesimilaritybetweenthetwosentencesexceedsapre-deﬁnedthreshold.Sentencesthatarerelatedtomanyothersentencesarelikelytobecentralandwouldhavehighweightforselectioninthesummary.WhentheweightsoftheedgesarenormalizedtoformaprobabilitydistributionsothattheweightofalloutgoingedgesfromagivenvertexASurveyofTextSummarizationTechniques61sumuptoone,thegraphbecomesaMarkovchainandtheedgeweightscorrespondtotheprobabilityoftransitioningfromonestatetoanother.Standardalgorithmsforstochasticprocessescanbeusedtocomputetheprobabilityofbeingineachvertexofthegraphattimetwhilemakingconsecutivetransitionsfromonevertextonext.Asmoreandmoretransitionsaremade,theprobabilityofeachvertexconverges,givingthestationarydistributionofthechain.Thestationarydistributiongivestheprobabilityof(beingat)agivenvertexandcanbecomputedusingiterativeapproximation.Verticeswithhigherprobabilitiescorrespondtomoreimportantsentencesthatshouldbeincludedinthesummary.Graph-basedapproacheshavebeenshowntoworkwellforbothsingle-documentandmulti-documentsummarization[25,61].Sincetheap-proachdoesnotrequirelanguage-speciﬁclinguisticprocessingbeyondidentifyingsentenceandwordboundaries,itcanalsobeappliedtootherlanguages,forexample,BrazilianPortuguese[62].Atthesametime,in-corporatingsyntacticandsemanticroleinformationinthebuildingofthetextgraphleadstosuperiorresultsoverplainTF*IDFcosinesimi-larity[13].Usingdiﬀerentweightingschemesforlinksbetweensentencesthatbelongtothesamearticleandsentencesfromdiﬀerentarticlescanhelpseparatethenotionsoftopicalitywithinadocumentandrecurrenttopicsacrossdocuments.Thisdistinctioncanbeeasilyintegratedinthegraph-basedmodelsforsummarization[96].Graphrepresentationsforsummarizationhadbeenexploredevenbe-forethePageRankmodelsbecamepopular.Forexample,thepurposeofanoldergraph-basedsystemformulti-documentsummarization[55]istoidentifysalientregionsofeachstoryrelatedtoatopicgivenbyauser,andcomparethestoriesbysummarizingsimilaritiesanddiﬀer-ences.Theverticesinthegrapharewords,phrasesandnamedentitiesratherthansentencesandtheirinitialweightisassignedusingTF*IDF.EdgesbetweenverticesaredeﬁnedusingsynonymandhypernymlinksinWordNet,aswellascoreferencelinks.Spreadingactivationisusedtoassignweightstonon-querytermsasafunctionoftheweightoftheirneighborsinthegraphandthetypeofrelationconnectingthenodes.Inordertoavoidproblemswithcoherencethatmayarisewiththeselectionofsinglesentences,theauthorsofanotherapproach[78]arguethatasummarizershouldselectfullparagraphstoprovideadequatecontext.Theiralgorithmconstructsatextgraphforadocumentusingcosinesimilaritybetweeneachpairofparagraphsinthedocument.Theshapeofthetextgraphdetermineswhichparagraphstoextract.Intheirexperiments,theyshowthattwostrategies,selectingparagraphs62MININGTEXTDATAthatarewellconnectedtootherparagraphsorﬁrstparagraphsoftopicaltextsegmentswithinthegraph,bothproducegoodsummaries.Acombinationofthesubsententialgranularityofanalysiswherenodesarewordsandphrasesratherthansentencesandedgesaresyntacticdependencieshasalsobeenexplored[44].Usingmachinelearningtech-niques,theauthorsattempttolearnwhatportionsoftheinputgraphwouldbeincludedinasummary.Intheirexperimentsonsingledoc-umentsummarizationofnewsarticles,propertiesofthegraphsuchasincomingandoutgoinglinks,connectivityandPageRankweightsareidentiﬁedasthebestclassoffeaturesthatcanbeusedforcontentselec-tion.Thisworkprovidesanexcellentexampleofhowmachinelearningcanbeusedtocombinearangeofindicatorsofimportanceratherthancommittingtoasingleone.4.2MachineLearningforSummarizationEdmundson’searlywork[23]setthedirectionforlaterinvestigationofapplyingmachinelearningtechniquesforsummarization[43].Heproposedthatratherthanrelyingonasinglerepresentationoftopicsintheinput,manydiﬀerentindicatorsofimportancecanbecombined.Thenacorpusofinputsandsummarieswrittenbypeoplecanbeusedtodeterminetheweightofeachindicator.Insupervisedmethodsforsummarization,thetaskofselectingim-portantsentencesisrepresentedasabinaryclassiﬁcationproblem,par-titioningallsentencesintheinputintosummaryandnon-summarysen-tences.Acorpuswithhumanannotationsofsentencesthatshouldbeincludedinthesummaryisusedtotrainastatisticalclassiﬁerforthedis-tinction,witheachsentencesrepresentedasalistofpotentialindicatorsofimportance.Thelikelihoodofasentencetobelongtothesummaryclass,ortheconﬁdenceoftheclassiﬁerthatthesentenceshouldbeinthesummary,isthescoreofthesentence.Thechosenclassiﬁerplaystheroleofasentencescoringfunction,takingasaninputtheintermediaterepresentationofthesentenceandoutputtingthescoreofthesentence.Themosthighlyscoringsentencesareselectedtoformthesummary,possiblyafterskippingsomebecauseofhighsimilaritytoalreadycho-sensentences.Machinelearningapproachestosummarizationoﬀergreatfreedombecausethenumberofindicatorsofimportanceispracticallyendless[40,70,104,44,27,37,99,51].Anyofthetopicrepresentationap-proachesdiscussedabovecanserveasthebasisofindicators.Somecommonfeaturesincludethepositionofthesentenceinthedocument(ﬁrstsentencesofnewsarealmostalwaysinformative),positionintheASurveyofTextSummarizationTechniques63paragraph(ﬁrstandlastsentencesareoftenimportant),sentencelength,similarityofthesentencewiththedocumenttitleorheadings,weightsofthewordsinasentencedeterminedbyanytopicrepresentationap-proach,presenceofnamedentitiesorcuephrasesfromapredeterminedlist,etc.Itishardlyanexaggerationtosaythateveryexistingmachinelearn-ingmethodhasbeenappliedforsummarization.Oneimportantdiﬀer-enceiswhethertheclassiﬁerassumesthatthedecisionaboutinclusioninthesummaryisindependentlydoneforeachsentence.Thisassumptionisapparentlynotrealistic,andmethodsthatexplicitlyencodedependen-ciesbetweensentencessuchasHiddenMarkovModelsandConditionalRandomFieldsoutperformotherlearningmethods[14,30,83].Aprobleminherentinthesupervisedlearningparadigmistheneces-sityoflabeleddataonwhichclassiﬁerscanbetrained.Askingannota-torstoselectsummary-worthysentencesisareasonablesolution[93]butitistimeconsumingandevenmoreimportantly,annotatoragreementislowanddiﬀerentpeopletendtochoosediﬀerentsentenceswhenaskedtoconstructanextractivesummaryofatext[76].Partlymotivatedbythisissueandpartlybecauseoftheirinterestinultimatelydevelopingabstractivemethodsforsummarizationmanyresearchershaveinsteadworkedwithabstractswrittenbypeople(oftenprofessionalwriters).Researchersconcentratedtheireﬀortsondevelopingmethodsforauto-maticalignmentofthehumanabstractsandtheinput[56,42,104,4,17]inordertoprovidelabeleddataofsummaryandnon-summarysen-tencesformachinelearning.Someresearchershavealsoproposedwaystoleveragetheinformationfrommanualevaluationofcontentselectioninsummarizationinwhichmultiplesentencescanbemarkedasexpress-ingthesamefactthatshouldbeinthesummary[16,27].Alternatively,onecouldcomputesimilaritybetweensentencesinhumanabstractsandthoseintheinputinordertoﬁndverysimilarsentences,notnecessarilydoingfullalignment[12].Anotheroptionfortrainingaclassiﬁeristoemployasemi-supervisedapproach.Inthisparadigm,asmallnumberofexamplesofsummaryandnon-summarysentencesareannotatedbypeople.Thentwoclassi-ﬁersaretrainedonthatdata,usingdiﬀerentsetsoffeatureswhichareindependentgiventheclass[100]ortwodiﬀerentclassiﬁcationmethods[99].Afterthatoneoftheclassiﬁersisrunonunannotateddata,anditsmostconﬁdentpredictionsareaddedtotheannotatedexamplestotraintheotherclassiﬁer,repeatingtheprocessuntilsomepredeﬁnedhaltingconditionismet.Severalmodiﬁcationstostandardmachinelearningapproachesareappropriateforsummarization.Ineﬀectformulatingsummarizationas64MININGTEXTDATAabinaryclassiﬁcationproblem,whichscoresindividualsentences,isnotequivalenttoﬁndingthebestsummary,whichconsistsofseveralsen-tences.Thisisexactlytheissueofselectingasummarythatwediscussinthenextsection.Intrainingasupervisedmodel,theparametersmaybeoptimizedtoleadtoasummarythathasthebestscoreagainstahumanmodel[1,49].Forgenericmulti-documentsummarizationofnews,supervisedmeth-odshavenotbeenshowntooutperformcompetitiveunsupervisedmeth-odsbasedonasinglefeaturesuchasthepresenceoftopicwordsandgraphmethods.Machinelearningapproacheshaveprovedtobemuchmoresuccessfulinsingledocumentordomainorgenrespeciﬁcsum-marization,whereclassiﬁerscanbetrainedtoidentifyspeciﬁctypesofinformationsuchassentencesdescribingliteraturebackgroundinsci-entiﬁcarticlesummarization[90],utterancesexpressingagreementordisagreementinmeetings[30],biographicalinformation[105,6,80],etc.5.SelectingSummarySentencesMostsummarizationapproacheschoosecontentsentencebysentence:theyﬁrstincludethemostinformativesentence,andthenifspacecon-straintspermit,thenextmostinformativesentenceisincludedinthesummaryandsoon.Someprocessofcheckingforsimilaritybetweenthechosensentencesisalsousuallyemployedinordertoavoidtheinclusionofrepetitivesentences.5.1GreedyApproaches:MaximalMarginalRelevanceindexGreedyApproachtoSummarizationOneoftheearlysumma-rizationapproachesforbothgenericandqueryfocusedsummarizationthathasbeenwidelyadoptedisMaximalMarginalRelevance(MMR)[9].Inthisapproach,summariesarecreatedusinggreedy,sentence-by-sentenceselection.Ateachselectionstep,thegreedyalgorithmisconstrainedtoselectthesentencethatismaximallyrelevanttotheuserquery(orhashighestimportancescorewhenaqueryisnotavailable)andminimallyredundantwithsentencesalreadyincludedinthesummary.MMRmeasuresrelevanceandnoveltyseparatelyandthenusesalinearcombinationofthetwotoproduceasinglescorefortheimportanceofasentenceinagivenstageoftheselectionprocess.Toquantifybothpropertiesofasentence,CarbonellandGoldsteinusecosinesimilarity.Forrelevance,similarityismeasuredtothequery,whilefornovelty,similarityismeasuredagainstsentencesselectedsofar.TheMMRap-proachwasoriginallyproposedforquery-focusedsummarizationintheASurveyofTextSummarizationTechniques65contextofinformationretrieval,butcouldeasilybeadaptedforgenericsummarization,forexamplebyusingtheentireinputasauser[33].Infactanyofthepreviouslydiscussedapproachesforsentencescoringcanbeusedtocalculatetheimportanceofasentence.Manyhaveadoptedthisseminalapproach,mostlyinitsgenericversion,sometimesusingdiﬀerentmeasuresofnoveltytoselectnewsentences[91,101,65].Thisgreedyapproachofsequentialsentenceselectionmightnotbethateﬀectiveforoptimalcontentselectionoftheentiresummary.Onetypicalproblematicscenarioforgreedysentenceselection(discussedin[57])iswhenaverylongandhighlyrelevantsentencehappenstobeevaluatedasthemostinformativeearlyon.Suchasentencemaycontainseveralpiecesofrelevantinformation,alongsidesomenotsorelevantfactswhichcouldbeconsiderednoise.Includingsuchasentenceinthesummarywillhelpmaximizecontentrelevanceatthetimeofselection,butatthecostoflimitingtheamountofspaceinthesummaryremainingforothersentences.Insuchcasesitisoftenmoredesirabletoincludeseveralshortersentences,whichareindividuallylessinformativethanthelongone,butwhichtakentogetherdonotexpressanyunnecessaryinformation.5.2GlobalSummarySelectionGlobaloptimizationalgorithmscanbeusedtosolvethenewformu-lationofthesummarizationtask,inwhichthebestoverallsummaryisselected.Givensomeconstraintsimposedonthesummary,suchasmaximizinginformativeness,minimizingrepetition,andconformingtorequiredsummarylength,thetaskwouldbetoselectthebestsum-mary.FindinganexactsolutiontothisproblemisNP-hard[26],butapproximatesolutionscanbefoundusingadynamicprogrammingal-gorithm[57,103,102].Exactsolutionscanbefoundquicklyviasearchtechniqueswhenthesentencescoringfunctionislocal,computableonlyfromthegivensentence[1].Eveninglobaloptimizationmethods,informativenessisstilldeﬁnedandmeasuredusingfeatureswell-exploredinthesentenceselectionlit-erature.Theseincludewordfrequencyandpositioninthedocument[103],TF*IDF[26],similaritywiththeinput[57],andconceptfrequency[102,32].Globaloptimizationapproachestocontentselectionhavebeenshowntooutperformgreedyselectionalgorithmsinseveralevaluationsusingnewsdataasinput,andhaveprovedtobeespeciallyeﬀectiveforextractivesummarizationofmeetings[77,32].Inadetailedstudyofglobalinferencealgorithms[57],ithasbeendemonstratedthatitispossibletoﬁndanexactsolutionfortheop-66MININGTEXTDATAtimizationproblemforcontentselectionusingIntegerLinearProgram-ming.Theperformanceoftheapproximatealgorithmbasedondynamicprogrammingwaslower,butcomparabletothatoftheexactsolutions.Intermsofrunningtime,thegreedyalgorithmisveryeﬃcient,almostconstantinthesizeoftheinput.Theapproximatealgorithmscaleslinearlywiththesizeoftheinputandisthusindeedpracticaltouse.Therunningtimefortheexactalgorithmgrowssteeplywiththesizeoftheinputandisunlikelytobeusefulinpractice[57].However,whenamonotonesubmodularfunctionisusedtoevaluatetheinformativenessofthesummary,optimalornearoptimalsolutioncanbefoundquickly[48,47].6.ConclusionInthischapterwehaveattemptedtogiveacomprehensiveoverviewofthemostprominentrecentmethodsforautomatictextsummariza-tion.Wehaveoutlinedtheconnectiontoearlyapproachesandhavecontrastedapproachesintermsofhowtheyrepresenttheinput,scoresentencesandselectthesummary.WehavehighlightedthesuccessofKLdivergenceasamethodforscoringsentenceswhichdirectlyincorpo-ratesanintuitionaboutthecharacteristicsofagoodsummary,aswellasthegrowinginterestinthedevelopmentofmethodsthatgloballyop-timizetheselectionofthesummary.Wehaveshownhowsummarizationstrategiesmustbeadaptedtodiﬀerentgenres,suchaswebpagesandjournalarticles,takingintoaccountcontextualinformationthatguidessentenceselection.Thesethreerecentdevelopmentsinsummarizationcomplementtraditionaltopicsintheﬁeldthatconcernintermediaterep-resentationsandtheapplicationofappropriatemachinelearningmeth-odsforsummarization.References[1]A.Aker,T.Cohn,andR.Gaizauskas.Multi-documentsumma-rizationusinga*searchanddiscriminativetraining.InProceedingsofthe2010ConferenceonEmpiricalMethodsinNaturalLanguageProcessing,EMNLP’10,pages482–491,2010.[2]E.AmitayandC.Paris.Automaticallysummarizingwebsites-isthereawayaroundit?InProceedingsoftheACMConferenceonInformationandKnowledgeManagement,pages173–179,2000.[3]R.BarzilayandM.Elhadad.Textsummarizationswithlexicalchains.InInderjeetManiandMarkMaybury,editors,AdvancesinAutomaticTextSummarization,pages111–121.MITPress,1999.ASurveyofTextSummarizationTechniques67[4]R.BarzilayandN.Elhadad.Sentencealignmentformonolingualcomparablecorpora.InProceedingsoftheConferenceonEmpiri-calMethodsinNaturalLanguageProcessing,pages25–32,2003.[5]R.BarzilayandL.Lee.Catchingthedrift:Probabilisticcontentmodels,withapplicationstogenerationandsummarization.InHumanLanguageTechnologyConferenceoftheNorthAmericanChapteroftheAssociationforComputationalLinguistics,pages113–120,2004.[6]F.Biadsy,J.Hirschberg,andE.Filatova.Anunsupervisedap-proachtobiographyproductionusingwikipedia.InProceedingsoftheAnnualMeetingoftheAssociationforComputationalLin-guistics,pages807–815,2008.[7]S.Blair-Goldensohn,K.McKeown,andA.Schlaikjer.Defscriber:ahybridsystemfordeﬁnitionalqa.InProceedingsoftheAnnualInternationalACMSIGIRConferenceonResearchandDevelop-mentinInformationRetrieval,pages462–462,2003.[8]D.Blei,T.Griﬃths,M.Jordan,andJ.Tenenbaum.Hierarchi-caltopicmodelsandthenestedchineserestaurantprocess.InAdvancesinNeuralInformationProcessingSystems,page2003,2004.[9]J.CarbonellandJ.Goldstein.Theuseofmmr,diversity-basedrerunningforreorderingdocumentsandproducingsummaries.InProceedingsoftheAnnualInternationalACMSIGIRConfer-enceonResearchandDevelopmentinInformationRetrieval,pages335–336,1998.[10]G.Carenini,R.Ng,andX.Zhou.Summarizingemailconversationswithcluewords.InProceedingsoftheinternationalconferenceonWorldWideWeb,pages91–100,2007.[11]A.CelikyilmazandD.Hakkani-Tur.Ahybridhierarchicalmodelformulti-documentsummarization.InProceedingsofthe48thAnnualMeetingoftheAssociationforComputationalLinguistics,pages815–824,2010.[12]Y.Chali,S.Hasan,andS.Joty.Doautomaticannotationtech-niqueshaveanyimpactonsupervisedcomplexquestionanswer-ing?InProceedingsoftheJointConferenceoftheAnnualMeetingoftheACLandtheInternationalJointConferenceonNaturalLanguageProcessingoftheAFNLP,pages329–332,2009.[13]Y.ChaliandS.Joty.Improvingtheperformanceoftherandomwalkmodelforansweringcomplexquestions.InProceedingsofthe68MININGTEXTDATAAnnualMeetingoftheAssociationforComputationalLinguistics,ShortPapers,pages9–12,2008.[14]J.ConroyandD.O’Leary.Textsummarizationviahiddenmarkovmodels.InProceedingsoftheAnnualInternationalACMSI-GIRConferenceonResearchandDevelopmentinInformationRe-trieval,pages406–407,2001.[15]J.Conroy,J.Schlesinger,andD.O’Leary.Topic-focusedmulti-documentsummarizationusinganapproximateoraclescore.InProceedingsoftheInternationalConferenceonComputationalLinguisticsandtheannualmeetingoftheAssociationforCom-putationalLinguistics,pages152–159,2006.[16]T.CopeckandS.Szpakowicz.Leveragingpyramids.InProceedingsoftheDocumentUnderstandingConference,2005.[17]H.Daum´eIIIandD.Marcu.Aphrase-basedHMMapproachtodocument/abstractalignment.InProceedingsoftheConferenceonEmpiricalMethodsinNaturalLanguageProcessing,pages119–126,2004.[18]H.Daum´eIIIandD.Marcu.Bayesianquery-focusedsummariza-tion.InProceedingsoftheInternationalConferenceonCompu-tationalLinguisticsandtheannualmeetingoftheAssociationforComputationalLinguistics,pages305–312,2006.[19]S.Deerwester,S.Dumais,G.Furnas,T.Landauer,andR.Harsh-man.Indexingbylatentsemanticanalysis.JournaloftheAmeri-canSocietyforInformationScience,pages391–407,1990.[20]J.-Y.Delort,B.Bouchon-Meunier,andM.Rifqi.Enhancedwebdocumentsummarizationusinghyperlinks.InProceedingsoftheACMconferenceonHypertextandhypermedia,pages208–215,2003.[21]R.Donaway,K.Drummey,andL.Mather.Acomparisonofrank-ingsproducedbysummarizationevaluationmeasures.InProceed-ingsofthe2000NAACL-ANLPWorkshoponAutomaticsumma-rization-Volume4,pages69–78,2000.[22]T.Dunning.Accuratemethodsforthestatisticsofsurpriseandcoincidence.ComputationalLinguistics,19(1):61–74,1994.[23]H.Edmundson.Newmethodsinautomaticextracting.JournaloftheACM,16(2):264–285,1969.[24]N.Elhadad,M.-Y.Kan,J.Klavans,andK.McKeown.Customiza-tioninauniﬁedframeworkforsummarizingmedicalliterature.JournalofArtiﬁcialIntelligenceinMedicine,33:179–198,2005.ASurveyofTextSummarizationTechniques69[25]G.ErkanandD.Radev.Lexrank:Graph-basedcentralityassalienceintextsummarization.JournalofArtiﬁcialIntelligenceResearch,2004.[26]E.FilatovaandV.Hatzivassiloglou.Aformalmodelforinforma-tionselectioninmulti-sentencetextextraction.InProceedingsoftheInternationalConferenceonComputationalLinguistic,pages397–403,2004.[27]M.Fuentes,E.Alfonseca,andH.Rodr´ıguez.Supportvectorma-chinesforquery-focusedsummarizationtrainedandevaluatedonpyramiddata.InProceedingsoftheAnnualMeetingoftheAsso-ciationforComputationalLinguistics,CompanionVolume:Pro-ceedingsoftheDemoandPosterSessions,pages57–60,2007.[28]P.FungandG.Ngai.Onestory,oneﬂow:Hiddenmarkovstorymodelsformultilingualmultidocumentsummarization.ACMTransactionsonSpeechandLanguageProcessing,3(2):1–16,2006.[29]S.Furui,M.Hirohata,Y.Shinnaka,andK.Iwano.Sentenceextraction-basedautomaticspeechsummarizationandevalua-tiontechniques.InProceedingsoftheSymposiumonLarge-scaleKnowledgeResources,pages33–38,2005.[30]M.Galley.Askip-chainconditionalrandomﬁeldforrankingmeet-ingutterancesbyimportance.InProceedingsoftheConferenceonEmpiricalMethodsinNaturalLanguageProcessing,pages364–372,2006.[31]M.GalleyandK.McKeown.Improvingwordsensedisambigua-tioninlexicalchaining.InProceedingsoftheinternationaljointconferenceonArtiﬁcialintelligence,pages1486–1488,2003.[32]D.Gillick,K.Riedhammer,B.Favre,andD.Hakkani-Tur.Aglobaloptimizationframeworkformeetingsummarization.InProceedingsoftheIEEEInternationalConferenceonAcoustics,SpeechandSignalProcessing,pages4769–4772,2009.[33]Y.GongandX.Liu.Generictextsummarizationusingrelevancemeasureandlatentsemanticanalysis.InProceedingsoftheAnnualInternationalACMSIGIRConferenceonResearchandDevelop-mentinInformationRetrieval,pages19–25,2001.[34]S.Gupta,A.Nenkova,andD.Jurafsky.Measuringimportanceandqueryrelevanceintopic-focusedmulti-documentsummarization.InProceedingsoftheAnnualMeetingoftheAssociationforCom-putationalLinguistics,DemoandPosterSessions,pages193–196,2007.70MININGTEXTDATA[35]B.Hachey,G.Murray,andD.Reitter.Dimensionalityreductionaidstermco-occurrencebasedmulti-documentsummarization.InSumQA’06:ProceedingsoftheWorkshoponTask-FocusedSum-marizationandQuestionAnswering,pages1–7,2006.[36]A.HaghighiandL.Vanderwende.Exploringcontentmodelsformulti-documentsummarization.InProceedingsofHumanLan-guageTechnologies:The2009AnnualConferenceoftheNorthAmericanChapteroftheAssociationforComputationalLinguis-tics,pages362–370,2009.[37]D.Hakkani-TurandG.Tur.Statisticalsentenceextractionforinformationdistillation.InProceedingsoftheIEEEInternationalConferenceonAcoustics,SpeechandSignalProcessing,volume4,pagesIV–1–IV–4,2007.[38]S.HarabagiuandF.Lacatusu.Topicthemesformulti-documentsummarization.InProceedingsofthe28thannualinternationalACMSIGIRconferenceonResearchanddevelopmentininforma-tionretrieval,SIGIR’05,pages202–209,2005.[39]V.Hatzivassiloglou,J.Klavans,M.Holcombe,R.Barzilay,M.Kan,andK.McKeown.Simﬁnder:Aﬂexibleclusteringtoolforsummarization.InProceedingsoftheNAACLWorkshoponAu-tomaticSummarization,pages41–49,2001.[40]E.HovyandC.-Y.Lin.Automatedtextsummarizationinsum-marist.InAdvancesinAutomaticTextSummarization,pages82–94,1999.[41]M.Hu,A.Sun,andE.-P.Lim.Comments-orientedblogsumma-rizationbysentenceextraction.InProceedingsoftheACMConfer-enceonInformationandKnowledgeManagement,pages901–904,2007.[42]H.Jing.Usinghiddenmarkovmodelingtodecomposehuman-writtensummaries.Computationallinguistics,28(4):527–543,2002.[43]J.Kupiec,J.Pedersen,andF.Chen.Atrainabledocumentsum-marizer.InProceedingsoftheAnnualInternationalACMSI-GIRConferenceonResearchandDevelopmentinInformationRe-trieval,pages68–73,1995.[44]J.Leskovec,N.Milic-frayling,andM.Grobelnik.Impactoflin-guisticanalysisonthesemanticgraphcoverageandlearningofdocumentextracts.InProceedingsofthenationalconferenceonArtiﬁcialintelligence,pages1069–1074,2005.ASurveyofTextSummarizationTechniques71[45]C.-Y.Lin,G.Cao,J.Gao,andJ.-Y.Nie.Aninformation-theoreticapproachtoautomaticevaluationofsummaries.InProceedingsofthemainconferenceonHumanLanguageTechnologyConferenceoftheNorthAmericanChapteroftheAssociationofComputa-tionalLinguistics(HLT-NAACL’06),pages463–470,2006.[46]C.-Y.LinandE.Hovy.Theautomatedacquisitionoftopicsigna-turesfortextsummarization.InProceedingsoftheInternationalConferenceonComputationalLinguistic,pages495–501,2000.[47]H.LinandJ.Bilmes.Multi-documentsummarizationviabud-getedmaximizationofsubmodularfunctions.InNorthAmericanchapteroftheAssociationforComputationalLinguistics/HumanLanguageTechnologyConference(NAACL/HLT-2010),2010.[48]H.Lin,J.Bilmes,andS.Xie.Graph-basedsubmodularselectionforextractivesummarization.InProc.IEEEAutomaticSpeechRecognitionandUnderstanding(ASRU),2009.[49]S.-H.Lin,Y.-M.Chang,J.-W.Liu,andB.Chen.Leveragingevalu-ationmetric-relatedtrainingcriteriaforspeechsummarization.InProceedingsoftheIEEEInternationalConferenceonAcoustics,Speech,andSignalProcessing,ICASSP2010,pages5314–5317,2010.[50]S.-H.LinandB.Chen.Ariskminimizationframeworkforex-tractivespeechsummarization.InProceedingsofthe48thAnnualMeetingoftheAssociationforComputationalLinguistics,pages79–87,2010.[51]A.Louis,A.Joshi,andA.Nenkova.Discourseindicatorsforcon-tentselectioninsummarization.InProceedingsoftheAnnualMeetingoftheSpecialInterestGrouponDiscourseandDialogue,pages147–156,2010.[52]A.LouisandA.Nenkova.Automaticallyevaluatingcontentselec-tioninsummarizationwithouthumanmodels.InProceedingsofthe2009ConferenceonEmpiricalMethodsinNaturalLanguageProcessing(EMNLP),pages306–314,2009.[53]H.P.Luhn.Theautomaticcreationofliteratureabstracts.IBMJournalofResearchandDevelopment,2(2):159–165,1958.[54]M.Mana-L´opez,M.DeBuenaga,andJ.G´omez-Hidalgo.Mul-tidocumentsummarization:Anaddedvaluetoclusteringinin-teractiveretrieval.ACMTransactionsonInformationsSystems,22(2):215–241,2004.72MININGTEXTDATA[55]I.ManiandE.Bloedorn.Summarizingsimilaritiesanddiﬀerencesamongrelateddocuments.InformationRetrieval,1(1-2):35–67,April1999.[56]D.Marcu.Theautomaticconstructionoflarge-scalecorporaforsummarizationresearch.InProceedingsoftheAnnualInterna-tionalACMSIGIRConferenceonResearchandDevelopmentinInformationRetrieval,pages137–144,1999.[57]R.McDonald.Astudyofglobalinferencealgorithmsinmulti-documentsummarization.InProceedingsoftheEuropeanConfer-enceonIRResearch,pages557–564,2007.[58]K.McKeown,L.Shrestha,andO.Rambow.Usingquestion-answerpairsinextractivesummarizationofemailconversations.InPro-ceedingsoftheInternationalConferenceonComputationalLin-guisticsandIntelligentTextProcessing,pages542–550,2007.[59]K.McKeown,J.Klavans,V.Hatzivassiloglou,R.Barzilay,andE.Eskin.Towardsmultidocumentsummarizationbyreformulation:progressandprospects.InProceedingsofthenationalconferenceonArtiﬁcialintelligence,pages453–460,1999.[60]Q.MeiandC.Zhai.Generatingimpact-basedsummariesforsci-entiﬁcliterature.InProceedingsoftheAnnualMeetingoftheAssociationforComputationalLinguistics,pages816–824,2008.[61]R.MihalceaandP.Tarau.Textrank:Bringingorderintotexts.InProceedingsoftheConferenceonEmpiricalMethodsinNaturalLanguageProcessing,pages404–411,2004.[62]R.MihalceaandP.Tarau.Analgorithmforlanguageindependentsingleandmultipledocumentsummarization.InProceedingsoftheInternationalJointConferenceonNaturalLanguageProcessing,pages19–24,2005.[63]G.A.Miller,R.Beckwith,C.Fellbaum,D.Gross,andK.J.Miller.Introductiontowordnet:Anon-linelexicaldatabase.InternationalJournalofLexicography(specialissue),3(4):235–312,1990.[64]H.Murakoshi,A.Shimazu,andK.Ochimizu.Constructionofde-liberationstructureinemailconversation.InProceedingsoftheConferenceofthePaciﬁcAssociationforComputationalLinguis-tics,pages570–577,2004.[65]G.Murray,S.Renals,andJ.Carletta.Extractivesummarizationofmeetingrecordings.InProc.9thEuropeanConferenceonSpeechCommunicationandTechnology,pages593–596,2005.ASurveyofTextSummarizationTechniques73[66]A.NenkovaandA.Bagga.Facilitatingemailthreadaccessbyextractivesummarygeneration.InProceedingsoftheRecentAd-vancesinNaturalLanguageProcessingConference,2003.[67]A.NenkovaandK.McKeown.AutomaticSummarization.InFoundationsandTrendsinInformationRetrieval5(2–3),pages103–233,2011.[68]A.Nenkova,L.Vanderwende,andK.McKeown.Acompositionalcontextsensitivemulti-documentsummarizer:exploringthefac-torsthatinﬂuencesummarization.InProceedingsoftheAnnualInternationalACMSIGIRConferenceonResearchandDevelop-mentinInformationRetrieval,pages573–580,2006.[69]P.NewmanandJ.Blitzer.Summarizingarchiveddiscussions:abeginning.InProceedingsoftheinternationalconferenceonIntel-ligentuserinterfaces,pages273–276,2003.[70]M.Osborne.Usingmaximumentropyforsentenceextraction.InProceedingsoftheACLWorkshoponAutomaticSummarization,pages1–8,2002.[71]J.Otterbacher,G.Erkan,andD.Radev.Biasedlexrank:Passageretrievalusingrandomwalkswithquestion-basedpriors.Informa-tionProcessingandManagement,45:42–54,January2009.[72]M.Ozsoy,I.Cicekli,andF.Alpaslan.Textsummarizationofturkishtextsusinglatentsemanticanalysis.InProceedingsofthe23rdInternationalConferenceonComputationalLinguistics(COLING2010),pages869–876,August2010.[73]D.Radev,H.Jing,M.Sty,andD.Tam.Centroid-basedsum-marizationofmultipledocuments.InformationProcessingandManagement,40:919–938,2004.[74]D.Radev,S.Teufel,H.Saggion,W.Lam,J.Blitzer,H.Qi,A.C¸elebi,D.Liu,andE.Drabek.Evaluationchallengesinlarge-scaledocumentsummarization.InProceedingsofthe41stAnnualMeetingonAssociationforComputationalLinguistics(ACL’03),pages375–382,2003.[75]O.Rambow,L.Shrestha,J.Chen,andC.Lauridsen.Summariz-ingemailthreads.InHumanLanguageTechnologyConferenceoftheNorthAmericanChapteroftheAssociationforComputationalLinguistics,2004.[76]G.Rath,A.Resnick,andR.Savage.Theformationofabstractsbytheselectionofsentences:Part1:sentenceselectionbymanandmachines.AmericanDocumentation,2(12):139–208,1961.74MININGTEXTDATA[77]K.Riedhammer,D.Gillick,B.Favre,andD.Hakkani-Tur.Packingthemeetingsummarizationknapsack.InProceedingsoftheAn-nualConferenceoftheInternationalSpeechCommunicationAs-sociation,pages2434–2437,2008.[78]G.Salton,A.Singhal,M.Mitra,andC.Buckley.Automatictextstructuringandsummarization.InformationProcessingandMan-agement,33(2):193–208,1997.[79]G.SaltonandC.Buckley.Term-weightingapproachesinauto-matictextretrieval.InformationProcessingandManagement,24:513–523,1988.[80]C.SauperandR.Barzilay.Automaticallygeneratingwikipediaarticles:Astructure-awareapproach.InProceedingsoftheJointConferenceofthe47thAnnualMeetingoftheACLandthe4thInternationalJointConferenceonNaturalLanguageProcessingoftheAFNLP,pages208–216,2009.[81]B.Schiﬀman,I.Mani,andK.Concepcion.Producingbiographicalsummaries:Combininglinguisticknowledgewithcorpusstatistics.InProceedingsoftheAnnualMeetingoftheAssociationforCom-putationalLinguistics,pages458–465,2001.[82]B.Schiﬀman,A.Nenkova,andK.McKeown.Experimentsinmul-tidocumentsummarization.InProceedingsoftheinternationalconferenceonHumanLanguageTechnologyResearch,pages52–58,2002.[83]D.Shen,J.-T.Sun,H.Li,Q.Yang,andZ.Chen.Documentsummarizationusingconditionalrandomﬁelds.InProceedingsofthe20thinternationaljointconferenceonArtiﬁcalintelligence,pages2862–2867,2007.[84]L.ShresthaandK.McKeown.Detectionofquestion-answerpairsinemailconversations.InProceedingsoftheInternationalCon-ferenceonComputationalLinguistic,2004.[85]A.Siddharthan,A.Nenkova,andK.McKeown.Syntacticsimpliﬁ-cationforimprovingcontentselectioninmulti-documentsumma-rization.InProceedingsoftheInternationalConferenceonCom-putationalLinguistic,pages896–902,2004.[86]H.SilberandK.McCoy.Eﬃcientlycomputedlexicalchainsasanintermediaterepresentationforautomatictextsummarization.ComputationalLinguistics,28(4):487–496,2002.[87]K.SparckJones.Astatisticalinterpretationoftermspeciﬁcityanditsapplicationinretrieval.JournalofDocumentation,28:11–21,1972.ASurveyofTextSummarizationTechniques75[88]J.Steinberger,M.Poesio,M.A.Kabadjov,andK.Jeek.Twousesofanaphoraresolutioninsummarization.InformationProcessingandManagement,43(6):1663–1680,2007.[89]W.Yih,J.Goodman,L.Vanderwende,andH.Suzuki.Multi-documentsummarizationbymaximizinginformativecontent-words.InProceedingsoftheinternationaljointconferenceonArtiﬁcialintelligence,pages1776–1782,2007.[90]S.TeufelandM.Moens.Summarizingscientiﬁcarticles:exper-imentswithrelevanceandrhetoricalstatus.ComputationalLin-guisics.,28(4):409–445,2002.[91]D.Radev,T.Allison,S.Blair-goldensohn,J.Blitzer,A.Celebi,S.Dimitrov,E.Drabek,A.Hakim,W.Lam,D.Liu,J.Otterbacher,H.Qi,H.Saggion,S.Teufel,A.Winkel,andZ.Zhang.Mead-aplatformformultidocumentmultilingualtextsummarization.InProceedingsoftheInternationalConferenceonLanguageRe-sourcesandEvaluation,2004.[92]A.Turpin,Y.Tsegay,D.Hawking,andH.Williams.Fastgenera-tionofresultsnippetsinwebsearch.InProceedingsoftheAnnualInternationalACMSIGIRConferenceonResearchandDevelop-mentinInformationRetrieval,pages127–134,2007.[93]J.Ulrich,G.Murray,andG.Carenini.Apubliclyavailableanno-tatedcorpusforsupervisedemailsummarization.InProceedingsoftheAAAIEMAILWorkshop,pages77–87,2008.[94]L.Vanderwende,H.Suzuki,C.Brockett,andA.Nenkova.Be-yondsumbasic:Task-focusedsummarizationwithsentencesimpli-ﬁcationandlexicalexpansion.InformationProcessingandMan-agment,43:1606–1618,2007.[95]R.VaradarajanandV.Hristidis.Asystemforquery-speciﬁcdoc-umentsummarization.InProceedingsoftheACMConferenceonInformationandKnowledgeManagement,2006.[96]X.WanandJ.Yang.Improvedaﬃnitygraphbasedmulti-documentsummarization.InHumanLanguageTechnologyCon-ferenceoftheNorthAmericanChapteroftheAssociationforCom-putationalLinguistics,CompanionVolume:ShortPapers,pages181–184,2006.[97]D.Wang,S.Zhu,T.Li,andY.Gong.Multi-documentsumma-rizationusingsentence-basedtopicmodels.InProceedingsoftheACL-IJCNLP2009ConferenceShortPapers,pages297–300,2009.76MININGTEXTDATA[98]R.Weischedel,J.Xu,andA.Licuanan.Ahybridapproachtoansweringbiographicalquestions.InMarkMaybury,editor,NewDirectionsInQuestionAnswering,pages59–70,2004.[99]K.Wong,M.Wu,andW.Li.Extractivesummarizationusingsupervisedandsemi-supervisedlearning.InProceedingsofthe22ndInternationalConferenceonComputationalLinguistics(Col-ing2008),pages985–992,2008.[100]S.Xie,H.Lin,andY.Liu.Semi-supervisedextractivespeechsummarizationviaco-trainingalgorithm.InINTERSPEECH,the11thAnnualConferenceoftheInternationalSpeechCommunica-tionAssociation,pages2522–2525,2010.[101]S.XieandY.Liu.Usingcorpusandknowledge-basedsimilar-itymeasureinmaximummarginalrelevanceformeetingsumma-rization.InProceedingsoftheIEEEInternationalConferenceonAcoustics,SpeechandSignalProcessing,pages4985–4988,2008.[102]S.Ye,T.-S.Chua,M.-Y.Kan,andL.Qiu.Documentconceptlatticefortextunderstandingandsummarization.InformationProcessingandManagement,43(6):1643–1662,2007.[103]W.Yih,J.Goodman,L.Vanderwende,andH.Suzuki.Multi-documentsummarizationbymaximizinginformativecontent-words.InProceedingsoftheinternationaljointconferenceonArtiﬁcialintelligence,pages1776–1782,2007.[104]L.ZhouandE.Hovy.Aweb-trainedextractionsummarizationsystem.InProceedingsoftheConferenceoftheNorthAmericanChapteroftheAssociationforComputationalLinguisticsonHu-manLanguageTechnology,pages205–211,2003.[105]L.Zhou,M.Ticrea,andE.Hovy.Multi-documentbiographysum-marization.InProceedingsoftheConferenceonEmpiricalMethodsinNaturalLanguageProcessing,pages434–441,2004.C.C. Aggarwal and C.X. Zhai (eds.), Mining Text Data, DOI 10.1007/978-1-4614-3223-4_4,

Chapter4ASURVEYOFTEXTCLUSTERINGALGORITHMSCharuC.AggarwalIBMT.J.WatsonResearchCenterYorktownHeights,NYcharu@us.ibm.comChengXiangZhaiUniversityofIllinoisatUrbana-ChampaignUrbana,ILczhai@cs.uiuc.eduAbstractClusteringisawidelystudieddataminingprobleminthetextdomains.Theproblemﬁndsnumerousapplicationsincustomersegmentation,classiﬁcation,collaborativeﬁltering,visualization,documentorganiza-tion,andindexing.Inthischapter,wewillprovideadetailedsurveyoftheproblemoftextclustering.Wewillstudythekeychallengesoftheclusteringproblem,asitappliestothetextdomain.Wewilldiscussthekeymethodsusedfortextclustering,andtheirrelativeadvantages.Wewillalsodiscussanumberofrecentadvancesintheareainthecontextofsocialnetworkandlinkeddata.Keywords:TextClustering1.IntroductionTheproblemofclusteringhasbeenstudiedwidelyinthedatabaseandstatisticsliteratureinthecontextofawidevarietyofdataminingtasks[50,54].Theclusteringproblemisdeﬁnedtobethatofﬁndinggroupsofsimilarobjectsinthedata.Thesimilaritybetweentheob-© Springer Science+Business Media, LLC 2012 77 
 
78MININGTEXTDATAjectsismeasuredwiththeuseofasimilarityfunction.Theproblemofclusteringcanbeveryusefulinthetextdomain,wheretheobjectstobeclusterscanbeofdiﬀerentgranularitiessuchasdocuments,para-graphs,sentencesorterms.Clusteringisespeciallyusefulfororganizingdocumentstoimproveretrievalandsupportbrowsing[11,26].Thestudyoftheclusteringproblemprecedesitsapplicabilitytothetextdomain.Traditionalmethodsforclusteringhavegenerallyfocussedonthecaseofquantitativedata[44,71,50,54,108],inwhichtheat-tributesofthedataarenumeric.Theproblemhasalsobeenstudiedforthecaseofcategoricaldata[10,41,43],inwhichtheattributesmaytakeonnominalvalues.Abroadoverviewofclustering(asitrelatestogenericnumericalandcategoricaldata)maybefoundin[50,54].Anumberofimplementationsofcommontextclusteringalgorithms,asap-pliedtotextdata,maybefoundinseveraltoolkitssuchasLemur[114]andBOWtoolkitin[64].Theproblemofclusteringﬁndsapplicabilityforanumberoftasks:DocumentOrganizationandBrowsing:Thehierarchicalor-ganizationofdocumentsintocoherentcategoriescanbeveryusefulforsystematicbrowsingofthedocumentcollection.Aclassicalex-ampleofthisistheScatter/Gathermethod[25],whichprovidesasystematicbrowsingtechniquewiththeuseofclusteredorganiza-tionofthedocumentcollection.CorpusSummarization:Clusteringtechniquesprovideacoher-entsummaryofthecollectionintheformofcluster-digests[83]orword-clusters[17,18],whichcanbeusedinordertoprovidesum-maryinsightsintotheoverallcontentoftheunderlyingcorpus.Variantsofsuchmethods,especiallysentenceclustering,canalsobeusedfordocumentsummarization,atopic,discussedindetailinChapter3.Theproblemofclusteringisalsocloselyrelatedtothatofdimensionalityreductionandtopicmodeling.Suchdimen-sionalityreductionmethodsarealldiﬀerentwaysofsummarizingacorpusofdocuments,andarecoveredinChapter5.DocumentClassiﬁcation:Whileclusteringisinherentlyanun-supervisedlearningmethod,itcanbeleveragedinordertoimprovethequalityoftheresultsinitssupervisedvariant.Inparticular,word-clusters[17,18]andco-trainingmethods[72]canbeusedinordertoimprovetheclassiﬁcationaccuracyofsupervisedapplica-tionswiththeuseofclusteringtechniques.Wenotethatmanyclassesofalgorithmssuchasthek-meansalgo-rithm,orhierarchicalalgorithmsaregeneral-purposemethods,whichASurveyofTextClusteringAlgorithms79canbeextendedtoanykindofdata,includingtextdata.Atextdocu-mentcanberepresentedeitherintheformofbinarydata,whenweusethepresenceorabsenceofawordinthedocumentinordertocreateabinaryvector.Insuchcases,itispossibletodirectlyuseavarietyofcategoricaldataclusteringalgorithms[10,41,43]onthebinaryrepresen-tation.Amoreenhancedrepresentationwouldincludereﬁnedweightingmethodsbasedonthefrequenciesoftheindividualwordsinthedocu-mentaswellasfrequenciesofwordsinanentirecollection(e.g.,TF-IDFweighting[82]).Quantitativedataclusteringalgorithms[44,71,108]canbeusedinconjunctionwiththesefrequenciesinordertodeterminethemostrelevantgroupsofobjectsinthedata.However,suchnaivetechniquesdonottypicallyworkwellforclus-teringtextdata.Thisisbecausetextdatahasanumberofuniquepropertieswhichnecessitatethedesignofspecializedalgorithmsforthetask.Thedistinguishingcharacteristicsofthetextrepresentationareasfollows:Thedimensionalityofthetextrepresentationisverylarge,buttheunderlyingdataissparse.Inotherwords,thelexiconfromwhichthedocumentsaredrawnmaybeoftheorderof105,butagivendocumentmaycontainonlyafewhundredwords.Thisproblemisevenmoreseriouswhenthedocumentstobeclusteredareveryshort(e.g.,whenclusteringsentencesortweets).Whilethelexiconofagivencorpusofdocumentsmaybelarge,thewordsaretypicallycorrelatedwithoneanother.Thismeansthatthenumberofconcepts(orprincipalcomponents)inthedataismuchsmallerthanthefeaturespace.Thisnecessitatesthecarefuldesignofalgorithmswhichcanaccountforwordcorrelationsintheclusteringprocess.Thenumberofwords(ornon-zeroentries)inthediﬀerentdocu-mentsmayvarywidely.Therefore,itisimportanttonormalizethedocumentrepresentationsappropriatelyduringtheclusteringtask.Thesparseandhighdimensionalrepresentationofthediﬀerentdoc-umentsnecessitatethedesignoftext-speciﬁcalgorithmsfordocumentrepresentationandprocessing,atopicheavilystudiedintheinformationretrievalliteraturewheremanytechniqueshavebeenproposedtoopti-mizedocumentrepresentationforimprovingtheaccuracyofmatchingadocumentwithaquery[82,13].Mostofthesetechniquescanalsobeusedtoimprovedocumentrepresentationforclustering.80MININGTEXTDATAInordertoenableaneﬀectiveclusteringprocess,thewordfrequenciesneedtobenormalizedintermsoftheirrelativefrequencyofpresenceinthedocumentandovertheentirecollection.Ingeneral,acommonrepresentationusedfortextprocessingisthevector-spacebasedTF-IDFrepresentation[81].IntheTF-IDFrepresentation,thetermfrequencyforeachwordisnormalizedbytheinversedocumentfrequency,orIDF.Theinversedocumentfrequencynormalizationreducestheweightoftermswhichoccurmorefrequentlyinthecollection.Thisreducestheimportanceofcommontermsinthecollection,ensuringthatthematch-ingofdocumentsbemoreinﬂuencedbythatofmorediscriminativewordswhichhaverelativelylowfrequenciesinthecollection.Inaddi-tion,asub-lineartransformationfunctionisoftenappliedtotheterm-frequenciesinordertoavoidtheundesirabledominatingeﬀectofanysingletermthatmightbeveryfrequentinadocument.Theworkondocument-normalizationisitselfavastareaofresearch,andavarietyofothertechniqueswhichdiscussdiﬀerentnormalizationmethodsmaybefoundin[86,82].Textclusteringalgorithmsaredividedintoawidevarietyofdiﬀer-enttypessuchasagglomerativeclusteringalgorithms,partitioningalgo-rithms,andstandardparametricmodelingbasedmethodssuchastheEM-algorithm.Furthermore,textrepresentationsmayalsobetreatedasstrings(ratherthanbagsofwords).Thesediﬀerentrepresentationsnecessitatethedesignofdiﬀerentclassesofclusteringalgorithms.Diﬀer-entclusteringalgorithmshavediﬀerenttradeoﬀsintermsofeﬀectivenessandeﬃciency.Anexperimentalcomparisonofdiﬀerentclusteringalgo-rithmsmaybefoundin[90,111].Inthischapterwewilldiscussawidevarietyofalgorithmswhicharecommonlyusedfortextclustering.Wewillalsodiscusstextclusteringalgorithmsforrelatedscenariossuchasdynamicdata,network-basedtextdataandsemi-supervisedscenarios.Thischapterisorganizedasfollows.Insection2,wewillpresentfea-tureselectionandtransformationmethodsfortextclustering.Section3describesanumberofcommonalgorithmswhichareusedfordistance-basedclusteringoftextdocuments.Section4containsthedescriptionofmethodsforclusteringwiththeuseofwordpatternsandphrases.Methodsforclusteringtextstreamsaredescribedinsection5.Section6describesmethodsforprobabilisticclusteringoftextdata.Section7containsadescriptionofmethodsforclusteringtextwhichnaturallyoccursinthecontextofsocialorweb-basednetworks.Section8dis-cussesmethodsforsemi-supervisedclustering.Section9presentstheconclusionsandsummary.ASurveyofTextClusteringAlgorithms812.FeatureSelectionandTransformationMethodsforTextClusteringThequalityofanydataminingmethodsuchasclassiﬁcationandclus-teringishighlydependentonthenoisinessofthefeaturesthatareusedfortheclusteringprocess.Forexample,commonlyusedwordssuchas“the”,maynotbeveryusefulinimprovingtheclusteringquality.Therefore,itiscriticaltoselectthefeatureseﬀectively,sothatthenoisywordsinthecorpusareremovedbeforetheclustering.Inadditiontofeatureselection,anumberoffeaturetransformationmethodssuchasLatentSemanticIndexing(LSI),ProbabilisticLatentSemanticAnalysis(PLSA),andNon-negativeMatrixFactorization(NMF)areavailabletoimprovethequalityofthedocumentrepresentationandmakeitmoreamenabletoclustering.Inthesetechniques(oftencalleddimensionre-duction),thecorrelationsamongthewordsinthelexiconareleveragedinordertocreatefeatures,whichcorrespondtotheconceptsorprinci-palcomponentsinthedata.Inthissection,wewilldiscussbothclassesofmethods.Amorein-depthdiscussionofdimensionreductioncanbefoundinChapter5.2.1FeatureSelectionMethodsFeatureselectionismorecommonandeasytoapplyintheproblemoftextcategorization[99]inwhichsupervisionisavailableforthefeatureselectionprocess.However,anumberofsimpleunsupervisedmethodscanalsobeusedforfeatureselectionintextclustering.Someexamplesofsuchmethodsarediscussedbelow.2.1.1DocumentFrequency-basedSelection.Thesimplestpossiblemethodforfeatureselectionindocumentclusteringisthatoftheuseofdocumentfrequencytoﬁlteroutirrelevantfeatures.Whiletheuseofinversedocumentfrequenciesreducestheimportanceofsuchwords,thismaynotalonebesuﬃcienttoreducethenoiseeﬀectsofveryfrequentwords.Inotherwords,wordswhicharetoofrequentinthecorpuscanberemovedbecausetheyaretypicallycommonwordssuchas“a”,“an”,“the”,or“of”whicharenotdiscriminativefromaclusteringperspective.Suchwordsarealsoreferredtoasstopwords.Avarietyofmethodsarecommonlyavailableintheliterature[76]forstop-wordremoval.Typicallycommonlyavailablestopwordlistsofabout300to400wordsareusedfortheretrievalprocess.Inaddition,wordswhichoccurextremelyinfrequentlycanalsoberemovedfromthecollection.Thisisbecausesuchwordsdonotaddanythingtothesimilaritycomputationswhichareusedinmostclusteringmethods.In82MININGTEXTDATAsomecases,suchwordsmaybemisspellingsortypographicalerrorsindocuments.Noisytextcollectionswhicharederivedfromtheweb,blogsorsocialnetworksaremorelikelytocontainsuchterms.Wenotethatsomelinesofresearchdeﬁnedocumentfrequencybasedselectionpurelyonthebasisofveryinfrequentterms,becausethesetermscontributetheleasttothesimilaritycalculations.However,itshouldbeemphasizedthatveryfrequentwordsshouldalsoberemoved,especiallyiftheyarenotdiscriminativebetweenclusters.NotethattheTF-IDFweightingmethodcanalsonaturallyﬁlteroutverycommonwordsina“soft”way.Clearly,thestandardsetofstopwordsprovideavalidsetofwordstoprune.Nevertheless,wewouldlikeawayofquantifyingtheimportanceofatermdirectlytotheclusteringprocess,whichisessentialformoreaggressivepruning.Wewilldiscussanumberofsuchmethodsbelow.2.1.2TermStrength.Amuchmoreaggressivetechniqueforstop-wordremovalisproposedin[94].Thecoreideaofthisapproachistoextendtechniqueswhichareusedinsupervisedlearningtotheunsupervisedcase.Thetermstrengthisessentiallyusedtomeasurehowinformativeawordisforidentifyingtworelateddocuments.Forexample,fortworelateddocumentsxandy,thetermstrengths(t)oftermtisdeﬁnedintermsofthefollowingprobability:s(t)=P(t∈y|t∈x)(4.1)Clearly,themainissueishowonemightdeﬁnethedocumentxandyasrelated.Onepossibilityistousemanual(oruser)feedbacktodeﬁnewhenapairofdocumentsarerelated.Thisisessentiallyequivalenttoutilizingsupervisioninthefeatureselectionprocess,andmaybepracticalinsituationsinwhichpredeﬁnedcategoriesofdocumentsareavailable.Ontheotherhand,itisnotpracticaltomanuallycreaterelatedpairsinlargecollectionsinacomprehensiveway.Itisthereforedesirabletouseanautomatedandpurelyunsupervisedwaytodeﬁnetheconceptofwhenapairofdocumentsisrelated.Ithasbeenshownin[94]thatitispossibletouseautomatedsimilarityfunctionssuchasthecosinefunction[81]todeﬁnetherelatednessofdocumentpairs.Apairofdocumentsaredeﬁnedtoberelatediftheircosinesimilarityisaboveauser-deﬁnedthreshold.Insuchcases,thetermstrengths(t)canbedeﬁnedbyrandomlysamplinganumberofpairsofsuchrelateddocumentsasfollows:s(t)=NumberofpairsinwhichtoccursinbothNumberofpairsinwhichtoccursintheﬁrstofthepair(4.2)Here,theﬁrstdocumentofthepairmaysimplybepickedrandomly.Inordertoprunefeatures,thetermstrengthmaybecomparedtotheASurveyofTextClusteringAlgorithms83expectedstrengthofatermwhichisrandomlydistributedinthetrainingdocumentswiththesamefrequency.Ifthetermstrengthoftisnotatleasttwostandarddeviationsgreaterthanthatoftherandomword,thenitisremovedfromthecollection.Oneadvantageofthisapproachisthatitrequiresnoinitialsupervi-sionortrainingdataforthefeatureselection,whichisakeyrequirementintheunsupervisedscenario.Ofcourse,theapproachcanalsobeusedforfeatureselectionineithersupervisedclustering[4]orcategoriza-tion[100],whensuchtrainingdataisindeedavailable.Oneobservationaboutthisapproachtofeatureselectionisthatitisparticularlysuitedtosimilarity-basedclusteringbecausethediscriminativenatureoftheun-derlyingfeaturesisdeﬁnedonthebasisofsimilaritiesinthedocumentsthemselves.2.1.3Entropy-basedRanking.Theentropy-basedrankingapproachwasproposedin[27].Inthiscase,thequalityofthetermismeasuredbytheentropyreductionwhenitisremoved.HeretheentropyE(t)ofthetermtinacollectionofndocumentsisdeﬁnedasfollows:E(t)=−n(cid:9)i=1n(cid:9)j=1(Sij·log(Sij)+(1−Sij)·log(1−Sij))(4.3)HereSij∈(0,1)isthesimilaritybetweentheithandjthdocumentinthecollection,afterthetermtisremoved,andisdeﬁnedasfollows:Sij=2−dist(i,j)dist(4.4)Heredist(i,j)isthedistancebetweenthetermsiandjafterthetermtisremoved,anddististheaveragedistancebetweenthedocumentsafterthetermtisremoved.WenotethatthecomputationofE(t)foreachtermtrequiresO(n2)operations.Thisisimpracticalforaverylargecorpuscontainingmanyterms.Ithasbeenshownin[27]howthismethodmaybemademuchmoreeﬃcientwiththeuseofsamplingmethods.2.1.4TermContribution.Theconceptoftermcontribution[62]isbasedonthefactthattheresultsoftextclusteringarehighlydependentondocumentsimilarity.Therefore,thecontributionofatermcanbeviewedasitscontributiontodocumentsimilarity.Forexample,inthecaseofdot-productbasedsimilarity,thesimilaritybetweentwodocumentsisdeﬁnedasthedotproductoftheirnormalizedfrequencies.Therefore,thecontributionofatermofthesimilarityoftwodocumentsistheproductoftheirnormalizedfrequenciesinthetwodocuments.This84MININGTEXTDATAneedstobesummedoverallpairsofdocumentsinordertodeterminethetermcontribution.Asinthepreviouscase,thismethodrequiresO(n2)timeforeachterm,andthereforesamplingmethodsmayberequiredtospeedupthecontribution.Amajorcriticismofthismethodisthatittendstofavorhighlyfrequentwordswithoutregardtothespeciﬁcdiscriminativepowerwithinaclusteringprocess.Inmostofthesemethods,theoptimizationoftermselectionisbasedonsomepre-assumedsimilarityfunction(e.g.,cosine).Whilethisstrat-egymakesthesemethodsunsupervised,thereisaconcernthatthetermselectionmightbebiasedduetothepotentialbiasoftheassumedsim-ilarityfunction.Thatis,ifadiﬀerentsimilarityfunctionisassumed,wemayenduphavingdiﬀerentresultsfortermselection.Thusthechoiceofanappropriatesimilarityfunctionmaybeimportantforthesemethods.2.2LSI-basedMethodsInfeatureselection,weattempttoexplicitlyselectoutfeaturesfromtheoriginaldataset.Featuretransformationisadiﬀerentmethodinwhichthenewfeaturesaredeﬁnedasafunctionalrepresentationofthefeaturesintheoriginaldataset.Themostcommonclassofmethodsisthatofdimensionalityreduction[53]inwhichthedocumentsaretrans-formedtoanewfeaturespaceofsmallerdimensionalityinwhichthefeaturesaretypicallyalinearcombinationofthefeaturesintheoriginaldata.MethodssuchasLatentSemanticIndexing(LSI)[28]arebasedonthiscommonprinciple.Theoveralleﬀectistoremovealotofdi-mensionsinthedatawhicharenoisyforsimilaritybasedapplicationssuchasclustering.Theremovalofsuchdimensionsalsohelpsmagnifythesemanticeﬀectsintheunderlyingdata.SinceLSIiscloselyrelatedtoproblemofPrincipalComponentAnal-ysis(PCA)orSingularValueDecomposition(SVD),wewillﬁrstdiscussthismethod,anditsrelationshiptoLSI.Forad-dimensionaldataset,PCAconstructsthesymmetricd×dcovariancematrixCofthedata,inwhichthe(i,j)thentryisthecovariancebetweendimensionsiandj.Thismatrixispositivesemi-deﬁnite,andcanbediagonalizedasfollows:C=P·D·PT(4.5)HerePisamatrixwhosecolumnscontaintheorthonormaleigenvectorsofCandDisadiagonalmatrixcontainingthecorrespondingeigenval-ues.Wenotethattheeigenvectorsrepresentaneworthonormalbasissystemalongwhichthedatacanberepresented.Inthiscontext,theeigenvaluescorrespondtothevariancewhenthedataisprojectedalongthisbasissystem.ThisbasissystemisalsooneinwhichthesecondASurveyofTextClusteringAlgorithms85ordercovariancesofthedataareremoved,andmostofvarianceinthedataiscapturedbypreservingtheeigenvectorswiththelargesteigen-values.Therefore,inordertoreducethedimensionalityofthedata,acommonapproachistorepresentthedatainthisnewbasissystem,whichisfurthertruncatedbyignoringthoseeigenvectorsforwhichthecorrespondingeigenvaluesaresmall.Thisisbecausethevariancesalongthosedimensionsaresmall,andtherelativebehaviorofthedatapointsisnotsigniﬁcantlyaﬀectedbyremovingthemfromconsideration.Infact,itcanbeshownthattheEuclidiandistancesbetweendatapointsarenotsigniﬁcantlyaﬀectedbythistransformationandcorrespondingtruncation.ThemethodofPCAiscommonlyusedforsimilaritysearchindatabaseretrievalapplications.LSIisquitesimilartoPCA,exceptthatweuseanapproximationofthecovariancematrixCwhichisquiteappropriateforthesparseandhigh-dimensionalnatureoftextdata.Speciﬁcally,letAbethen×dterm-documentmatrixinwhichthe(i,j)thentryisthenormalizedfre-quencyfortermjindocumenti.Then,AT·Aisad×dmatrixwhichisclose(scaled)approximationofthecovariancematrix,inwhichthemeanshavenotbeensubtractedout.Inotherwords,thevalueofAT·Awouldbethesameasascaledversion(byfactorn)ofthecovariancematrix,ifthedataismean-centered.Whiletext-representationsarenotmean-centered,thesparsityoftextensuresthattheuseofAT·Aisquiteagoodapproximationofthe(scaled)covariances.Asinthecaseofnumericaldata,weusetheeigenvectorsofAT·Awiththelargestvari-anceinordertorepresentthetext.Intypicalcollections,onlyabout300to400eigenvectorsarerequiredfortherepresentation.Oneexcel-lentcharacteristicofLSI[28]isthatthetruncationofthedimensionsremovesthenoiseeﬀectsofsynonymyandpolysemy,andthesimilaritycomputationsaremorecloselyaﬀectedbythesemanticconceptsinthedata.Thisisparticularlyusefulforasemanticapplicationsuchastextclustering.However,ifﬁnergranularityclusteringisneeded,suchlow-dimensionalspacerepresentationoftextmaynotbesuﬃcientlydiscrim-inative;ininformationretrieval,thisproblemisoftensolvedbymixingthelow-dimensionalrepresentationwiththeoriginalhigh-dimensionalword-basedrepresentation(see,e.g.,[105]).AsimilartechniquetoLSI,butbasedonprobabilisticmodelingisProbabilisticLatentSemanticAnalysis(PLSA)[49].ThesimilarityandequivalenceofPLSAandLSIarediscussedin[49].2.2.1ConceptDecompositionusingClustering.Oneinterestingobservationisthatwhilefeaturetransformationisoftenusedasapre-processingtechniqueforclustering,theclusteringitselfcanbe86MININGTEXTDATAusedforanoveldimensionalityreductiontechniqueknownasconceptdecomposition[2,29].Thisofcourseleadstotheissueofcircularityintheuseofthistechniqueforclustering,especiallyifclusteringisrequiredinordertoperformthedimensionalityreduction.Nevertheless,itisstillpossibletousethistechniqueeﬀectivelyforpre-processingwiththeuseoftwoseparatephasesofclustering.Thetechniqueofconceptdecompositionusesanystandardclusteringtechnique[2,29]ontheoriginalrepresentationofthedocuments.Thefrequenttermsinthecentroidsoftheseclustersareusedasbasisvectorswhicharealmostorthogonaltooneanother.Thedocumentscanthenberepresentedinamuchmoreconcisewayintermsofthesebasisvectors.Wenotethatthiscondensedconceptualrepresentationallowsforen-hancedclusteringaswellasclassiﬁcation.Therefore,asecondphaseofclusteringcanbeappliedonthisreducedrepresentationinordertoclus-terthedocumentsmuchmoreeﬀectively.Suchamethodhasalsobeentestedin[87]byusingword-clustersinordertorepresentdocuments.Wewilldescribethismethodinmoredetaillaterinthischapter.2.3Non-negativeMatrixFactorizationThenon-negativematrixfactorization(NMF)techniqueisalatent-spacemethod,andisparticularlysuitabletoclustering[97].AsinthecaseofLSI,theNMFschemerepresentsthedocumentsinanewaxis-systemwhichisbasedonananalysisoftheterm-documentmatrix.However,theNMFmethodhasanumberofcriticaldiﬀerencesfromtheLSIschemefromaconceptualpointofview.Inparticular,theNMFschemeisafeaturetransformationmethodwhichisparticularlysuitedtoclustering.ThemainconceptualcharacteristicsoftheNMFscheme,whichareverydiﬀerentfromLSIareasfollows:InLSI,thenewbasissystemconsistsofasetoforthonormalvec-tors.ThisisnotthecaseforNMF.InNMF,thevectorsinthebasissystemdirectlycorrespondtoclustertopics.Therefore,theclustermembershipforadocumentmaybedeterminedbyexaminingthelargestcomponentofthedocumentalonganyofthevectors.Thecoordinateofanydocu-mentalongavectorisalwaysnon-negative.Theexpressionofeachdocumentasanadditivecombinationoftheunderlyingsemanticsmakesalotofsensefromanintuitiveperspective.Therefore,theNMFtransformationisparticularlysuitedtoclustering,anditalsoprovidesanintuitiveunderstandingofthebasissystemintermsoftheclusters.ASurveyofTextClusteringAlgorithms87LetAbethen×dtermdocumentmatrix.Letusassumethatwewishtocreatekclustersfromtheunderlyingdocumentcorpus.Then,thenon-negativematrixfactorizationmethodattemptstodeterminethematricesUandVwhichminimizethefollowingobjectivefunction:J=(1/2)·||A−U·VT||(4.6)Here||·||representsthesumofthesquaresofalltheelementsinthematrix,Uisann×knon-negativematrix,andVisam×knon-negativematrix.WenotethatthecolumnsofVprovidethekbasisvectorswhichcorrespondtothekdiﬀerentclusters.Whatisthesigniﬁcanceoftheaboveoptimizationproblem?NotethatbyminimizingJ,weareattemptingtofactorizeAapproximatelyas:A≈U·VT(4.7)ForeachrowaofA(documentvector),wecanrewritetheaboveequa-tionas:a≈u·VT(4.8)HereuisthecorrespondingrowofU.Therefore,thedocumentvectoracanberewrittenasanapproximatelinear(non-negative)combinationofthebasisvectorwhichcorrespondstothekcolumnsofVT.Ifthevalueofkisrelativelysmallcomparedtothecorpus,thiscanonlybedoneifthecolumnvectorsofVTdiscoverthelatentstructureinthedata.Furthermore,thenon-negativityofthematricesUandVensuresthatthedocumentsareexpressedasanon-negativecombinationofthekeyconcepts(orclustered)regionsintheterm-basedfeaturespace.Next,wewilldiscusshowtheoptimizationproblemforJaboveisactuallysolved.ThesquarednormofanymatrixQcanbeexpressedasthetraceofthematrixQ·QT.Therefore,wecanexpresstheobjectivefunctionaboveasfollows:J=(1/2)·tr((A−U·VT)·(A−U·VT)T)=(1/2)·tr(A·AT)−tr(A·U·VT)+(1/2)·tr(U·VT·V·UT)Thus,wehaveanoptimizationproblemwithrespecttothematricesU=[uij]andV=[vij],theentriesuijandvijofwhicharethevariableswithrespecttowhichweneedtooptimizethisproblem.Inaddition,sincethematricesarenon-negative,wehavetheconstraintsthatuij≥0andvij≥0.Thisisatypicalconstrainednon-linearoptimizationproblem,andcanbesolvedusingtheLagrangemethod.Letα=[αij]andβ=[βij]bematriceswiththesamedimensionsasUandVrespectively.TheelementsofthematricesαandβarethecorrespondingLagrange88MININGTEXTDATAmultipliersforthenon-negativityconditionsonthediﬀerentelementsofUandVrespectively.Wenotethattr(α·UT)issimplyequalto(cid:4)i,jαij·uijandtr(β·VT)issimplyequalto(cid:4)i,jβij·vij.Thesecorrespondtothelagrangeexpressionsforthenon-negativityconstraints.Then,wecanexpresstheLagrangianoptimizationproblemasfollows:L=J+tr(α·UT)+tr(β·VT)(4.9)Then,wecanexpressthepartialderivativeofLwithrespecttoUandVasfollows,andsetthemto0:δLδU=−A·V+U·VT·V+α=0δLδV=−AT·U+V·UT·U+β=0Wecanthenmultiplythe(i,j)thentryoftheabove(twomatricesof)conditionswithuijandvijrespectively.UsingtheKuhn-Tuckercondi-tionsαij·uij=0andβij·vij=0,wegetthefollowing:(A·V)ij·uij−(U·VT·V)ij·uij=0(AT·U)ij·vij−(V·UT·U)ij·vij=0Wenotethattheseconditionsareindependentofαandβ.Thisleadstothefollowingiterativeupdatingrulesforuijandvij:uij=(A·V)ij·uij(U·VT·V)ijvij=(AT·U)ij·vij(V·UT·U)ijIthasbeenshownin[58]thattheobjectivefunctioncontinuouslyim-provesundertheseupdaterules,andconvergestoanoptimalsolution.Oneinterestingobservationaboutthematrixfactorizationtechniqueisthatitcanalsobeusedtodetermineword-clustersinsteadofdoc-umentclusters.JustasthecolumnsofVprovideabasiswhichcanbeusedtodiscoverdocumentclusters,wecanusethecolumnsofUtodiscoverabasiswhichcorrespondtowordclusters.Aswewillseelater,documentclustersandwordclustersarecloselyrelated,anditisoftenusefultodiscoverbothsimultaneously,asinframeworkssuchasco-clustering[30,31,75].Matrix-factorizationprovidesanaturalwayofachievingthisgoal.Ithasalsobeenshownboththeoreticallyandexper-imentally[33,93]thatthematrix-factorizationtechniqueisequivalenttoanothergraph-structurebaseddocumentclusteringtechniqueknownASurveyofTextClusteringAlgorithms89asspectralclustering.Ananalogoustechniquecalledconceptfactoriza-tionwasproposedin[98],whichcanalsobeappliedtodatapointswithnegativevaluesinthem.3.Distance-basedClusteringAlgorithmsDistance-basedclusteringalgorithmsaredesignedbyusingasimi-larityfunctiontomeasuretheclosenessbetweenthetextobjects.Themostwellknownsimilarityfunctionwhichisusedcommonlyinthetextdomainisthecosinesimilarityfunction.LetU=(f(u1)...f(uk))andV=(f(v1)...f(vk))bethedampedandnormalizedfrequencytermvectorintwodiﬀerentdocumentsUandV.Thevaluesu1...ukandv1...vkrepresentthe(normalized)termfrequencies,andthefunctionf(·)representsthedampingfunction.Typicaldampingfunctionsforf(·)couldrepresenteitherthesquare-rootorthelogarithm[25].Then,thecosinesimilaritybetweenthetwodocumentsisdeﬁnedasfollows:cosine(U,V)=(cid:4)ki=1f(ui)·f(vi)(cid:17)(cid:4)ki=1f(ui)2·(cid:17)(cid:4)ki=1f(vi)2(4.10)Computationoftextsimilarityisafundamentalproblemininforma-tionretrieval.Althoughmostoftheworkininformationretrievalhasfocusedonhowtoassessthesimilarityofakeywordqueryandatextdoc-ument,ratherthanthesimilaritybetweentwodocuments,manyweight-ingheuristicsandsimilarityfunctionscanalsobeappliedtooptimizethesimilarityfunctionforclustering.Eﬀectiveinformationretrievalmod-elsgenerallycapturethreeheuristics,i.e.,TFweighting,IDFweighting,anddocumentlengthnormalization[36].Oneeﬀectivewaytoassignweightstotermswhenrepresentingadocumentasaweightedtermvec-toristheBM25termweightingmethod[78],wherethenormalizedTFnotonlyaddresseslengthnormalization,butalsohasanupperboundwhichimprovestherobustnessasitavoidsoverlyrewardingthematch-ingofanyparticularterm.Adocumentcanalsoberepresentedwithaprobabilitydistributionoverwords(i.e.,unigramlanguagemodels),andthesimilaritycanthenbemeasuredbasedaninformationtheoreticmeasuresuchascrossentropyorKullback-Leiblerdivergencce[105].Forclustering,symmetricvariantsofsuchasimilarityfunctionmaybemoreappropriate.Onechallengeinclusteringshortsegmentsoftext(e.g.,tweetsorsentences)isthatexactkeywordmatchingmaynotworkwell.Onegen-eralstrategyforsolvingthisproblemistoexpandtextrepresentationbyexploitingrelatedtextdocuments,whichisrelatedtosmoothingofadocumentlanguagemodelininformationretrieval[105].Aspeciﬁc90MININGTEXTDATAtechnique,whichleveragesasearchenginetoexpandtextrepresenta-tion,wasproposedin[79].Acomparisonofseveralsimplemeasuresforcomputingsimilarityofshorttextsegmentscanbefoundin[66].Thesesimilarityfunctionscanbeusedinconjunctionwithawidevari-etyoftraditionalclusteringalgorithms[50,54].Inthenextsubsections,wewilldiscusssomeofthesetechniques.3.1AgglomerativeandHierarchicalClusteringAlgorithmsHierarchicalclusteringalgorithmshavebeenstudiedextensivelyintheclusteringliterature[50,54]forrecordsofdiﬀerentkindsincludingmultidimensionalnumericaldata,categoricaldataandtextdata.Anoverviewofthetraditionalagglomerativeandhierarchicalclusteringal-gorithmsinthecontextoftextdataisprovidedin[69,70,92,96].Anexperimentalcomparisonofdiﬀerenthierarchicalclusteringalgorithmsmaybefoundin[110].Themethodofagglomerativehierarchicalclus-teringisparticularlyusefultosupportavarietyofsearchingmethodsbecauseitnaturallycreatesatree-likehierarchywhichcanbeleveragedforthesearchprocess.Inparticular,theeﬀectivenessofthismethodinimprovingthesearcheﬃciencyoverasequentialscanhasbeenshownin[51,77].Thegeneralconceptofagglomerativeclusteringistosuccessivelymergedocumentsintoclustersbasedontheirsimilaritywithonean-other.Almostallthehierarchicalclusteringalgorithmssuccessivelymergegroupsbasedonthebestpairwisesimilaritybetweenthesegroupsofdocuments.Themaindiﬀerencesbetweentheseclassesofmethodsareintermsofhowthispairwisesimilarityiscomputedbetweenthediﬀerentgroupsofdocuments.Forexample,thesimilaritybetweenapairofgroupsmaybecomputedasthebest-casesimilarity,average-casesimilarity,orworst-casesimilaritybetweendocumentswhicharedrawnfromthesepairsofgroups.Conceptually,theprocessofagglom-eratingdocumentsintosuccessivelyhigherlevelsofclusterscreatesaclusterhierarchy(ordendogram)forwhichtheleafnodescorrespondtoindividualdocuments,andtheinternalnodescorrespondtothemergedgroupsofclusters.Whentwogroupsaremerged,anewnodeiscreatedinthistreecorrespondingtothislargermergedgroup.Thetwochildrenofthisnodecorrespondtothetwogroupsofdocumentswhichhavebeenmergedtoit.Thediﬀerentmethodsformerginggroupsofdocumentsforthedif-ferentagglomerativemethodsareasfollows:ASurveyofTextClusteringAlgorithms91SingleLinkageClustering:Insinglelinkageclustering,thesim-ilaritybetweentwogroupsofdocumentsisthegreatestsimilaritybetweenanypairofdocumentsfromthesetwogroups.Insinglelinkclusteringwemergethetwogroupswhicharesuchthattheirclosestpairofdocumentshavethehighestsimilaritycomparedtoanyotherpairofgroups.Themainadvantageofsinglelinkageclusteringisthatitisextremelyeﬃcienttoimplementinpractice.Thisisbecausewecanﬁrstcomputeallsimilaritypairsandsorttheminorderofreducingsimilarity.Thesepairsareprocessedinthispre-deﬁnedorderandthemergeisperformedsuccessivelyifthepairsbelongtodiﬀerentgroups.Itcanbeeasilyshownthatthisapproachisequivalenttothesingle-linkagemethod.Thisisessentiallyequivalenttoaspanningtreealgorithmonthecompletegraphofpairwise-distancesbyprocessingtheedgesofthegraphinacertainorder.Ithasbeenshownin[92]howPrim’sminimumspanningtreealgorithmcanbeadaptedtosingle-linkagecluster-ing.Anothermethodin[24]designsthesingle-linkagemethodinconjunctionwiththeinvertedindexmethodinordertoavoidcomputingzerosimilarities.Themaindrawbackofthisapproachisthatitcanleadtothephenomenonofchaininginwhichachainofsimilardocumentsleadtodisparatedocumentsbeinggroupedintothesameclusters.Inotherwords,ifAissimilartoBandBissimilartoC,itdoesnotalwaysimplythatAissimilartoC,becauseoflackoftransitivityinsimilaritycomputations.Singlelinkageclusteringencouragesthegroupingofdocumentsthroughsuchtransitivitychains.Thiscanoftenleadtopoorclusters,especiallyatthehigherlevelsoftheagglomeration.Eﬀectivemethodsforimplementingsingle-linkageclusteringforthecaseofdocumentdatamaybefoundin[24,92].Group-AverageLinkageClustering:Ingroup-averagelinkageclustering,thesimilaritybetweentwoclustersistheaveragesimi-laritybetweenthepairsofdocumentsinthetwoclusters.Clearly,theaveragelinkageclusteringprocessissomewhatslowerthansingle-linkageclustering,becauseweneedtodeterminetheaver-agesimilaritybetweenalargenumberofpairsinordertodeter-minegroup-wisesimilarity.Ontheotherhand,itismuchmorerobustintermsofclusteringquality,becauseitdoesnotexhibitthechainingbehaviorofsinglelinkageclustering.Itispossibletospeeduptheaveragelinkageclusteringalgorithmbyapproxi-matingtheaveragelinkagesimilaritybetweentwoclustersC1andC2bycomputingthesimilaritybetweenthemeandocumentofC192MININGTEXTDATAandthemeandocumentofC2.Whilethisapproachdoesnotworkequallywellforalldatadomains,itworksparticularlywellforthecaseoftextdata.Inthiscase,therunningtimecanbereducedtoO(n2),wherenisthetotalnumberofnodes.Themethodcanbeimplementedquiteeﬃcientlyinthecaseofdocumentdata,be-causethecentroidofaclusterissimplytheconcatenationofthedocumentsinthatcluster.CompleteLinkageClustering:Inthistechnique,thesimilaritybetweentwoclustersistheworst-casesimilaritybetweenanypairofdocumentsinthetwoclusters.Complete-linkageclusteringcanalsoavoidchainingbecauseitavoidstheplacementofanypairofverydisparatepointsinthesamecluster.However,likegroup-averageclustering,itiscomputationallymoreexpensivethanthesingle-linkagemethod.ThecompletelinkageclusteringmethodrequiresO(n2)spaceandO(n3)time.Thespacerequirementcanhoweverbesigniﬁcantlylowerinthecaseofthetextdatadomain,becausealargenumberofpairwisesimilaritiesarezero.Hierarchicalclusteringalgorithmshavealsobeendesignedinthecontextoftextdatastreams.Adistributionalmodelingmethodforhierarchicalclusteringofstreamingdocumentshasbeenproposedin[80].Themainideaistomodelthefrequencyofword-presenceindocumentswiththeuseofamulti-poissondistribution.Theparametersofthismodelarelearnedinordertoassigndocumentstoclusters.ThemethodextendstheCOBWEBandCLASSITalgorithms[37,40]tothecaseoftextdata.Theworkin[80]studiesthediﬀerentkindsofdistributionalassumptionsofwordsindocuments.Wenotethatthesedistributionalassumptionsarerequiredtoadaptthesealgorithmstothecaseoftextdata.Theapproachessentiallychangesthedistributionalassumptionsothatthemethodcanworkeﬀectivelyfortextdata.3.2Distance-basedPartitioningAlgorithmsPartitioningalgorithmsarewidelyusedinthedatabaseliteratureinordertoeﬃcientlycreateclustersofobjects.Thetwomostwidelyuseddistance-basedpartitioningalgorithms[50,54]areasfollows:k-medoidclusteringalgorithms:Ink-medoidclusteringalgo-rithms,weuseasetofpointsfromtheoriginaldataastheanchors(ormedoids)aroundwhichtheclustersarebuilt.Thekeyaimofthealgorithmistodetermineanoptimalsetofrepresentativedocumentsfromtheoriginalcorpusaroundwhichtheclustersarebuilt.EachdocumentisassignedtoitsclosestrepresentativefromASurveyofTextClusteringAlgorithms93thecollection.Thiscreatesarunningsetofclustersfromthecor-puswhicharesuccessivelyimprovedbyarandomizedprocess.Thealgorithmworkswithaniterativeapproachinwhichthesetofkrepresentativesaresuccessivelyimprovedwiththeuseofran-domizedinter-changes.Speciﬁcally,weusetheaveragesimilarityofeachdocumentinthecorpustoitsclosestrepresentativeastheobjectivefunctionwhichneedstobeimprovedduringthisinter-changeprocess.Ineachiteration,wereplacearandomlypickedrepresentativeinthecurrentsetofmedoidswitharandomlypickedrepresentativefromthecollection,ifitimprovestheclusteringob-jectivefunction.Thisapproachisapplieduntilconvergenceisachieved.Therearetwomaindisadvantagesoftheuseofk-medoidsbasedclusteringalgorithms,oneofwhichisspeciﬁctothecaseoftextdata.Onegeneraldisadvantageofk-medoidsclusteringalgorithmsisthattheyrequirealargenumberofiterationsinordertoachieveconvergenceandarethereforequiteslow.Thisisbecauseeachiter-ationrequiresthecomputationofanobjectivefunctionwhosetimerequirementisproportionaltothesizeoftheunderlyingcorpus.Thesecondkeydisadvantageisthatk-medoidalgorithmsdonotworkverywellforsparsedatasuchastext.Thisisbecausealargefractionofdocumentpairsdonothavemanywordsincommon,andthesimilaritiesbetweensuchdocumentpairsaresmall(andnoisy)values.Therefore,asingledocumentmedoidoftendoesnotcontainalltheconceptsrequiredinordertoeﬀectivelybuildaclusteraroundit.Thischaracteristicisspeciﬁctothecaseoftheinformationretrievaldomain,becauseofthesparsenatureoftheunderlyingtextdata.k-meansclusteringalgorithms:Thek-meansclusteringalgo-rithmalsousesasetofkrepresentativesaroundwhichtheclustersarebuilt.However,theserepresentativesarenotnecessarilyob-tainedfromtheoriginaldataandarereﬁnedsomewhatdiﬀerentlythanak-medoidsapproach.Thesimplestformofthek-meansap-proachistostartoﬀwithasetofkseedsfromtheoriginalcorpus,andassigndocumentstotheseseedsonthebasisofclosestsim-ilarity.Inthenextiteration,thecentroidoftheassignedpointstoeachseedisusedtoreplacetheseedinthelastiteration.Inotherwords,thenewseedisdeﬁned,sothatitisabettercentralpointforthiscluster.Thisapproachiscontinueduntilconver-gence.Oneoftheadvantagesofthek-meansmethodoverthek-medoidsmethodisthatitrequiresanextremelysmallnumber94MININGTEXTDATAofiterationsinordertoconverge.Observationsfrom[25,83]seemtosuggestthatformanylargedatasets,itissuﬃcienttouse5orlessiterationsforaneﬀectiveclustering.Themaindisadvantageofthek-meansmethodisthatitisstillquitesensitivetotheinitialsetofseedspickedduringtheclustering.Secondly,thecentroidforagivenclusterofdocumentsmaycontainalargenumberofwords.Thiswillslowdownthesimilaritycalculationsinthenextiteration.Anumberofmethodsareusedtoreducetheseeﬀects,whichwillbediscussedlateroninthischapter.Theinitialchoiceofseedsaﬀectsthequalityofk-meansclustering,espe-ciallyinthecaseofdocumentclustering.Therefore,anumberoftech-niquesareusedinordertoimprovethequalityoftheinitialseedswhicharepickedfortheclusteringprocess.Forexample,anotherlightweightclusteringmethodsuchasanagglomerativeclusteringtechniquecanbeusedinordertodecidetheinitialsetofseeds.Thisisatthecoreofthemethoddiscussedin[25]foreﬀectivedocumentclustering.Wewilldiscussthismethodindetailinthenextsubsection.Asecondmethodforimprovingtheinitialsetofseedsistousesomeformofpartialsupervisionintheprocessofinitialseedcreation.Thisformofpartialsupervisioncanalsobehelpfulincreatingclusterswhicharedesignedforparticularapplication-speciﬁccriteria.Anexampleofsuchanapproachisdiscussedin[4]inwhichwepicktheinitialsetofseedsasthecentroidsofthedocumentscrawledfromaparticularcategoryiftheYahoo!taxonomy.ThisalsohastheeﬀectthattheﬁnalsetofclustersaregroupedbythecoherenceofcontentwithinthediﬀerentYahoo!categories.Theapproachhasbeenshowntobequiteeﬀectiveforuseinanumberofapplicationssuchastextcategorization.Suchsemi-supervisedtechniquesareparticularlyusefulforinformationorganizationincaseswherethestartingsetofcategoriesissomewhatnoisy,butcontainsenoughinformationinordertocreateclusterswhichsatisfyapre-deﬁnedkindoforganization.3.3AHybridApproach:TheScatter-GatherMethodWhilehierarchicalclusteringmethodstendtobemorerobustbecauseoftheirtendencytocompareallpairsofdocuments,theyaregenerallynotveryeﬃcient,becauseoftheirtendencytorequireatleastO(n2)time.Ontheotherhand,k-meanstypealgorithmsaremoreeﬃcientthanhierarchicalalgorithms,butmaysometimesnotbeveryeﬀectivebecauseoftheirtendencytorelyonasmallnumberofseeds.ASurveyofTextClusteringAlgorithms95Themethodin[25]usesbothhierarchicalandpartitionalclusteringalgorithmstogoodeﬀect.Speciﬁcally,itusesahierarchicalclusteringalgorithmonasampleofthecorpusinordertoﬁndarobustinitialsetofseeds.Thisrobustsetofseedsisusedinconjunctionwithastandardk-meansclusteringalgorithminordertodeterminegoodclusters.Thesizeofthesampleintheinitialphaseiscarefullytailoredsoastoprovidethebestpossibleeﬀectivenesswithoutthisphasebecomingabottleneckinalgorithmexecution.Therearetwopossiblemethodsforcreatingtheinitialsetofseeds,whicharereferredtoasbuckshotandfractionationrespectively.Thesearetwoalternativemethods,andaredescribedasfollows:Buckshot:Letkbethenumberofclusterstobefoundandnbethenumberofdocumentsinthecorpus.Insteadofpickingthekseedsrandomlyfromthecollection,thebuckshotschemepicksanoverestimate√k·noftheseeds,andthenagglomeratesthesetokseeds.Standardagglomerativehierarchicalclusteringalgo-rithms(requiringquadratictime)areappliedtothisinitialsampleof√k·nseeds.Sinceweusequadraticallyscalablealgorithmsinthisphase,thisapproachrequiresO(k·n)time.Wenotethatthisseedsetismuchmorerobustthanonewhichsimplysamplesforkseeds,becauseofthesummarizationofalargedocumentsampleintoarobustsetofkseeds.Fractionation:Thefractionationalgorithminitiallybreaksupthecorpusinton/mbucketsofsizem>keach.Anagglomerativealgorithmisappliedtoeachofthesebucketstoreducethembyafactorofν.Thus,attheendofthephase,wehaveatotalofν·nagglomeratedpoints.Theprocessisrepeatedbytreatingeachoftheseagglomeratedpointsasanindividualrecord.Thisisachievedbymergingthediﬀerentdocumentswithinanagglomeratedclusterintoasingledocument.Theapproachterminateswhenatotalofkseedsremain.WenotethatthetheagglomerativeclusteringofeachgroupofmdocumentsintheﬁrstiterationofthefractionationalgorithmrequiresO(m2)time,whichsumstoO(n·m)overthen/mdiﬀerentgroups.Since,thenumberofindividualsreducesgeometricallybyafactorofνineachiteration,thetotalrunningtimeoveralliterationsisO(n·m·(1+μ+ν2+...)).Forconstantν<1,therunningtimeoveralliterationsisstillO(n·m).Bypickingm=O(k),wecanstillensurearunningtimeofO(n·k)fortheinitializationprocedure.TheBuckshotandFractionationproceduresrequireO(k·n)timewhichisalsoequivalenttorunningtimeofoneiterationofthekmeansalgorithm.96MININGTEXTDATAEachiterationoftheK-meansalgorithmalsorequiresO(k·n)timebecauseweneedtocomputethesimilarityofthendocumentstothekdiﬀerentseeds.Wefurthernotethatthefractionationprocedurecanbeappliedtoarandomgroupingofthedocumentsinton/mdiﬀerentbuckets.Ofcourse,onecanalsoreplacetherandomgroupingapproachwithamorecarefullydesignedprocedureformoreeﬀectiveresults.Onesuchpro-cedureistosortthedocumentsbytheindexofthejthmostcommonwordinthedocument.Herejischosentobeasmallnumbersuchas3,whichcorrespondstomediumfrequencywordsinthedata.Thedocumentsarethenpartitionedintogroupsbasedonthissortorderbysegmentingoutcontinuousgroupsofmdocuments.Thisapproachen-suresthatthegroupscreatedhaveatleastafewcommonwordsinthemandarethereforenotcompletelyrandom.Thiscansometimesprovideabetterqualityofthecenterswhicharedeterminedbythefractionationalgorithm.OncetheinitialclustercentershavebeendeterminedwiththeuseoftheBuckshotorFractionationalgorithmswecanapplystandardk-meanspartitioningalgorithms.Speciﬁcally,weeachdocumentisassignedtothenearestofthekclustercenters.Thecentroidofeachsuchclusterisdeterminedastheconcatenationofthediﬀerentdocumentsinacluster.Thesecentroidsreplacethesetsofseedsfromthelastiteration.Thisprocesscanberepeatedinaniterativeapproachinordertosuccessivelyreﬁnethecentersfortheclusters.Typically,onlyasmallernumberofiterationsarerequired,becausethegreatestimprovementsoccuronlyintheﬁrstfewiterations.Itisalsopossibletouseanumberofprocedurestofurtherimprovethequalityoftheunderlyingclusters.Theseproceduresareasfollows:SplitOperation:Theprocessofsplittingcanbeusedinordertofurtherreﬁnetheclustersintogroupsofbettergranularity.Thiscanbeachievedbyapplyingthebuckshotprocedureontheindivid-ualdocumentsinaclusterbyusingk=2,andthenre-clusteringaroundthesecenters.ThisentireprocedurerequiresO(k·ni)timeforaclustercontainingnidatapoints,andthereforesplittingallthegroupsrequiresO(k·n)time.However,itisnotnecessarytosplitallthegroups.Instead,onlyasubsetofthegroupscanbesplit.Thosearethegroupswhicharenotverycoherentandcontaindocumentsofadisparatenature.Inordertomeasurethecoherenceofagroup,wecomputetheself-similarityofacluster.Thisself-similarityprovidesuswithanunderstandingoftheun-derlyingcoherence.ThisquantitycanbecomputedbothintermsofthesimilarityofthedocumentsinaclustertoitscentroidorASurveyofTextClusteringAlgorithms97intermsofthesimilarityoftheclusterdocumentstoeachother.Thesplitcriterioncanthenbeappliedselectivelyonlytothoseclusterswhichhavelowselfsimilarity.Thishelpsincreatingmorecoherentclusters.JoinOperation:Thejoinoperationattemptstomergesimilarclustersintoasinglecluster.Inordertoperformthemerge,wecomputethetopicalwordsofeachclusterbyexaminingthemostfrequentwordsofthecentroid.Twoclustersareconsideredsimilar,ifthereissigniﬁcantoverlapbetweenthetopicalwordsofthetwoclusters.WenotethatthemethodisoftenreferredtoastheScatter-Gatherclusteringmethod,butthisismorebecauseofhowtheclusteringmethodhasbeenpresentedintermsofitsuseforbrowsinglargecollectionsintheoriginalpaper[25].Thescatter-gatherapproachcanbeusedfororganizedbrowsingoflargedocumentcollections,becauseitcreatesanaturalhierarchyofsimilardocuments.Inparticular,ausermaywishtobrowsethehierarchyofclustersinaninteractivewayinordertounderstandtopicsofdiﬀerentlevelsofgranularityinthecollection.Onepossibilityistoperformahierarchicalclusteringa-priori;howeversuchanapproachhasthedisadvantagethatitisunabletomergeandre-clusterrelatedbranchesofthetreehierarchyon-the-ﬂywhenausermayneedit.Amethodforconstant-interactiontimebrowsingwiththeuseofthescatter-gatherapproachhasbeenpresentedin[26].Thisapproachpresentsthekeywordsassociatedwiththediﬀerentkeywordstoauser.Theusermaypickoneormoreofthesekeywords,whichalsocorrespondstooneormoreclusters.Thedocumentsintheseclustersaremergedandre-clusteredtoaﬁner-granularityon-the-ﬂy.Thisﬁnergranularityofclusteringispresentedtotheuserforfurtherexploration.Thesetofdocumentswhichispickedbytheuserforexplorationisreferredtoasthefocusset.Nextwewillexplainhowthisfocussetisfurtherexploredandre-clusteredontheﬂyinconstant-time.Thekeyassumptioninordertoenablethisapproachistheclusterreﬁnementhypothesis.Thishypothesisstatesthatdocumentswhichbe-longtothesameclusterinasigniﬁcantlyﬁnergranularitypartitioningwillalsooccurtogetherinapartitioningwithcoarsergranularity.Theﬁrststepistocreateahierarchyofthedocumentsintheclusters.Avarietyofagglomerativealgorithmssuchasthebuckshotmethodcanbeusedforthispurpose.Wenotethateach(internal)nodeofthistreecanbeviewedasameta-documentcorrespondingtotheconcatenationofallthedocumentsintheleavesofthissubtree.Thecluster-reﬁnementhy-pothesisallowsustoworkwithasmallersetofmeta-documentsrather98MININGTEXTDATAthantheentiresetofdocumentsinaparticularsubtree.TheideaistopickaconstantMwhichrepresentsthemaximumnumberofmeta-documentsthatwearewillingtore-clusterwiththeuseoftheinteractiveapproach.Thetreenodesinthefocussetarethenexpanded(withpri-oritytothebrancheswithlargestdegree),toamaximumofMnodes.TheseMnodesarethenre-clusteredon-the-ﬂywiththescatter-gatherapproach.ThisrequiresconstanttimebecauseoftheuseofaconstantnumberMofmeta-documentsintheclusteringprocess.Thus,bywork-ingwiththemeta-documentsforM.weassumethecluster-reﬁnementhypothesisofallnodesofthesubtreeatthelowerlevel.Clearly,alargervalueofMdoesnotassumethecluster-reﬁnementhypothesisquiteasstrongly,butalsocomesatahighercost.Thedetailsofthealgorithmaredescribedin[26].Someextensionsofthisapproacharealsopre-sentedin[85],inwhichithasbeenshownhowthisapproachcanbeusedtoclusterarbitrarycorpussubsetsofthedocumentsinconstanttime.AnotherrecentonlineclusteringalgorithmcalledLAIR2[55]providesconstant-interactiontimeforScatter/Gatherbrowsing.Theparalleliza-tionofthisalgorithmissigniﬁcantlyfasterthanacorrespondingversionoftheBuckshotalgorithm.IthasalsobeensuggestedthattheLAIR2algorithmleadstobetterqualityclustersinthedata.3.3.1ProjectionsforEﬃcientDocumentClustering.Oneofthechallengesofthescatter-gatheralgorithmisthateventhoughthealgorithmisdesignedtobalancetherunningtimesoftheagglomer-ativeandpartitioningphasesquitewell,itsometimessuﬀeraslowdowninlargedocumentcollectionsbecauseofthemassivenumberofdistincttermsthatagivenclustercentroidmaycontain.Recallthataclustercentroidinthescatter-gatheralgorithmisdeﬁnedastheconcatenationofallthedocumentsinthatcollection.Whenthenumberofdocumentsintheclusterislarge,thiswillalsoleadtoalargenumberofdistincttermsinthecentroid.Thiswillalsoleadtoaslowdownofanumberofcriticalcomputationssuchassimilaritycalculationsbetweendocumentsandclustercentroids.Aninterestingsolutiontothisproblemhasbeenproposedin[83].Theideaistousetheconceptofprojectioninordertoreducethedimensional-ityofthedocumentrepresentation.Suchareductionindimensionalitywillleadtosigniﬁcantspeedups,becausethesimilaritycomputationswillbemademuchmoreeﬃcient.Theworkin[83]proposesthreekindsofprojections:GlobalProjection:Inglobalprojection,thedimensionalityoftheoriginaldatasetisreducedinordertoremovetheleastim-portant(weighted)termsfromthedata.TheweightofatermisASurveyofTextClusteringAlgorithms99deﬁnedastheaggregateofthe(normalizedanddamped)frequen-ciesofthetermsinthedocuments.LocalProjection:Inlocalprojection,thedimensionalityofthedocumentsineachclusterarereducedwithalocallyspeciﬁcap-proachforthatcluster.Thus,thetermsineachclustercentroidaretruncatedseparately.Speciﬁcally,theleastweighttermsinthediﬀerentclustercentroidsareremoved.Thus,thetermsremovedfromeachdocumentmaybediﬀerent,dependingupontheirlocalimportance.LatentSemanticIndexing:Inthiscase,thedocument-spaceistransformedwithanLSItechnique,andtheclusteringisappliedtothetransformeddocumentspace.WenotethattheLSItech-niquecanalsobeappliedeithergloballytothewholedocumentcollection,orlocallytoeachclusterifdesired.Ithasbeenshownin[83]thattheprojectionapproachesprovidecom-petitiveresultsintermsofeﬀectivenesswhileretaininganextremelyhighlevelofeﬃciencywithrespecttoallthecompetingapproaches.Inthissense,theclusteringmethodsarediﬀerentfromsimilaritysearchbecausetheyshowlittledegradationinquality,whenprojectionsareperformed.Oneofthereasonsforthisisthatclusteringisamuchlessﬁnegrainedapplicationascomparedtosimilaritysearch,andthereforethereisnoperceptiblediﬀerenceinqualityevenwhenweworkwithatruncatedfeaturespace.4.WordandPhrase-basedClusteringSincetextdocumentsaredrawnfromaninherentlyhigh-dimensionaldomain,itcanbeusefultoviewtheprobleminadualway,inwhichimportantclustersofwordsmaybefoundandutilizedforﬁndingclus-tersofdocuments.Inacorpuscontainingdtermsandndocuments,onemayviewaterm-documentmatrixasann×dmatrix,inwhichthe(i,j)thentryisthefrequencyofthejthtermintheithdocument.Wenotethatthismatrixisextremelysparsesinceagivendocumentcontainsanextremelysmallfractionoftheuniverseofwords.Wenotethattheproblemofclusteringrowsinthismatrixisthatofclusteringdocuments,whereasthatofclusteringcolumnsinthismatrixisthatofclusteringwords.Inreality,thetwoproblemsarecloselyrelated,asgoodclustersofwordsmaybeleveragedinordertoﬁndgoodclustersofdocumentsandvice-versa.Forexample,theworkin[16]determinesfrequentitemsetsofwordsinthedocumentcollection,andusesthemtodeterminecompactclustersofdocuments.Thisissomewhatanalogous100MININGTEXTDATAtotheuseofclustersofwords[87]fordeterminingclustersofdocuments.Themostgeneraltechniqueforsimultaneouswordanddocumentclus-teringisreferredtoasco-clustering[30,31].Thisapproachsimultaneousclusterstherowsandcolumnsoftheterm-documentmatrix,inordertocreatesuchclusters.Thiscanalsobeconsideredtobeequivalenttotheproblemofre-orderingtherowsandcolumnsoftheterm-documentma-trixsoastocreatedenserectangularblocksofnon-zeroentriesinthismatrix.Insomecases,theorderinginformationamongwordsmaybeusedinordertodeterminegoodclusters.Theworkin[103]determinesthefrequentphrasesinthecollectionandleveragestheminordertodeterminedocumentclusters.Itisimportanttounderstandthattheproblemofwordclustersanddocumentclustersareessentiallydualproblemswhicharecloselyre-latedtooneanother.Theformerisrelatedtodimensionalityreduction,whereasthelatterisrelatedtotraditionalclustering.Theboundarybe-tweenthetwoproblemsisquiteﬂuid,becausegoodwordclustersprovidehintsforﬁndinggooddocumentclustersandvice-versa.Forexample,amoregeneralprobabilisticframeworkwhichdetermineswordclustersanddocumentclusterssimultaneouslyisreferredtoastopicmodeling[49].Topicmodelingisamoregeneralframeworkthaneithercluster-ingordimensionalityreduction.Wewillintroducethemethodoftopicmodelinginalatersectionofthischapter.Amoredetailedtreatmentisalsoprovidedinthenextchapterinthisbook,whichisondimen-sionalityreduction,andinChapter8whereamoregeneraldiscussionofprobabilisticmodelsfortextminingisgiven.4.1ClusteringwithFrequentWordPatternsFrequentpatternmining[8]isatechniquewhichhasbeenwidelyusedinthedataminingliteratureinordertodeterminethemostrelevantpat-ternsintransactionaldata.Theclusteringapproachin[16]isdesignedonthebasisofsuchfrequentpatternminingalgorithms.Afrequentitemsetinthecontextoftextdataisalsoreferredtoasafrequenttermset,becausewearedealingwithdocumentsratherthantransactions.Themainideaoftheapproachistonotclusterthehighdimensionaldocumentdataset,butconsiderthelowdimensionalfrequenttermsetsasclustercandidates.Thisessentiallymeansthatafrequenttermssetisadescriptionofaclusterwhichcorrespondstoallthedocumentscontainingthatfrequenttermset.Sinceafrequenttermsetcanbecon-sideredadescriptionofacluster,asetofcarefullychosenfrequenttermssetscanbeconsideredaclustering.TheappropriatechoiceofthissetASurveyofTextClusteringAlgorithms101offrequenttermsetsisdeﬁnedonthebasisoftheoverlapsbetweenthesupportingdocumentsofthediﬀerentfrequenttermsets.Thenotionofclusteringdeﬁnedin[16]doesnotnecessarilyuseastrictpartitioninginordertodeﬁnetheclustersofdocuments,butitallowsacertainlevelofoverlap.Thisisanaturalpropertyofmanyterm-andphrase-basedclusteringalgorithmsbecauseonedoesnotdirectlycontroltheassignmentofdocumentstoclustersduringthealgorithmexecution.Allowingsomelevelofoverlapbetweenclustersmaysometimesbemoreappropriate,becauseitrecognizesthefactthatdocumentsarecomplexobjectsanditisimpossibletocleanlypartitiondocumentsintospeciﬁcclusters,especiallywhensomeoftheclustersarepartiallyrelatedtooneanother.Theclusteringdeﬁnitionof[16]assumesthateachdocumentiscoveredbyatleastonefrequenttermset.LetRbethesetofchosenfrequenttermsetswhichdeﬁnethecluster-ing.LetfibethenumberoffrequenttermsetsinRwhicharecontainedintheithdocument.Thevalueoffiisatleastoneinordertoensurecompletecoverage,butwewouldotherwiselikeittobeaslowaspossi-bleinordertominimizeoverlap.Therefore,wewouldliketheaveragevalueof(fi−1)forthedocumentsinagivenclustertobeaslowaspossible.Wecancomputetheaveragevalueof(fi−1)forthedocu-mentsintheclusterandtrytopickfrequenttermsetssuchthatthisvalueisaslowaspossible.However,suchanapproachwouldtendtofavorfrequenttermsetscontainingveryfewterms.Thisisbecauseifatermsetcontainsmterms,thenallsubsetsofitwouldalsobecoveredbythedocument,asaresultofwhichthestandardoverlapwouldbeincreased.Theentropyoverlapofagiventermisessentiallythesumofthevaluesof−(1/fi)·log(1/fi)overalldocumentsinthecluster.Thisvalueis0,wheneachdocumenthasfi=1,andincreasesmonotonicallywithincreasingfivalues.Itthenremainstodescribehowthefrequenttermsetsareselectedfromthecollection.Twoalgorithmsaredescribedin[16],oneofwhichcorrespondstoaﬂatclustering,andtheothercorrespondstoahierar-chicalclustering.Wewillﬁrstdescribethemethodforﬂatclustering.Clearly,thesearchspaceoffrequenttermsisexponential,andthereforeareasonablesolutionistoutilizeagreedyalgorithmtoselectthefre-quenttermssets.Ineachiterationofthegreedyalgorithm,wepickthefrequenttermsetwithacoverhavingtheminimumoverlapwithotherclustercandidates.Thedocumentscoveredbytheselectedfrequenttermareremovedfromthedatabase,andtheoverlapinthenextiterationiscomputedwithrespecttotheremainingdocuments.Thehierarchicalversionofthealgorithmissimilartothebroadideainﬂatclustering,withthemaindiﬀerencethateachleveloftheclustering102MININGTEXTDATAisappliedtoasetoftermsetscontainingaﬁxednumberkofterms.Inotherwords,weareworkingonlywithfrequentpatternsoflengthkfortheselectionprocess.Theresultingclustersarethenfurtherpartitionedbyapplyingtheapproachfor(k+1)-termsets.Forfurtherpartitioningagivencluster,weuseonlythose(k+1)-termsetswhichcontainthefrequentk-termsetdeﬁningthatcluster.Moredetailsoftheapproachmaybefoundin[16].4.2LeveragingWordClustersforDocumentClustersAtwophaseclusteringprocedureisdiscussedin[87],whichusesthefollowingstepstoperformdocumentclustering:Intheﬁrstphase,wedetermineword-clustersfromthedocumentsinsuchawaythatmostofmutualinformationbetweenwordsanddocumentsispreservedwhenwerepresentthedocumentsintermsofwordclustersratherthanwords.Inthesecondphase,weusethecondensedrepresentationofthedocumentsintermsofword-clustersinordertoperformtheﬁnaldocumentclustering.Speciﬁcally,wereplacethewordoccurrencesindocumentswithword-clusteroccurrencesinordertoperformthedocumentclustering.Oneadvantageofthistwo-phaseprocedureisthesigniﬁcantreductioninthenoiseintherepresentation.LetX=x1...xnbetherandomvariablescorrespondingtotherows(documents),andletY=y1...ydbetherandomvariablescorrespond-ingtothecolumns(words).WewouldliketopartitionXintokclusters,andYintolclusters.LettheclustersbedenotedbyˆX=ˆx1...ˆxkandˆY=ˆy1...ˆyl.Inotherwords,wewishtoﬁndthemapsCXandCY,whichdeﬁnetheclustering:CX:x1...xn⇒ˆx1...ˆxkCY:y1...yd⇒ˆy1...ˆylIntheﬁrstphaseoftheprocedureweclusterYtoˆY,sothatmostoftheinformationinI(X,Y)ispreservedinI(X,ˆY).Inthesecondphase,weperformtheclusteringagainfromXtoˆXusingexactlythesameproceduresothatasmuchinformationaspossiblefromI(X,ˆY)ispreservedinI(ˆX,ˆY).Detailsofhoweachphaseoftheclusteringisperformedisprovidedin[87].Howtodiscoverinterestingwordclusters(whichcanbeleveragedfordocumentclustering)hasitselfattractedattentioninthenaturallan-ASurveyofTextClusteringAlgorithms103guageprocessingresearchcommunity,withparticularinterestsindiscov-eringwordclustersthatcancharacterizewordsenses[34]orasemanticconcept[21].In[34],forexample,theMarkovclusteringalgorithmwasappliedtodiscovercorpus-speciﬁcwordsensesinanunsupervisedway.Speciﬁcally,awordassociationgraphisﬁrstconstructedinwhichrelatedwordswouldbeconnectedwithanedge.Foragivenwordthatpoten-tiallyhasmultiplesenses,wecanthenisolatethesubgraphrepresentingitsneighbors.Theseneighborsareexpectedtoformclustersaccordingtodiﬀerentsensesofthetargetword,thusbygroupingtogetherneighborsthatarewellconnectedwitheachother,wecandiscoverwordclustersthatcharacterizediﬀerentsensesofthetargetword.In[21],ann-gramclasslanguagemodelwasproposedtoclusterwordsbasedonminimiz-ingthelossofmutualinformationbetweenadjacentwords,whichcanachievetheeﬀectofgroupingtogetherwordsthatsharesimilarcontextinnaturallanguagetext.4.3Co-clusteringWordsandDocumentsInmanycases,itisdesirabletosimultaneouslyclustertherowsandcolumnsofthecontingencytable,andexploretheinterplaybetweenwordclustersanddocumentclustersduringtheclusteringprocess.Sincetheclustersamongwordsanddocumentsareclearlyrelated,itisoftendesirabletoclusterbothsimultaneouslywhenwhenitisdesirabletoﬁndclustersalongoneofthetwodimensions.Suchanapproachisreferredtoasco-clustering[30,31].Co-clusteringisdeﬁnedasapairofmapsfromrowstorow-clusterindicesandcolumnstocolumn-clusterindices.Thesemapsaredeterminedsimultaneouslybythealgorithminordertooptimizethecorrespondingclusterrepresentations.Wefurthernotethatthematrixfactorizationapproach[58]discussedearlierinthischaptercanbenaturallyusedforco-clusteringbecauseitdiscoverswordclustersanddocumentclusterssimultaneously.Inthatsection,wehavealsodiscussedhowmatrixfactorizationcanbeviewedasaco-clusteringtechnique.Whilematrixfactorizationhasnotwidelybeenusedasatechniqueforco-clustering,wepointoutthisnaturalconnection,aspossibleexplorationforfuturecomparisonwithotherco-clusteringmethods.Somerecentwork[60]hasshownhowmatrixfac-torizationcanbeusedinordertotransformknowledgefromwordspacetodocumentspaceinthecontextofdocumentclusteringtechniques.Theproblemofco-clusteringisalsocloselyrelatedtotheproblemofsubspaceclustering[7]orprojectedclustering[5]inquantitativedatainthedatabaseliterature.Inthisproblem,thedataisclusteredbysimultaneouslyassociatingitwithasetofpointsandsubspacesinmulti-104MININGTEXTDATAdimensionalspace.Theconceptofco-clusteringisanaturalapplicationofthisbroadideatodatadomainswhichcanberepresentedassparsehighdimensionalmatricesinwhichmostoftheentriesare0.Therefore,traditionalmethodsforsubspaceclusteringcanalsobeextendedtotheproblemofco-clustering.Forexample,anadaptiveiterativesubspaceclusteringmethodfordocumentswasproposedin[59].Wenotethatsubspaceclusteringorco-clusteringcanbeconsideredaformoflocalfeatureselection,inwhichthefeaturesselectedarespeciﬁctoeachcluster.Anaturalquestionarises,astowhetherthefeaturescanbeselectedasalinearcombinationofdimensionsasinthecaseoftra-ditionaldimensionalityreductiontechniquessuchasPCA[53].Thisisalsoknownaslocaldimensionalityreduction[22]orgeneralizedprojectedclustering[6]inthetraditionaldatabaseliterature.Inthismethod,PCA-basedtechniquesareusedinordertogeneratesubspacerepresen-tationswhicharespeciﬁctoeachcluster,andareleveragedinordertoachieveabetterclusteringprocess.Inparticular,suchanapproachhasrecentlybeendesigned[32],whichhasbeenshowntoworkwellwithdocumentdata.Inthissection,wewillstudytwowellknownmethodsfordocumentco-clustering,whicharecommonlyusedinthedocumentclusteringliter-ature.Oneofthesemethodsusesgraph-basedterm-documentrepresen-tations[30]andtheotherusesinformationtheory[31].Wewilldiscussbothofthesemethodsbelow.4.3.1Co-clusteringwithgraphpartitioning.Thecoreideainthisapproach[30]istorepresenttheterm-documentmatrixasabipartitegraphG=(V1∪V2,E),whereV1andV2representthevertexsetsinthetwobipartiteportionsofthisgraph,andErepresentstheedgeset.EachnodeinV1correspondstooneofthendocuments,andeachnodeinV2correspondstooneofthedterms.Anundirectededgeexistsbetweennodei∈V1andnodej∈V2ifdocumenticontainsthetermj.WenotethattherearenoedgesinEdirectlybetweenterms,ordirectlybetweendocuments.Therefore,thegraphisbipartite.Theweightofeachedgeisthecorrespondingnormalizedterm-frequency.Wenotethatawordpartitioninginthisbipartitegraphinducesadocumentpartitioningandvice-versa.Givenapartitioningofthedoc-umentsinthisgraph,wecanassociateeachwordwiththedocumentclustertowhichitisconnectedwiththemostweightofedges.Notethatthiscriterionalsominimizestheweightoftheedgesacrossthepar-titions.Similarly,givenawordpartitioning,wecanassociateeachdocu-mentwiththewordpartitiontowhichitisconnectedwiththegreatestweightofedges.Therefore,anaturalsolutiontothisproblemwouldASurveyofTextClusteringAlgorithms105besimultaneouslyperformthek-waypartitioningofthisgraphwhichminimizesthetotalweightoftheedgesacrossthepartitions.Thisisofcourseaclassicalprobleminthegraphpartitioningliterature.In[30],ithasbeenshownhowaspectralpartitioningalgorithmcanbeusedeﬀectivelyforthispurpose.Anothermethoddiscussedin[75]usesanisometricbipartitegraph-partitioningapproachfortheclusteringpro-cess.4.3.2Information-TheoreticCo-clustering.In[31],theoptimalclusteringhasbeendeﬁnedtobeonewhichmaximizesthemu-tualinformationbetweentheclusteredrandomvariables.Thenormal-izednon-negativecontingencytableistreatedasajointprobabilitydis-tributionbetweentwodiscreterandomvariableswhichtakevaluesoverrowsandcolumns.LetX=x1...xnbetherandomvariablescorre-spondingtotherows,andletY=y1...ydbetherandomvariablescorrespondingtothecolumns.WewouldliketopartitionXintokclus-ters,andYintolclusters.LettheclustersbedenotedbyˆX=ˆx1...ˆxkandˆY=ˆy1...ˆyl.Inotherwords,wewishtoﬁndthemapsCXandCY,whichdeﬁnetheclustering:CX:x1...xn⇒ˆx1...ˆxkCY:y1...yd⇒ˆy1...ˆylThepartitionfunctionsCXandCYareallowedtodependonthejointprobabilitydistributionp(X,Y).WenotethatsinceˆXandˆYarehigherlevelclustersofXandY,thereislossinmutualinformationinthehigherlevelrepresentations.Inotherwords,thedistributionp(ˆX,ˆY)containslessinformationthanp(X,Y),andthemutualinformationI(ˆX,ˆY)islowerthanthemutualinformationI(X,Y).Therefore,theoptimalco-clusteringproblemistodeterminethemappingwhichminimizesthelossinmutualinformation.Inotherwords,wewishtoﬁndaco-clusteringforwhichI(X,Y)−I(ˆX,ˆY)isassmallaspossible.Aniterativealgorithmforﬁndingaco-clusteringwhichminimizesmutualinformationlossisproposedin[29].4.4ClusteringwithFrequentPhrasesOneofthekeydiﬀerencesofthismethodfromothertextclusteringmethodsisthatittreatsadocumentasastringasopposedtoabagofwords.Speciﬁcally,eachdocumentistreatedasastringofwords,ratherthancharacters.Themaindiﬀerencebetweenthestringrepresentationandthebag-of-wordsrepresentationisthattheformeralsoretainsor-deringinformationfortheclusteringprocess.Asisthecasewithmany106MININGTEXTDATAclusteringmethods,itusesanindexingmethodinordertoorganizethephrasesinthedocumentcollection,andthenusesthisorganizationtocreatetheclusters[103,104].Severalstepsareusedinordertocreatetheclusters:(1)Theﬁrststepistoperformthecleaningofthestringsrepresentingthedocuments.Alightstemmingalgorithmisusedbydeletingwordpreﬁxesandsuﬃxesandreducingpluraltosingular.Sentencebound-ariesaremarkedandnon-wordtokensarestripped.(2)Thesecondstepistheidentiﬁcationofbaseclusters.Thesearedeﬁnedbythefrequentphasesinthecollectionwhicharerepresentedintheformofasuﬃxtree.Asuﬃxtree[45]isessentiallyatriewhichcontainsallthesuﬃxesoftheentirecollection.Eachnodeofthesuﬃxtreerepresentsagroupofdocuments,andaphrasewhichiscommontoallthesedocuments.Sinceeachnodeofthesuﬃx-treealsocorrespondstoagroupofdocuments,italsocorrespondstoabaseclustering.Eachbaseclusterisgivenascorewhichisessentiallytheproductofthenum-berofdocumentsinthatclusterandanon-decreasingfunctionofthelengthoftheunderlyingphrase.Therefore,clusterscontainingalargenumberofdocuments,andwhicharedeﬁnedbyarelativelylongphrasearemoredesirable.(3)Animportantcharacteristicofthebaseclusterscreatedbythesuf-ﬁxtreeisthattheydonotdeﬁneastrictpartitioningandhaveoverlapswithoneanother.Forexample,thesamedocumentmaycontainmul-tiplephrasesindiﬀerentpartsofthesuﬃxtree,andwillthereforebeincludedinthecorrespondingdocumentgroups.Thethirdstepofthealgorithmmergestheclustersbasedonthesimilarityoftheirunderlyingdocumentsets.LetPandQbethedocumentsetscorrespondingtotwoclusters.ThebasesimilarityBS(P,Q)isdeﬁnedasfollows:BS(P,Q)=(cid:18)|P∩Q|max{|P|,|Q|}+0.5(cid:19)(4.11)Thisbasesimilarityiseither0or1,dependinguponwhetherthetwogroupshaveatleast50%oftheirdocumentsincommon.Then,wecon-structagraphstructureinwhichthenodesrepresentthebaseclusters,andanedgeexistsbetweentwoclusternodes,ifthecorrespondingbasesimilaritybetweenthatpairofgroupsis1.Theconnectedcomponentsinthisgraphdeﬁnetheﬁnalclusters.Speciﬁcally,theunionofthegroupsofdocumentsineachconnectedcomponentisusedastheﬁnalsetofclusters.Wenotethattheﬁnalsetofclustershavemuchlessover-lapwithoneanother,buttheystilldonotdeﬁneastrictpartitioning.Thisissometimesthecasewithclusteringalgorithmsinwhichmodestoverlapsareallowedtoenablebetterclusteringquality.ASurveyofTextClusteringAlgorithms1075.ProbabilisticDocumentClusteringandTopicModelsApopularmethodforprobabilisticdocumentclusteringisthatoftopicmodeling.Theideaoftopicmodelingistocreateaprobabilisticgenerativemodelforthetextdocumentsinthecorpus.Themainap-proachistorepresentacorpusasafunctionofhiddenrandomvariables,theparametersofwhichareestimatedusingaparticulardocumentcol-lection.Theprimaryassumptionsinanytopicmodelingapproach(to-getherwiththecorrespondingrandomvariables)areasfollows:Thendocumentsinthecorpusareassumedtohaveaprobabilityofbelongingtooneofktopics.Thus,agivendocumentmayhaveaprobabilityofbelongingtomultipletopics,andthisreﬂectsthefactthatthesamedocumentmaycontainamultitudeofsubjects.ForagivendocumentDi,andasetoftopicsT1...Tk,theprob-abilitythatthedocumentDibelongstothetopicTjisgivenbyP(Tj|Di).Wenotethatthethetopicsareessentiallyanalogoustoclusters,andthevalueofP(Tj|Di)providesaprobabilityofclus-termembershipoftheithdocumenttothejthcluster.Innon-probabilisticclusteringmethods,themembershipofdocumentstoclustersisdeterministicinnature,andthereforetheclusteringistypicallyacleanpartitioningofthedocumentcollection.However,thisoftencreateschallenges,whenthereareoverlapsindocumentsubjectmatteracrossmultipleclusters.Theuseofasoftclustermembershipintermsofprobabilitiesisanelegantsolutiontothisdilemma.Inthisscenario,thedeterminationofthemembershipofthedocumentstoclustersisasecondarygoaltothatofﬁndingthelatenttopicalclustersintheunderlyingtextcollection.Therefore,thisareaofresearchisreferredtoastopicmodeling,andwhileitisrelatedtotheclusteringproblem,itisoftenstudiedasadistinctareaofresearchfromclustering.ThevalueofP(Tj|Di)isestimatedusingthetopicmodelingap-proach,andisoneoftheprimaryoutputsofthealgorithm.Thevalueofkisoneoftheinputstothealgorithmandisanalogoustothenumberofclusters.Eachtopicisassociatedwithaprobabilityvector,whichquantiﬁestheprobabilityofthediﬀerenttermsinthelexiconforthattopic.Lett1...tdbethedtermsinthelexicon.Then,foradocumentthatbelongscompletelytotopicTj,theprobabilitythatthetermtloccursinitisgivenbyP(tl|Tj).ThevalueofP(tl|Tj)isanother108MININGTEXTDATAimportantparameterwhichneedstobeestimatedbythetopicmodelingapproach.Notethatthenumberofdocumentsisdenotedbyn,topicsbykandlexiconsize(terms)byd.Mosttopicmodelingmethodsattempttolearntheaboveparametersusingmaximumlikelihoodmethods,sothattheprobabilisticﬁttothegivencorpusofdocumentsisaslargeaspos-sible.Therearetwobasicmethodswhichareusedfortopicmodeling,whichareProbabilisticLatentSemanticIndexing(PLSI)[49]andLatentDirichletAllocation(LDA)[20]respectively.Inthissection,wewillfocusontheprobabilisticlatentsemanticin-dexingmethod.NotethattheabovesetofrandomvariablesP(Tj|Di)andP(tl|Tj)allowustomodeltheprobabilityofatermtloccurringinanydocumentDi.Speciﬁcally,theprobabilityP(tl|Di)ofthetermtloccurringdocumentDicanbeexpressedintermsofafore-mentionedparametersasfollows:P(tl|Di)=k(cid:9)j=1p(tl|Tj)·P(Tj|Di)(4.12)Thus,foreachtermtlanddocumentDi,wecangeneratean×dma-trixofprobabilitiesintermsoftheseparameters,wherenisthenumberofdocumentsanddisthenumberofterms.Foragivencorpus,wealsohavethen×dterm-documentoccurrencematrixX,whichtellsuswhichtermactuallyoccursineachdocument,andhowmanytimesthetermoccursinthedocument.Inotherwords,X(i,l)isthenumberoftimesthattermtloccursindocumentDi.Therefore,wecanuseamaximumlikelihoodestimationalgorithmwhichmaximizestheproductoftheprobabilitiesoftermsthatareobservedineachdocumentintheentirecollection.ThelogarithmofthiscanbeexpressedasaweightedsumofthelogarithmofthetermsinEquation4.12,wheretheweightofthe(i,l)thtermisitsfrequencycountX(i,l).Thisisaconstrainedoptimizationproblemwhichoptimizesthevalueoftheloglikelihoodprobability(cid:4)i,lX(i,l)·log(P(tl|Di))subjecttotheconstraintsthattheprobabilityvaluesovereachofthetopic-documentandterm-topicspacesmustsumto1:(cid:9)lP(tl|Tj)=1∀Tj(4.13)(cid:9)jP(Tj|Di)=1∀Di(4.14)ASurveyofTextClusteringAlgorithms109ThevalueofP(tl|Di)intheobjectivefunctionisexpandedandexpressedintermsofthemodelparameterswiththeuseofEquation4.12.WenotethataLagrangianmethodcanbeusedtosolvethisconstrainedproblem.Thisisquitesimilartotheapproachthatwediscussedforthenon-negativematrixfactorizationprobleminthischapter.TheLa-grangiansolutionessentiallyleadstoasetofiterativeupdateequationsforthecorrespondingparameterswhichneedtobeestimated.Itcanbeshownthattheseparameterscanbeestimated[49]withtheiterativeup-dateoftwomatrices[P1]k×nand[P2]d×kcontainingthetopic-documentprobabilitiesandterm-topicprobabilitiesrespectively.Westartoﬀbyinitializingthesematricesrandomly,andnormalizeeachofthemsothattheprobabilityvaluesintheircolumnssumtoone.Then,weiterativelyperformthefollowingstepsoneachofP1andP2respectively:foreachentry(j,i)inP1doupdateP1(j,i)←P1(j,i)·(cid:4)dr=1P2(r,j)·X(i,r)(cid:2)kv=1P1(v,i)·P2(r,v)NormalizeeachcolumnofP1tosumto1;foreachentry(l,j)inP2doupdateP2(l,j)←P2(l,j)·(cid:4)nq=1P1(j,q)·X(q,l)(cid:2)kv=1P1(v,q)·P2(l,v)NormalizeeachcolumnofP2tosumto1;Theprocessisiteratedtoconvergence.TheoutputofthisapproacharethetwomatricesP1andP2,theentriesofwhichprovidethetopic-documentandterm-topicprobabilitiesrespectively.ThesecondwellknownmethodfortopicmodelingisthatofLatentDirichletAllocation.Inthismethod,theterm-topicprobabilitiesandtopic-documentprobabilitiesaremodeledwithaDirichletdistributionasaprior.Thus,theLDAmethodistheBayesianversionofthePLSItechnique.ItcanalsobeshownthethePLSImethodisequivalenttotheLDAtechnique,whenappliedwithauniformDirichletprior[42].ThemethodofLDAwasﬁrstintroducedin[20].Subsequently,ithasgenerallybeenusedmuchmoreextensivelyascomparedtothePLSImethod.ItsmainadvantageoverthePLSImethodisthatitisnotquiteassusceptibletooverﬁtting.ThisisgenerallytrueofBayesianmeth-odswhichreducethenumberofmodelparameterstobeestimated,andthereforeworkmuchbetterforsmallerdatasets.Evenforlargerdatasets,PLSIhasthedisadvantagethatthenumberofmodelparametersgrowslinearlywiththesizeofthecollection.Ithasbeenargued[20]thatthePLSImodelisnotafullygenerativemodel,becausethereisnoac-curatewaytomodelthetopicaldistributionofadocumentwhichisnotincludedinthecurrentdataset.Forexample,onecanusethecurrentset110MININGTEXTDATAoftopicaldistributionstoperformthemodelingofanewdocument,butitislikelytobemuchmoreinaccuratebecauseoftheoverﬁttinginherentinPLSI.ABayesianmodel,whichusesasmallnumberofparametersintheformofawell-chosenpriordistribution,suchasaDirichlet,islikelytobemuchmorerobustinmodelingnewdocuments.Thus,theLDAmethodcanalsobeusedinordertomodelthetopicdistributionofanewdocumentmorerobustly,evenifitisnotpresentintheoriginaldataset.DespitethetheoreticaladvantagesofLDAoverPLSA,arecentstudyhasshownthattheirtaskperformancesinclustering,categorizationandretrievaltendtobesimilar[63].Theareaoftopicmodelsisquitevast,andwillbetreatedinmoredepthinChapter5andChapter8ofthisbook;thepurposeofthissectionistosimplyacquaintthereaderwiththebasicsofthisareaanditsnaturalconnectiontoclustering.WenotethattheEM-conceptswhichareusedfortopicmodelingarequitegeneral,andcanbeusedfordiﬀerentvariationsonthetextcluster-ingtasks,suchastextclassiﬁcation[72]orincorporatinguserfeedbackintoclustering[46].Forexample,theworkin[72]usesanEM-approachinordertoperformsupervisedclustering(andclassiﬁcation)ofthedoc-uments,whenamixtureoflabeledandunlabeleddataisavailable.AmoredetaileddiscussionisprovidedinChapter6ontextclassiﬁcation.6.OnlineClusteringwithTextStreamsTheproblemofstreamingtextclusteringisparticularlychallenginginthecontextoftextdatabecauseofthefactthattheclustersneedtobecontinuouslymaintainedinrealtime.Oneoftheearliestmethodsforstreamingtextclusteringwasproposedin[112].ThistechniqueisreferredtoastheOnlineSphericalk-MeansAlgorithm(OSKM),whichreﬂectsthebroadapproachusedbythemethodology.Thistechniquedividesuptheincomingstreamintosmallsegments,eachofwhichcanbeprocessedeﬀectivelyinmainmemory.Asetofk-meansiterationsareappliedtoeachsuchdatasegmentinordertoclusterthem.Theadvantageofusingasegment-wiseapproachforclusteringisthatsinceeachsegmentcanbeheldinmainmemory,wecanprocesseachdatapointmultipletimesaslongasitisheldinmainmemory.Inaddition,thecentroidsfromtheprevioussegmentareusedinthenextiterationforclusteringpurposes.Adecayfactorisintroducedinordertoage-outtheolddocuments,sothatthenewdocumentsareconsideredmoreimportantfromaclusteringperspective.Thisapproachhasbeenshowntobeextremelyeﬀectiveinclusteringmassivetextstreamsin[112].Adiﬀerentmethodforclusteringmassivetextandcategoricaldatastreamsisdiscussedin[3].Themethoddiscussedin[3]usesanapproachASurveyofTextClusteringAlgorithms111whichexaminestherelationshipbetweenoutliers,emergingtrends,andclustersintheunderlyingdata.Oldclustersmaybecomeinactive,andeventuallygetreplacedbynewclusters.Similarly,whennewlyarrivingdatapointsdonotnaturallyﬁtinanyparticularcluster,theseneedtobeinitiallyclassiﬁedasoutliers.However,astimeprogresses,thesenewpointsmaycreateadistinctivepatternofactivitywhichcanberecognizedasanewcluster.Thetemporallocalityofthedatastreamismanifestedbythesenewclusters.Forexample,theﬁrstwebpagebelongingtoaparticularcategoryinacrawlmayberecognizedasanoutlier,butmaylaterformaclusterofdocumentsofitsown.Ontheotherhand,thenewoutliersmaynotnecessarilyresultintheformationofnewclusters.Suchoutliersaretrueshort-termabnormalitiesinthedatasincetheydonotresultintheemergenceofsustainablepatterns.Theapproachdiscussedin[3]recognizesnewclustersbyﬁrstrecognizingthemasoutliers.Thisapproachworkswiththeuseofasummarizationmethodology,inwhichweusetheconceptofcondenseddroplets[3]inordertocreateconciserepresentationsoftheunderlyingclusters.AsinthecaseoftheOSKMalgorithm,weensurethatrecentdatapointsaregivengreaterimportancethanolderdatapoints.Thisisachievedbycreatingatime-sensitiveweightforeachdatapoint.Itisassumedthateachdatapointhasatime-dependentweightdeﬁnedbythefunctionf(t).Thefunctionf(t)isalsoreferredtoasthefadingfunction.Thefadingfunctionf(t)isanon-monotonicdecreasingfunctionwhichdecaysuniformlywithtimet.Theaimofdeﬁningahalflifeistoquantifytherateofdecayoftheimportanceofeachdatapointinthestreamclusteringprocess.Thedecay-rateisdeﬁnedastheinverseofthehalflifeofthedatastream.Wedenotethedecayratebyλ=1/t0.Wedenotetheweightfunctionofeachpointinthedatastreambyf(t)=2−λ·t.Fromtheperspectiveoftheclusteringprocess,theweightofeachdatapointisf(t).Itiseasytoseethatthisdecayfunctioncreatesahalflifeof1/λ.Itisalsoevidentthatbychangingthevalueofλ,itispossibletochangetherateatwhichtheimportanceofthehistoricalinformationinthedatastreamdecays.Whenaclusteriscreatedduringthestreamingprocessbyanewlyarrivingdatapoint,itisallowedtoremainasatrend-settingoutlierforatleastonehalf-life.Duringthatperiod,ifatleastonemoredatapointarrives,thentheclusterbecomesanactiveandmaturecluster.Ontheotherhand,ifnonewpointsarriveduringahalf-life,thenthetrend-settingoutlierisrecognizedasatrueanomalyinthedatastream.Atthispoint,thisanomalyisremovedfromthelistofcurrentclusters.Werefertotheprocessofremovalasclusterdeath.Thus,anewclustercontainingonedatapointdieswhenthe(weighted)numberofpoints112MININGTEXTDATAintheclusteris0.5.Thesamecriterionisusedtodeﬁnethedeathofmatureclusters.Anecessaryconditionforthiscriteriontobemetisthattheinactivityperiodintheclusterhasexceededthehalflife1/λ.Thegreaterthenumberofpointsinthecluster,thegreaterthelevelbywhichtheinactivityperiodwouldneedtoexceeditshalflifeinordertomeetthecriterion.Thisisanaturalsolution,sinceitisintuitivelydesirabletohavestrongerrequirements(alongerinactivityperiod)forthedeathofaclustercontainingalargernumberofpoints.Thestatisticsofthedatapointsarecapturedinsummarystatistics,whicharereferredtoascondenseddroplets.Theserepresenttheworddistributionswithinacluster,andcanbeusedinordertocomputethesimilarityofanincomingdatapointtothecluster.Theoverallalgorithmproceedsasfollows.Atthebeginningofalgorithmicexecution,westartwithanemptysetofclusters.Asnewdatapointsarrive,unitclusterscontainingindividualdatapointsarecreated.Onceamaximumnumberkofsuchclustershavebeencreated,wecanbegintheprocessofonlineclustermaintenance.Thus,weinitiallystartoﬀwithatrivialsetofkclusters.Theseclustersareupdatedovertimewiththearrivalofnewdatapoints.WhenanewdatapointXarrives,itssimilaritytoeachclusterdropletiscomputed.Inthecaseoftextdatasets,thecosinesimilaritymeasurebetweenDF1andXisused.ThesimilarityvalueS(X,Cj)iscomputedfromtheincomingdocumentXtoeveryclusterCj.TheclusterwiththemaximumvalueofS(X,Cj)ischosenastherelevantclusterfordatainsertion.LetusassumethatthisclusterisCmindex.Weuseathresholddenotedbythreshinordertodeterminewhethertheincomingdatapointisanoutlier.IfthevalueofS(X,Cmindex)islargerthanthethresholdthresh,thenthepointXisassignedtotheclusterCmindex.Otherwise,wecheckifsomeinactiveclusterexistsinthecurrentsetofclusterdroplets.Ifnosuchinactiveclusterexists,thenthedatapointXisaddedtoCmindex.Ontheotherhand,whenaninactiveclusterdoesexist,anewclusteriscreatedcontainingthesolitarydatapointX.Thisnewlycreatedclusterreplacestheinactivecluster.Wenotethatthisnewclusterisapotentialtrueoutlierorthebeginningofanewtrendofdatapoints.Furtherunderstandingofthisnewclustermayonlybeobtainedwiththeprogressofthedatastream.IntheeventthatXisinsertedintotheclusterCmindex,weupdatethestatisticsoftheclusterinordertoreﬂecttheinsertionofthedatapointandtemporaldecaystatistics.Otherwise,wereplacethemostinactiveclusterbyanewclustercontainingthesolitarydatapointX.Inparticular,thereplacedclusteristheleastrecentlyupdatedclusteramongallinactiveclusters.ThisprocessiscontinuouslyperformedoverASurveyofTextClusteringAlgorithms113thelifeofthedatastream,asnewdocumentsarriveovertime.Theworkin[3]alsopresentsavarietyofotherapplicationsofthestreamclusteringtechniquesuchasevolutionandcorrelationanalysis.Adiﬀerentwayofutilizingthetemporalevolutionoftextdocumentsintheclusteringprocessisdescribedin[48].Speciﬁcally,theworkin[48]usesburstyfeaturesasmarkersofnewtopicoccurrencesinthedatastream.Thisisbecausethesemanticsofanup-and-comingtopicareoftenreﬂectedinthefrequentpresenceofafewdistinctivewordsinthetextstream.Atagivenperiodintime,thenatureofrelevanttopicscouldleadtoburstsinspeciﬁcfeaturesofthedatastream.Clearly,suchfea-turesareextremelyimportantfromaclusteringperspective.Therefore,themethoddiscussedin[48]usesanewrepresentation,whichisreferredtoastheburstyfeaturerepresentationforminingtextstreams.Inthisrepresentation,atime-varyingweightisassociatedwiththefeaturesde-pendinguponitsburstiness.Thisalsoreﬂectsthevaryingimportanceofthefeaturetotheclusteringprocess.Thus,itisimportanttoremem-berthataparticulardocumentrepresentationisdependentupontheparticularinstantintimeatwhichitisconstructed.Anotherissuewhichishandledeﬀectivelyinthisapproachisanim-plicitreductionindimensionalityoftheunderlyingcollection.Textisinherentlyahighdimensionaldatadomain,andthepre-selectionofsomeofthefeaturesonthebasisoftheirburstinesscanbeanaturalwaytoreducethedimensionalityofdocumentrepresentation.Thiscanhelpinboththeeﬀectivenessandeﬃciencyoftheunderlyingalgorithm.Theﬁrststepintheprocessistoidentifytheburstyfeaturesinthedatastream.Inordertoachievethisgoal,theapproachusesKlein-berg’s2-stateﬁniteautomatonmodel[57].Oncethesefeatureshavebeenidentiﬁed,theburstyfeaturesareassociatedwithweightswhichdependupontheirlevelofburstiness.Subsequently,aburstyfeaturerepresentationisdeﬁnedinordertoreﬂecttheunderlyingweightofthefeature.Boththeidentiﬁcationandtheweightoftheburstyfeaturearedependentuponitsunderlyingfrequency.Astandardk-meansapproachisappliedtothenewrepresentationinordertoconstructtheclustering.Itwasshownin[48]thattheapproachofusingburstinessimprovestheclusterquality.Oncecriticismoftheworkin[48]isthatitismostlyfocusedontheissueofimprovingeﬀectivenesswiththeuseoftempo-ralcharacteristicsofthedatastream,anddoesnotaddresstheissueofeﬃcientclusteringoftheunderlyingdatastream.Ingeneral,itisevidentthatfeatureextractionisimportantforallclusteringalgorithms.Whiletheworkin[48]focusesonusingtemporalcharacteristicsofthestreamforfeatureextraction,theworkin[61]fo-cusesonusingphraseextractionforeﬀectivefeatureselection.Thiswork114MININGTEXTDATAisalsorelatedtotheconceptoftopic-modeling,whichwillbediscussedindetailinthenextsection.Thisisbecausethediﬀerenttopicsinacollectioncanberelatedtotheclustersinacollection.Theworkin[61]usestopic-modelingtechniquesforclustering.Thecoreideaintheworkof[61]isthatindividualwordsarenotveryeﬀectiveforaclusteringalgorithmbecausetheymissthecontextinwhichthewordisused.Forexample,theword“star”mayeitherrefertoacelestialbodyortoanentertainer.Ontheotherhand,whenthephrase“ﬁxedstar”isused,itbecomesevidentthattheword“star”referstoacelestialbody.Thephraseswhichareextractedfromthecollectionarealsoreferredtoastopicsignatures.Theuseofsuchphrasalclariﬁcationforimprovingthequalityoftheclusteringisreferredtoassemanticsmoothingbecauseitreducesthenoisewhichisassociatedwithsemanticambiguity.Therefore,akeypartoftheapproachistoextractphrasesfromtheunderlyingdatastream.Afterphraseextraction,thetrainingprocessdeterminesatranslationprobabilityofthephrasetotermsinthevocabulary.Forexample,theword“planet”mayhavehighprobabilityofassociationwiththephrase“ﬁxedstar”,becausebothrefertocelestialbodies.Therefore,foragivendocument,arationalprobabilitycountmayalsobeassignedtoallterms.Foreachdocument,itisassumedthatalltermsinitaregeneratedeitherbyatopic-signaturemodel,orabackgroundcollectionmodel.Theapproachin[61]worksbymodelingthesoftprobabilityp(w|Cj)forwordwandclusterCj.Theprobabilityp(w|Cj)ismodeledasalinearcombinationoftwofactors;(a)Amaximumlikelihoodmodelwhichcom-putestheprobabilitiesofgeneratingspeciﬁcwordsforeachcluster(b)Anindirect(translated)word-membershipprobabilitywhichﬁrstdeter-minesthemaximumlikelihoodprobabilityforeachtopic-signature,andthenmultiplyingwiththeconditionalprobabilityofeachword,giventhetopic-signature.Wenotethatwecanusep(w|Cj)inordertoestimatep(d|Cj)byusingtheproductoftheconstituentwordsinthedocument.Forthispurpose,weusethefrequencyf(w,d)ofwordwindocumentd.p(d|Cj)=(cid:2)w∈dp(w|Cj)f(w,d)(4.15)Wenotethatinthestaticcase,itisalsopossibletoaddabackgroundmodelinordertoimprovetherobustnessoftheestimationprocess.Thisishowevernotpossibleinadatastreambecauseofthefactthatthebackgroundcollectionmodelmayrequiremultiplepassesinordertobuildeﬀectively.Theworkin[61]maintainstheseprobabilitiesinonlinefashionwiththeuseofaclusterproﬁle,thatweightstheprobabilitieswiththeuseofafadingfunction.WenotethattheconceptofclusterASurveyofTextClusteringAlgorithms115proﬁleisanalogoustotheconceptofcondenseddropletintroducedin[3].Thekeyalgorithm(denotedbyOCTS)istomaintainadynamicsetofclustersintowhichdocumentsareprogressivelyassignedwiththeuseofsimilaritycomputations.Ithasbeenshownin[61]howtheclusterproﬁlecanbeusedinordertoeﬃcientlycomputep(d|Cj)foreachincomingdocument.Thisvalueisthenusedinordertodeterminethesimilarityofthedocumentstothediﬀerentclusters.Thisisusedinordertoassignthedocumentstotheirclosestcluster.Wenotethatthemethodsin[3,61]shareanumberofsimilaritiesintermsof(a)maintenanceofclusterproﬁles,(b)useofclusterproﬁles(orcondenseddroplets)tocomputesimilarityandassignmentofdocumentstomostsimilarclusters,and(c)therulesusedtodecidewhenanewsingletonclustershouldbecreated,oroneoftheolderclustersshouldbereplaced.Themaindiﬀerencebetweenthetwoalgorithmsisthetechniquewhichisusedinordertocomputeclustersimilarity.TheOCTSalgorithmusestheprobabilisticcomputationp(d|Cj)tocomputeclustersimilarity,whichtakesthephrasalinformationintoaccountduringthecomputationprocess.OneobservationaboutOCTSisthatitmayallowforverysimilarclusterstoco-existinthecurrentset.Thisreducesthespaceavailablefordistinctclusterproﬁles.AsecondalgorithmcalledOCTSMisalsoproposedin[61],whichallowsformergingofverysimilarclusters.Beforeeachassignment,itcheckswhetherpairsofsimilarclusterscanbemergedonthebasisofsimilarity.Ifthisisthecase,thenweallowthemergingofthesimilarclustersandtheircorrespondingclusterproﬁles.Detailedexperimentalresultsonthediﬀerentclusteringalgorithmsandtheireﬀectivenessarepresentedin[61].Acloselyrelatedareatoclusteringisthatoftopicmodeling,whichwediscussedinanearliersection.Recently,thetopicmodelingmethodhasalsobeenextendedtothedynamiccasewhichishelpfulfortopicmodelingoftextstreams[107].7.ClusteringTextinNetworksManysocialnetworkscontainbothtextcontentinthenodes,aswellaslinksbetweenthediﬀerentnodes.Clearly,thelinksprovideusefulcuesinunderstandingtherelatednodesinthenetwork.Theimpactofdiﬀerentlinktypesonthequalityoftheclusteringhasbeenstudiedin[109],andithasbeenshownthatmanyformsofimplicitandexplicitlinksimproveclusteringquality,becausetheyencodehumanknowledge.Therefore,anaturalchoiceistocombinethesetwofactorsintheprocessofclusteringthediﬀerentnodes.Inthissection,wewilldiscussanumberofsuchtechniques.116MININGTEXTDATAIngeneral,linksmaybeconsideredasakindofside-information,whichcanberepresentedintheformofattributes.Ageneralapproachforincorporatingsideattributesintotheclusteringprocesshasbeenpro-posedin[1].Thisalgorithmusesacombinationofak-meansapproachonthetextattributes,andBayesianprobabilityestimationsonthesideattributesfortheclusteringprocess.Theideaistoidentifythoseat-tributes,whicharehelpfulfortheclusteringprocess,andusetheminordertoenhancethequalityoftheclustering.However,thisapproachisreallydesignedforgeneralattributesofanykind,ratherthanlink-basedattributes,inwhichanunderlyinggraphstructureisimpliedbythedocument-to-documentlinkages.Inspiteofthis,ithasbeenshownin[1],thatitispossibletosigniﬁcantlyenhancethequalityofclusteringbytreatinglinkageinformationasside-attributes.Manyothertechniques,whichwillbediscussedinthissection,havebeenproposedspeciﬁcallyforthecaseoftextdocuments,whicharelinkedtogetherinanetworkstructure.Theearliestmethodsforcombiningtextandlinkinformationfortheclusteringprocessareproposedin[12].Twodiﬀerentmethodswereproposedinthispaperfortheclusteringprocess.Theﬁrstmethodusesthelinkinformationintheneighborsofanodeinordertobiasthetermweightsinadocument.Termweightswhicharecommonbe-tweenadocumentanditsneighborsaregivenmoreimportanceintheclusteringprocess.Oneadvantageofsuchanapproachisthatwecanuseanyoftheexistingclusteringalgorithmsforthispurpose,becausethelinkinformationisimplicitlyencodedinthemodiﬁedtermweights.Thesecondmethodproposedin[12]isagraph-basedapproachwhichdirectlyusesthelinksintheclusteringprocess.Inthiscase,theap-proachattemptstomodeltheprobabilitythataparticulardocumentbelongstoagivenclusterforaparticularsetoflinksandcontent.Thisisessentiallyasoft-clustering,inwhichaprobabilityofassignmentisdeterminedforeachcluster.Theclusterwiththelargestprobabilityofassignmentisconsideredthemostrelevantcluster.AMarkovRandomField(MRF)techniqueisusedinordertoperformtheclustering.AniterativetechniquecalledrelaxationlabelingisusedinordertocomputethemaximumlikelihoodparametersofthisMRF.Moredetailsofthisapproachmaybefoundin[12].Arecentmethodtoperformclusteringwithbothstructuralandat-tributesimilaritiesisproposedin[113].Thetechniquesofthispapercanbeappliedtobothrelationalandtextattributes.Thispaperintegratesstructuralandattribute-basedclusteringbyaddingattributeverticestothenetworkinadditiontotheoriginalstructuralvertices.Inthecontextoftextdata,thisimpliesthatavertexexistsforeachwordinthelexi-ASurveyofTextClusteringAlgorithms117con.Therefore,inadditiontotheoriginalsetofverticesVinthegraphG=(V,E),wenowhavetheaugmentedvertexsetV∪V1,suchthatV1containsonevertexforeachnodes.Wealsoaugmenttheedgeset,inordertoaddtotheoriginalsetofstructuraledgesE.Weaddanedgebetweenastructuralvertexi∈Vandanattributevertexj∈V1,ifwordjiscontainedinthenodei.ThisnewsetofedgesaddedisdenotedbyE1.Therefore,wenowhaveanaugmentedgraphG1=(V∪V1,E∪E1)whichissemi-bipartite.Aneighborhoodrandomwalkmodelisusedinordertodeterminetheclosenessofvertices.Thisclosenessmeasureisusedinordertoperformtheclustering.Themainchallengeinthealgo-rithmistodeterminetherelativeimportanceofstructuralandattributecomponentsintheclusteringprocess.Inthecontextoftherandomwalkmodel,thistranslatestodeterminingtheappropriateweightsofdiﬀer-entedgesduringtherandomwalkprocess.Alearningmodelhasbeenproposedin[113]inordertolearntheseweights,andleveragethemforaneﬀectiveclusteringprocess.Theproblemofclusteringnetworkcontentisoftenencounteredinthecontextofcommunitydetectioninsocialnetworks.Thetextcontentinthesocialnetworkgraphmaybeattachedtoeitherthenodes[101]ofthenetwork,ortotheedges[74].Thenode-basedapproachisgenerallymorecommon,andmostoftheafore-mentionedtechniquesinthispapercanbemodeledintermsofcontentattachedtothenodes.Inthemethodproposedin[101],thefollowinglink-basedandcontent-basedstepsarecombinedforeﬀectivecommunitydetection:Aconditionalmodelisproposedforlinkanalysis,inwhichtheconditionalprobabilityforthedestinationofgivenlinkismodeled.Ahiddenvariableisintroducedinordertocapturethepopularityofanodeintermsofthelikelihoodofthatnodebeingcitedbyothernodes.Adiscriminativecontentmodelisintroducedinordertoreducetheimpactofnoisycontentattributes.Inthismodel,theattributesareweighedbytheirabilitytodiscriminatebetweenthediﬀerentcommunities.Thetwomodelsarecombinedintoauniﬁedframeworkwiththeuseofatwo-stageoptimizationalgorithmformaximumlikelihoodinference.Oneinterestingcharacteristicofthisbroadframeworkisthatitcanalsobeusedinthecontextofothercomplementaryapproaches.Thedetailsofthealgorithmarediscussedin[101].118MININGTEXTDATAForthecaseofedge-basedcommunitydetection,itisassumedthatthetextcontentinthenetworkisattachedtotheedges[74].Thisiscommoninapplicationswhichinvolveextensivecommunicationbetweenthediﬀerentnodes.Forexample,inemailnetworks,oronlinechatnet-works,thetextinthenetworkisassociatedwiththecommunicationsbetweenthediﬀerententities.Insuchcases,thetextisassociatedwithanedgeintheunderlyingnetwork.Thepresenceofcontentassociatedwithedgesallowsforamuchmorenuancedapproachincommunityde-tection,becauseagivennodemayparticipateincommunitiesofdiﬀerentkinds.Thepresenceofcontentassociatedwithedgeshelpsinseparat-ingoutthesediﬀerentassociationsofthesameindividualtodiﬀerentcommunities.Theworkin[74]usesamatrix-factorizationmethodologyinordertojointlymodelthecontentandstructureforthecommunitydetectionprocess.Thematrixfactorizationmethodisusedtotransformtherepresentationintomulti-dimensionalrepresentation,whichcanbeeasilyclusteredbyasimplealgorithmsuchasthek-meansalgorithm.Itwasshownin[74],thattheuseofsuchanapproachcanprovidemuchmoreeﬀectiveresultsthanapurecontent-orlink-basedclusteringmethodology.Acloselyrelatedareatoclusteringisthatoftopicmodeling,inwhichweattempttomodeltheprobabilityofadocumentbelongingtoapartic-ularcluster.Anaturalapproachtonetwork-basedtopicmodelingistoaddanetwork-basedregularizationconstrainttotraditionaltopicmod-elssuchasNetPLSA[65].Therelationaltopicmodel(RTM)proposedin[23]triestomodelthegenerationofdocumentsandlinkssequentially.TheﬁrststepforgeneratingthedocumentsisthesameasLDA.Sub-sequently,themodelpredictslinksbasedonthesimilarityofthetopicmixtureusedintwodocuments.Thus,thismethodcanbeusedbothfortopicmodelingandpredictingmissinglinks.AmoreuniﬁedmodelisproposedintheiTopicModel[91]frameworkwhichcreatesaMarkovRandomFieldmodelinordertocreateagenerativemodelwhichsi-multaneouslycapturesbothtextandlinks.Experimentalresultshaveshownthisapproachtobemoregeneralandsuperiortopreviouslyex-istingmethods.Anumberofothermethodsforincorporatingnetworkinformationintotopicmodelingarediscussedinthenextchapterondimensionalityreduction.8.Semi-SupervisedClusteringInsomeapplications,priorknowledgemaybeavailableaboutthekindsofclustersthatareavailableintheunderlyingdata.Thispriorknowledgemaytakeontheformoflabelsattachedwiththedocuments,ASurveyofTextClusteringAlgorithms119whichindicateitsunderlyingtopic.Forexample,ifwewishtousethebroaddistributionoftopicsintheYahoo!taxonomyinordertosupervisetheclusteringprocessofanewwebcollection,onewaytoperformingsupervisionwouldbeaddsomelabeledpagesfromtheYahoo!taxonomytothecollection.Typicallysuchpageswouldcontainlabelsoftheform@Science@Astronomyor@Arts@Painting,whichindicatethesubjectareaoftheaddedpages.Suchknowledgecanbeveryusefulincreatingsigniﬁcantlymorecoherentclusters,especiallywhenthetotalnumberofclustersislarge.Theprocessofusingsuchlabelstoguidetheclusteringprocessisreferredtoassemi-supervisedclustering.Thisformoflearningisabridgebetweentheclusteringandclassiﬁcationproblem,becauseitusestheunderlyingclassstructure,butitisnotcompletelytieddownbythespeciﬁcstructure.Asaresult,suchanapproachﬁndsapplicabilitybothtotheclusteringandclassiﬁcationscenarios.Themostnaturalmethodforincorporatingsupervisionintotheclus-teringprocessistodosoinpartitionalclusteringmethodssuchask-means.Thisisbecausethesupervisioncanbeeasilyincorporatedbychangingtheseedsintheclusteringprocess.Forexample,theworkin[4]usestheinitialseedsinthek-meansclusteringprocessasthecentroidsoftheoriginalclassesintheunderlyingdata.Asimilarapproachhasalsobeenusedin[15],exceptawidervariationofhowtheseedsmaybeselectedhasbeenexplored.Anumberofprobabilisticframeworkshavealsobeendesignedforsemi-supervisedclustering[72,14].Theworkin[72]usesaniterativeEM-approachinwhichtheunlabeleddocumentsareassignedlabelsus-inganaiveBayesapproachonthecurrentlylabeleddocuments.Thesenewlylabeleddocumentsarethenagainusedforre-trainingaBayesclassiﬁer.Thisprocessisiteratedtoconvergence.Theiterativelabelingapproachin[72]canbeconsideredapartiallysupervisedapproachforclusteringtheunlabeleddocuments.Theworkin[14]usesaHeteroge-neousMarkovRandomField(HMRF)modelfortheclusteringprocess.Agraph-basedmethodforincorporatingpriorknowledgeintotheclus-teringprocesshasbeenproposedin[52].Inthismethod,thedocumentsaremodeledasagraph,inwhichnodesrepresentdocumentsandedgesrepresentthesimilarityamongthem.Newedgesmayalsobeaddedtothisgraph,whichcorrespondtothepriorknowledge.Speciﬁcally,anedgeisaddedtothegraph,whenitisknownonthebasisofpriorknowledgethatthesetwodocumentsaresimilar.Anormalizedcutal-gorithm[84]isthenappliedtothisgraphinordertocreatetheﬁnalclustering.Thisapproachimplicitlyusesthepriorknowledgebecauseoftheaugmentedgraphrepresentationwhichisusedfortheclustering.120MININGTEXTDATASincesemi-supervisedclusteringformsanaturalbridgebetweentheclusteringandclassiﬁcationproblems,itisnaturalthatsemi-supervisedmethodscanbeusedforclassiﬁcationaswell[68].Thisisalsoreferredtoasco-training,becauseitinvolvestheuseofunsuperviseddocumentclusteringinordertoassistthetrainingprocess.Sincesemi-supervisedmethodsuseboththeclusteringstructureinthefeaturespaceandtheclassinformation,theyaresometimesmorerobustinclassiﬁcationsce-narios,especiallyincaseswheretheamountofavailablelabeleddataissmall.Ithasbeenshownin[72],howapartiallysupervisedco-trainingapproachwhichmixessupervisedandunsuperviseddatamayyieldmoreeﬀectiveclassiﬁcationresults,whentheamountoftrainingdataavail-ableissmall.Theworkin[72]usesapartiallysupervisedEM-algorithmwhichiterativelyassignslabelstotheunlabeleddocumentsandreﬁnesthemovertimeasconvergenceisachieved.Anumberofsimilarmethodsalongthisspiritareproposedin[4,14,35,47,89]withvaryinglevelsofsupervisionintheclusteringprocess.Partiallysupervisedclusteringmethodsarealsousedfeaturetransformationinclassiﬁcationusingthemethodsasdiscussedin[17,18,88].Theideaisthattheclusteringstructureprovidesacompressedfeaturespace,whichcapturetherele-vantclassiﬁcationstructureverywell,andcanthereforebehelpfulforclassiﬁcation.Partiallysupervisedmethodscanalsobeusedinconjunctionwithpre-existingcategoricalhierarchies(orprototypehierarchies)[4,56,67].AtypicalexampleofaprototypehierarchywouldbetheYahoo!taxonomy,theOpenDirectoryProject,ortheReuterscollection.Theideaisthatsuchhierarchiesprovideagoodgeneralideaoftheclusteringstructure,butalsohaveconsiderablenoiseandoverlapsinthembecauseoftheirtypicalmanualorigins.Thepartialsupervisionisabletocorrectthenoiseandoverlaps,andthisresultsinarelativelycleanandcoherentclusteringstructure.Anunusualkindofsupervisionfordocumentclusteringisthemethodofuseofauniversumofdocumentswhichareknownnottobelongtoacluster[106].Thisisessentially,thebackgrounddistributionwhichcannotbenaturallyclusteredintoanyparticulargroup.Theintuitionisthattheuniversumofexamplesprovideaneﬀectivewayofavoidingmistakesintheclusteringprocess,sinceitprovidesabackgroundofexamplestocompareaclusterwith.9.ConclusionsandSummaryInthischapter,wepresentedasurveyofclusteringalgorithmsfortextdata.AgoodclusteringoftextrequireseﬀectivefeatureselectionandaASurveyofTextClusteringAlgorithms121properchoiceofthealgorithmforthetaskathand.Amongthediﬀerentclassesofalgorithms,thedistance-basedmethodsareamongthemostpopularinawidevarietyofapplications.Inrecentyears,themaintrendinresearchinthisareahasbeeninthecontextoftwokindsoftextdata:DynamicApplications:Thelargeamountsoftextdatabeingcreatedbydynamicapplicationssuchassocialnetworksoronlinechatapplicationshascreatedanimmenseneedforstreamingtextclusteringapplications.Suchstreamingapplicationsneedtobeapplicableinthecaseoftextwhichisnotveryclean,asisoftenthecaseforapplicationssuchassocialnetworks.HeterogeneousApplications:Textapplicationsincreasinglyariseinheterogeneousapplicationsinwhichthetextisavailableinthecontextoflinks,andotherheterogeneousmultimediadata.Forexample,insocialnetworkssuchasFlickrtheclusteringoftenneedstobeappliedinsuchscenario.Therefore,itiscriticaltoef-fectivelyadapttext-basedalgorithmstoheterogeneousmultimediascenarios.Wenotethattheﬁeldoftextclusteringistoovasttocovercomprehen-sivelyinasinglechapter.Somemethodssuchascommittee-basedclus-tering[73]cannotevenbeneatlyincorporatedintoanyclassofmethods,sincetheyuseacombinationofthediﬀerentclusteringmethodsinordertocreateaﬁnalclusteringresult.Themainpurposeofthischapteristoprovideacomprehensiveoverviewofthemainalgorithmswhichareoftenusedinthearea,asastartingpointforfurtherstudy.References[1]C.C.Aggarwal,Y.Zhao,P.S.Yu.OnTextClusteringwithSideInformation,ICDEConference,2012.[2]C.C.Aggarwal,P.S.Yu.OnEﬀectiveConceptualIndexingandSimilaritySearchinText,ICDMConference,2001.[3]C.C.Aggarwal,P.S.Yu.AFrameworkforClusteringMassiveTextandCategoricalDataStreams,SIAMConferenceonDataMining,2006.[4]C.C.Aggarwal,S.C.Gates,P.S.Yu.OnUsingPartialSupervi-sionforTextCategorization,IEEETransactionsonKnowledgeandDataEngineering,16(2),245–255,2004.[5]C.C.Aggarwal,C.Procopiuc,J.Wolf,P.S.Yu,J.-S.Park.FastAlgorithmsforProjectedClustering,ACMSIGMODConference,1999.122MININGTEXTDATA[6]C.C.Aggarwal,P.S.Yu.FindingGeneralizedProjectedClustersinHighDimensionalSpaces,ACMSIGMODConference,2000.[7]R.Agrawal,J.Gehrke,P.Raghavan.D.Gunopulos.AutomaticSubspaceClusteringofHighDimensionalDataforDataMiningApplications,ACMSIGMODConference,1999.[8]R.Agrawal,R.Srikant.FastAlgorithmsforMiningAssociationRulesinLargeDatabases,VLDBConference,1994.[9]J.Allan,R.Papka,V.Lavrenko.Onlineneweventdetectionandtracking.ACMSIGIRConference,1998.[10]P.Andritsos,P.Tsaparas,R.Miller,K.Sevcik.LIMBO:ScalableClusteringofCategoricalData.EDBTConference,2004.[11]P.Anick,S.Vaithyanathan.ExploitingClusteringandPhrasesforContext-BasedInformationRetrieval.ACMSIGIRConference,1997.[12]R.Angelova,S.Siersdorfer.Aneighborhood-basedapproachforclusteringoflinkeddocumentcollections.CIKMConference,2006.[13]R.A.Baeza-Yates,B.A.Ribeiro-Neto,ModernInformationRe-trieval-theconceptsandtechnologybehindsearch,Secondedition,PearsonEducationLtd.,Harlow,England,2011.[14]S.Basu,M.Bilenko,R.J.Mooney.Aprobabilisticframeworkforsemi-supervisedclustering.ACMKDDConference,2004.[15]S.Basu,A.Banerjee,R.J.Mooney.Semi-supervisedClusteringbySeeding.ICMLConference,2002.[16]F.Beil,M.Ester,X.Xu.Frequentterm-basedtextclustering,ACMKDDConference,2002.[17]L.Baker,A.McCallum.DistributionalClusteringofWordsforTextClassiﬁcation,ACMSIGIRConference,1998.[18]R.Bekkerman,R.El-Yaniv,Y.Winter,N.Tishby.OnFeatureDis-tributionalClusteringforTextCategorization.ACMSIGIRCon-ference,2001.[19]D.Blei,J.Laﬀerty.Dynamictopicmodels.ICMLConference,2006.[20]D.Blei,A.Ng,M.Jordan.LatentDirichletallocation,JournalofMachineLearningResearch,3:pp.993–1022,2003.[21]P.F.Brown,P.V.deSouza,R.L.Mercer,V.J.DellaPietra,andJ/C.Lai.Class-basedn-grammodelsofnaturallanguage,Compu-tationalLinguistics,18,4(December1992),467-479.[22]K.Chakrabarti,S.Mehrotra.LocalDimensionreduction:AnewApproachtoIndexingHighDimensionalSpaces,VLDBConference,2000.ASurveyofTextClusteringAlgorithms123[23]J.Chang,D.Blei.TopicModelsforDocumentNetworks.AISTA-SIS,2009.[24]W.B.Croft.Clusteringlargeﬁlesofdocumentsusingthesingle-linkmethod.JournaloftheAmericanSocietyofInformationScience,28:pp.341–344,1977.[25]D.Cutting,D.Karger,J.Pedersen,J.Tukey.Scatter/Gather:ACluster-basedApproachtoBrowsingLargeDocumentCollections.ACMSIGIRConference,1992.[26]D.Cutting,D.Karger,J.Pederson.ConstantInteraction-timeScat-ter/GatherBrowsingofLargeDocumentCollections,ACMSIGIRConference,1993.[27]M.Dash,H.Liu.FeatureSelectionforClustering,PAKDDConfer-ence,pp.110–121,1997.[28]S.Deerwester,S.Dumais,T.Landauer,G.Furnas,R.Harshman.IndexingbyLatentSemanticAnalysis.JASIS,41(6),pp.391–407,1990.[29]I.Dhillon,D.Modha.ConceptDecompositionsforLargeSparseDatausingClustering,42(1),pp.143–175,2001.[30]I.Dhillon.Co-clusteringDocumentsandWordsusingbipartitespectralgraphpartitioning,ACMKDDConference,2001.[31]I.Dhillon,S.Mallela,D.Modha.Information-theoreticCo-Clustering,ACMKDDConference,2003.[32]C.Ding,X.He,H.Zha,H.D.Simon.AdaptiveDimensionRe-ductionforClusteringHighDimensionalData,ICDMConference,2002.[33]C.Ding,X.He,H.Simon.Ontheequivalenceofnonnegativematrixfactorizationandspectralclustering.SDMConference,2005.[34]B.Dorow,D.Widdows.Discoveringcorpus-speciﬁcwordsenses,ProceedingsofthetenthconferenceonEuropeanchapteroftheAs-sociationforComputationalLinguistics-Volume2(EACL’03),pages79-82,2003.[35]R.El-Yaniv,O.Souroujon.IterativeDoubleClusteringforUnsu-pervisedandSemi-supervisedLearning.NIPSConference,2002.[36]H.Fang,T.Tao,C.Zhai,Aformalstudyofinformationretrievalheuristics,ProceedingsofACMSIGIR2004,2004.[37]D.Fisher.KnowledgeAcquisitionviaincrementalconceptualclus-tering.MachineLearning,2:pp.139–172,1987.[38]M.Franz,T.Ward,J.McCarley,W.-J.Zhu.Unsupervisedandsupervisedclusteringfortopictracking.ACMSIGIRConference,2001.124MININGTEXTDATA[39]G.P.C.Fung,J.X.Yu,P.Yu,H.Lu.ParameterFreeBurstyEventsDetectioninTextStreams,VLDBConference,2005.[40]J.H.Gennari,P.Langley,D.Fisher.Modelsofincrementalconceptformation.JournalofArtiﬁcialIntelligence,40pp.11–61,1989.[41]D.Gibson,J.Kleinberg,P.Raghavan.ClusteringCategoricalData:AnApproachBasedonDynamicalSystems,VLDBConference,1998.[42]M.Girolami,AKaban.OntheEquivalancebetweenPLSIandLDA,SIGIRConference,pp.433–434,2003.[43]S.Guha,R.Rastogi,K.Shim.ROCK:arobustclusteringalgo-rithmforcategoricalattributes,InternationalConferenceonDataEngineering,1999.[44]S.Guha,R.Rastogi,K.Shim.CURE:AnEﬃcientClusteringAl-gorithmforLargeDatabases.ACMSIGMODConference,1998.[45]D.Gusﬁeld.Algorithmsforstrings,treesandsequences,CambridgeUniversityPress,1997.[46]Y.Huang,T.Mitchell.Textclusteringwithextendeduserfeedback.ACMSIGIRConference,2006.[47]H.Li,K.Yamanishi.Documentclassiﬁcationusingaﬁnitemix-turemodel.AnnualMeetingoftheAssociationforComputationalLinguistics,1997.[48]Q.He,K.Chang,E.-P.Lim,J.Zhang.Burstyfeaturerepresentationforclusteringtextstreams.SDMConference,2007.[49]T.Hofmann.ProbabilisticLatentSemanticIndexing.ACMSIGIRConference,1999.[50]A.Jain,R.C.Dubes.AlgorithmsforClusteringData,PrenticeHall,EnglewoodCliﬀs,NJ,1998.[51]N.Jardine,C.J.vanRijsbergen.Theuseofhierarchicalclusteringininformationretrieval,InformationStorageandRetrieval,7:pp.217–240,1971.[52]X.Ji,W.Xu.Documentclusteringwithpriorknowledge.ACMSIGIRConference,2006.[53]I.T.Jolliﬀee.PrincipalComponentAnalysis.Springer,2002.[54]L.Kaufman,P.J.Rousseeuw.FindingGroupsinData:AnIntro-ductiontoClusterAnalysis,WileyInterscience,1990.[55]W.Ke,C.Sugimoto,J.Mostafa.Dynamicityvs.eﬀectiveness:studyingonlineclusteringforscatter/gather.ACMSIGIRConfer-ence,2009.ASurveyofTextClusteringAlgorithms125[56]H.Kim,S.Lee.ASemi-superviseddocumentclusteringtechniqueforinformationorganization,CIKMConference,2000.[57]J.Kleinberg,Burstyandhierarchicalstructureinstreams,ACMKDDConference,pp.91–101,2002.[58]D.D.Lee,H.S.Seung.Learningthepartsofobjectsbynon-negativematrixfactorization,Nature,401:pp.788–791,1999.[59]T.Li,S.Ma,M.Ogihara,DocumentClusteringviaAdaptiveSub-spaceIteration,ACMSIGIRConference,2004.[60]T.Li,C.Ding,Y.Zhang,B.Shao.Knowledgetransformationfromwordspacetodocumentspace.ACMSIGIRConference,2008.[61]Y.-B.Liu,J.-R.Cai,J.Yin,A.W.-C.Fu.ClusteringTextDataStreams,JournalofComputerScienceandTechnology,Vol.23(1),pp.112–128,2008.[62]T.Liu,S.Lin,Z.Chen,W.-Y.Ma.AnEvaluationonFeatureSe-lectionforTextClustering,ICMLConference,2003.[63]Y.Lu,Q.Mei,C.Zhai.Investigatingtaskperformanceofprobabilis-tictopicmodels:anempiricalstudyofPLSAandLDA,InformationRetrieval,14(2):178-203(2011).[64]A.McCallum.Bow:Atoolkitforstatisticallanguagemodeling,textretrieval,classiﬁcationandclustering.http://www.cs.cmu.edu/~mccallum/bow,1996.[65]Q.Mei,D.Cai,D.Zhang,C.-X.Zhai.TopicModelingwithNetworkRegularization.WWWConference,2008.[66]D.Metzler,S.T.Dumais,C.Meek,SimilarityMeasuresforShortSegmentsofText,ProceedingsofECIR2007,2007.[67]Z.Ming,K.Wang,T.-S.Chua.Prototypehierarchy-basedcluster-ingforthecategorizationandnavigationofwebcollections.ACMSIGIRConference,2010.[68]T.M.Mitchell.Theroleofunlabeleddatainsupervisedlearning.ProceedingsoftheSixthInternationalColloquiumonCognitiveSci-ence,1999.[69]F.Murtagh.ASurveyofRecentAdvancesinHierarchicalCluster-ingAlgorithms,TheComputerJournal,26(4),pp.354–359,1983.[70]F.Murtagh.ComplexitiesofHierarchicalClusteringAlgorithms:StateoftheArt,ComputationalStatisticsQuarterly,1(2),pp.101–113,1984.[71]R.Ng,J.Han.EﬃcientandEﬀectiveClusteringMethodsforSpatialDataMining.VLDBConference,1994.126MININGTEXTDATA[72]K.Nigam,A.McCallum,S.Thrun,T.Mitchell.Learningtoclas-sifytextfromlabeledandunlabeleddocuments.AAAIConference,1998.[73]P.Pantel,D.Lin.DocumentClusteringwithCommittees,ACMSIGIRConference,2002.[74]G.Qi,C.Aggarwal,T.Huang.CommunityDetectionwithEdgeContentinSocialMediaNetworks,ICDEConference,2012.[75]M.Rege,M.Dong,F.Fotouhi.Co-clusteringDocumentsandWordsUsingBipartiteIsoperimetricGraphPartitioning.ICDMConfer-ence,pp.532–541,2006.[76]C.J.vanRijsbergen.InformationRetrieval,Butterworths,1975.[77]C.J.vanRijsbergen,W.B.Croft.DocumentClustering:AnEval-uationofsomeexperimentswiththeCranﬁeld1400collection,In-formationProcessingandManagement,11,pp.171–182,1975.[78]S.E.RobertsonandS.Walker.Somesimpleeﬀectiveapproxima-tionstothe2-poissonmodelforprobabilisticweightedretrieval.InSIGIR,pages232–241,1994.[79]M.Sahami,T.D.Heilman,Aweb-basedkernelfunctionformea-suringthesimilarityofshorttextsnippets,ProceedingsofWWW2006,pages377-386,2006.[80]N.Sahoo,J.Callan,R.Krishnan,G.Duncan,R.Padman.Incre-mentalHierarchicalClusteringofTextDocuments,ACMCIKMConference,2006.[81]G.Salton.AnIntroductiontoModernInformationRetrieval,McGrawHill,1983.[82]G.Salton,C.Buckley.TermWeightingApproachesinAutomaticTextRetrieval,InformationProcessingandManagement,24(5),pp.513–523,1988.[83]H.Schutze,C.Silverstein.ProjectionsforEﬃcientDocumentClus-tering,ACMSIGIRConference,1997.[84]J.Shi,J.Malik.Normalizedcutsandimagesegmentation.IEEETransactiononPatternAnalysisandMachineIntelligence,2000.[85]C.Silverstein,J.Pedersen.Almost-constanttimeclusteringofar-bitrarycorpussubsets.ACMSIGIRConference,pp.60–66,1997.[86]A.Singhal,C.Buckley,M.Mitra.PivotedDocumentLengthNor-malization.ACMSIGIRConference,pp.21–29,1996.[87]N.Slonim,N.Tishby.DocumentClusteringusingwordclustersviatheinformationbottleneckmethod,ACMSIGIRConference,2000.ASurveyofTextClusteringAlgorithms127[88]N.Slonim,N.Tishby.Thepowerofwordclustersfortextclassi-ﬁcation.EuropeanColloquiumonInformationRetrievalResearch(ECIR),2001.[89]N.Slonim,N.Friedman,N.Tishby.Unsuperviseddocumentclas-siﬁcationusingsequentialinformationmaximization.ACMSIGIRConference,2002.[90]M.Steinbach,G.Karypis,V.Kumar.AComparisonofDocumentClusteringTechniques,KDDWorkshopontextmining,2000.[91]Y.Sun,J.Han,J.Gao,Y.Yu.iTopicModel:InformationNetworkIntegratedTopicModeling,ICDMConference,2009.[92]E.M.Voorhees.ImplementingAgglomerativeHierarchicalCluster-ingforuseinInformationRetrieval,TechnicalReportTR86–765,CornellUniversity,Ithaca,NY,July1986.[93]F.Wang,C.Zhang,T.Li.Regularizedclusteringfordocuments.ACMSIGIRConference,2007.[94]J.Wilbur,K.Sirotkin.Theautomaticidentiﬁcationofstopwords,J.Inf.Sci.,18:pp.45–55,1992.[95]P.Willett.DocumentClusteringusinganinvertedﬁleapproach.JournalofInformationSciences,2:pp.223–231,1980.[96]P.Willett.RecentTrendsinHierarchicalDocumentClustering:ACriticalReview.InformationProcessingandManagement,24(5):pp.577–597,1988.[97]W.Xu,X.Liu,Y.Gong.DocumentClusteringbasedonnon-negativematrixfactorization,ACMSIGIRConference,2003.[98]W.Xu,Y.Gong.Documentclusteringbyconceptfactorization.ACMSIGIRConference,2004.[99]Y.Yang,J.O.Pederson.Acomparativestudyonfeatureselectionintextcategorization,ACMSIGIRConference,1995.[100]Y.Yang.NoiseReductioninaStatisticalApproachtoTextCat-egorization,ACMSIGIRConference,1995.[101]T.Yang,R.Jin,Y.Chi,S.Zhu.Combininglinkandcontentforcommunitydetection:adiscriminativeapproach.ACMKDDCon-ference,2009.[102]L.Yao,D.Mimno,A.McCallum.Eﬃcientmethodsfortopicmodelinferenceonstreamingdocumentcollections,ACMKDDConfer-ence,2009.[103]O.Zamir,O.Etzioni.WebDocumentClustering:AFeasibilityDemonstration,ACMSIGIRConference,1998.128MININGTEXTDATA[104]O.Zamir,O.Etzioni,O.Madani,R.M.Karp.FastandIntuitiveClusteringofWebDocuments,ACMKDDConference,1997.[105]C.Zhai,StatisticalLanguageModelsforInformationRetrieval(SynthesisLecturesonHumanLanguageTechnologies),Morgan&ClaypoolPublishers,2008.[106]D.Zhang,J.Wang,L.Si.Documentclusteringwithuniversum.ACMSIGIRConference,2011.[107]J.Zhang,Z.Ghahramani,Y.Yang.Aprobabilisticmodelforon-linedocumentclusteringwithapplicationtonoveltydetection.InSaulL.,WeissY.,BottouL.(eds)AdvancesinNeuralInformationProcessingLetters,17,2005.[108]T.Zhang,R.Ramakrishnan,M.Livny.BIRCH:AnEﬃcientDataClusteringMethodforVeryLargeDatabases.ACMSIGMODCon-ference,1996.[109]X.Zhang,X.Hu,X.Zhou.Acomparativeevaluationofdiﬀerentlinktypesonenhancingdocumentclustering.ACMSIGIRConfer-ence,2008.[110]Y.Zhao,G.Karypis.Evaluationofhierarchicalclusteringalgo-rithmsfordocumentdataset,CIKMConference,2002.[111]Y.Zhao,G.Karypis.EmpiricalandTheoreticalcomparisonsofse-lectedcriterionfunctionsfordocumentclustering,MachineLearn-ing,55(3),pp.311–331,2004.[112]S.Zhong.EﬃcientStreamingTextClustering.NeuralNetworks,Volume18,Issue5–6,2005.[113]Y.Zhou,H.Cheng,J.X.Yu.GraphClusteringbasedonStruc-tural/AttributeSimilarities,VLDBConference,2009.[114]http://www.lemurproject.org/C.C. Aggarwal and C.X. Zhai (eds.), Mining Text Data, DOI 10.1007/978-1-4614-3223-4_5,

Chapter5DIMENSIONALITYREDUCTIONANDTOPICMODELING:FROMLATENTSEMANTICINDEXINGTOLATENTDIRICHLETALLOCATIONANDBEYONDStevenP.CrainSchoolofComputationalScienceandEngineeringCollegeofComputingGeorgiaInstituteofTechnologys.crain@gatech.eduKeZhouSchoolofComputationalScienceandEngineeringCollegeofComputingGeorgiaInstituteofTechnologykzhou@gatech.eduShuang-HongYangSchoolofComputationalScienceandEngineeringCollegeofComputingGeorgiaInstituteofTechnologyshy@gatech.eduHongyuanZhaSchoolofComputationalScienceandEngineeringCollegeofComputingGeorgiaInstituteofTechnologyzha@cc.gatech.edu© Springer Science+Business Media, LLC 2012 129 
 
130MININGTEXTDATAAbstractThebag-of-wordsrepresentationcommonlyusedintextanalysiscanbeanalyzedveryeﬃcientlyandretainsagreatdealofusefulinformation,butitisalsotroublesomebecausethesamethoughtcanbeexpressedus-ingmanydiﬀerenttermsoronetermcanhaveverydiﬀerentmeanings.Dimensionreductioncancollapsetogethertermsthathavethesamesemantics,toidentifyanddisambiguatetermswithmultiplemeaningsandtoprovidealower-dimensionalrepresentationofdocumentsthatreﬂectsconceptsinsteadofrawterms.Inthischapter,wesurveytwoinﬂuentialformsofdimensionreduction.Latentsemanticindexingusesspectraldecompositiontoidentifyalower-dimensionalrepresentationthatmaintainssemanticpropertiesofthedocuments.Topicmodeling,includingprobabilisticlatentsemanticindexingandlatentDirichletal-location,isaformofdimensionreductionthatusesaprobabilisticmodeltoﬁndtheco-occurrencepatternsoftermsthatcorrespondtosemantictopicsinacollectionofdocuments.Wedescribethebasictechnologiesindetailandexposetheunderlyingmechanism.Wealsodiscussrecentadvancesthathavemadeitpossibletoapplythesetechniquestoverylargeandevolvingtextcollectionsandtoincorporatenetworkstructureorothercontextualinformation.Keywords:Dimensionreduction,Latentsemanticindexing,Topicmodeling,LatentDirichletallocation.1.IntroductionIn1958,LisowskycompletedanindexoftheHebrewscripturestohelpscholarsidentifythemeaningsoftermsthathadlongsincebecomeunfamiliar[42].Throughatediousmanualprocess,hecollectedtogetherallofthecontextsinwhicheverytermoccurred.Ashedidthis,heneededtosuppressdiﬀerencesinwordformthatwerenotsigniﬁcantwhilepreservingdiﬀerencesthatmightaﬀectthesemantics.Hehopedbythisundertakingtoenableotherresearcherstoanalyzethediﬀerentpassagesandunderstandthesemanticsofeachtermincontext.Thecoretaskofautomatedtextminingsharesmanyofthesamechal-lengesthatLisowskyfaced.Thesameconceptcanbeexpressedusinganynumberofdiﬀerentterms(synonymy)andconverselytheapparentlysametermcanhaveverydiﬀerentmeaningsindiﬀerentcontexts(pol-ysemy).Automatedtextminingmustleveragecluesfromthecontexttoidentifydiﬀerentwaysofexpressingthesameconceptandtoidentifyanddisambiguatetermsthatarepolysemous.Itmustalsopresentthedatainaformthatenableshumananalyststoidentifythesemanticsinvolvedwhentheyarenotknownapriori.Itiscommontorepresentdocumentsasabagofwords(BOW),ac-countingforthenumberofoccurrencesofeachtermbutignoringtheDimensionalityReductionandTopicModeling131order.Thisrepresentationbalancescomputationaleﬃciencywiththeneedtoretainthedocumentcontent.Italsoresultsinavectorrepresen-tationthatcanbeanalyzedwithtechniquesfromappliedmathematicsandmachinelearning,notablydimensionreduction,atechniquethatisusedtoidentifyalower-dimensionalrepresentationofasetofvectorsthatpreservesimportantproperties.BOWvectorshaveaveryhighdimensionality—eachdimensioncor-respondingtoonetermfromthelanguage.However,forthetaskofanalyzingtheconceptspresentindocuments,alower-dimensionalse-manticspaceisideal—eachdimensioncorrespondingtooneconceptoronetopic.DimensionreductioncanbeappliedtoﬁndthesemanticspaceanditsrelationshiptotheBOWrepresentation.Thenewrepre-sentationinsemanticspacerevealsthetopicalstructureofthecorpusmoreclearlythantheoriginalrepresentation.Twoofthemanydimensionreductiontechniquesthathavebeenap-pliedtotextminingstandout.Latentsemanticindexing,discussedinSection2,usesastandardmatrixfactorizationtechnique(singularvectordecomposition)toﬁndalatentsemanticspace.Topicmodels,ontheotherhand,provideaprobabilisticframeworkforthedimensionreductiontask.WedescribetopicmodelinginSection3,includingprob-abilisticlatentsemanticindexing(PLSI)andlatentDirichletallocation(LDA).InSection4,wedescribethetechniquesthatareusedtointer-pretandevaluatethelatentsemanticspacethatresultsfromdimensionreduction.Manyrecentadvanceshavemadeitpossibletoapplydi-mensionreductionandtopicmodelingtolargeanddynamicdatasets.Otheradvancesincorporatenetworkstructureslikesocialnetworksorothercontextualinformation.WehighlighttheseextensionsinSection5beforeconcludinginSection6.1.1TheRelationshipBetweenClustering,DimensionReductionandTopicModelingClustering,dimensionreductionandtopicmodelinghaveinterestingrelationships.Fortextmining,thesetechniquesrepresentdocumentsinanewwaythatrevealstheirinternalstructureandinterrelations,yettherearesubtledistinctions.Clusteringusesinformationonthesimilar-ity(ordissimilarity)betweendocumentstoplacedocumentsintonaturalgroupings,sothatsimilardocumentsareinthesamecluster.Softclus-teringassociateseachdocumentwithmultipleclusters.Byviewingeachclusterasadimension,clusteringinducesalow-dimensionalrepresenta-tionfordocuments.However,itisoftendiﬃculttocharacterizeacluster132MININGTEXTDATAintermsofmeaningfulfeaturesbecausetheclusteringisindependentofthedocumentrepresentation,giventhecomputedsimilarity.Ontheotherhand,dimensionreductionstartswithafeaturerepre-sentationofdocuments(typicallyaBOWmodel)andlooksforalower-dimensionalrepresentationthatisfaithfultotheoriginalrepresentation.Althoughthisclosecouplingwiththeoriginalfeaturesresultsinamorecoherentrepresentationthatmaintainsmoreoftheoriginalinformationthanclustering,interpretationofthecompresseddimensionsisstilldif-ﬁcult.Speciﬁcally,eachnewdimensionisusuallyafunctionofalltheoriginalfeatures,sothatgenerallyadocumentcanonlybefullyunder-stoodbyconsideringallofthedimensionstogether.Topicmodelingessentiallyintegratessoftclusteringwithdimensionreduction.Documentsareassociatedwithanumberoflatenttopics,whichcorrespondtobothdocumentclustersandcompactrepresenta-tionsidentiﬁedfromacorpus.Eachdocumentisassignedtothetopicswithdiﬀerentweights,whichspecifyboththedegreeofmembershipintheclustersaswellasthecoordinatesofthedocumentinthereduceddimensionspace.Theoriginalfeaturerepresentationplaysakeyroleindeﬁningthetopicsandinidentifyingwhichtopicsarepresentineachdocument.Theresultisanunderstandablerepresentationofdocumentsthatisusefulforanalyzingthethemesindocuments.1.2NotationandConceptsDocuments.Weusethefollowingnotationtoconsistentlydescribethedocumentsusedfortrainingorevaluation.DisacorpusofMdocuments,indexedbyd.ThereareWdistincttermsinthevocabulary,indexedbyv.Theterm-documentmatrixXisaW×Mmatrixencodingtheoccurrencesofeachtermineachdocument.TheLDAmodelhasKtopics,indexedbyi.ThenumberoftokensinanysetisgivenbyN,withasubscripttospecifytheset.Forexample,Niisthenumberoftokensassignedtotopici.Abarindicatessetcomplement,asforexample¯zdn≡{zd(cid:2)n(cid:2):d(cid:2)(cid:17)=dorn(cid:2)(cid:17)=n}.Multinomialdistribution.Acommonlyusedprobabilisticmodelfortextsisthemultinomialdistribution,M(X|Ψ)∝W(cid:2)v=1ψxvv,whichcapturestherelativefrequencyoftermsinadocumentandisessentiallyequivalenttotheBOW-vectorwith(cid:9)1-normstandardizationas(cid:4)Wv=1ψv=1.DimensionalityReductionandTopicModeling133Dirichletdistribution.Dirichletdistributionistheconjugatedistributiontomultinomialdistributionandthereforecommonlyusedaspriorformultinomialmodels:D(Ψ|Ξ)=Γ(cid:12)K(cid:4)i=1ξi(cid:13)K(cid:20)i=1Γ(ξi)K(cid:2)i=1ψξi−1i.Thisdistributionsfavorsimbalancedmultinomialdistributions,wheremostoftheprobabilitymassisconcentratedonasmallnumberofvalues.Asaresult,itiswellsuitedformodelsthatreﬂectcommonlyobservedpowerlawdistributionsinhumanlanguage.Generativeprocess.Agenerativeprocessisanalgorithmdescrib-inghowanoutcomewasselected.Forexample,onecoulddescribethegenerativeprocessofrollingadie:onesideisselectedfromamultino-mialdistributionwith1/6probabilityoneachofthesixsides.Fortopicmodeling,arandomgenerativeprocessisvaluableeventhoughchoos-ingthetermsinadocumentisnotrandom,becausetheycapturerealstatisticalcorrelationsbetweentopicsandterms.2.LatentSemanticIndexingLSIisanautomaticindexingmethodthatprojectsbothdocumentsandtermsintoalowdimensionalspacewhich,byintent,representsthesemanticconceptsinthedocument.Byprojectingdocumentsintothesemanticspace,LSIenablestheanalysisofdocumentsataconceptuallevel,purportedlyovercomingthedrawbacksofpurelyterm-basedanal-ysis.Forexample,ininformationretrieval,usersmayusemanydiﬀerentqueriestodescribethesameinformationneed,andlikewise,manyoftherelevantdocumentsmaynotcontaintheexacttermsusedinthepartic-ularquery.Inthiscase,projectingdocumentsintothesemanticspaceenablesthesearchenginetoﬁnddocumentscontainingthesamecon-ceptsbutdiﬀerentterms.Theprojectionalsohelpstoresolvetermsthatareassociatedwithmultipleconcepts.Inthissense,LSIovercomestheissuesofsynonymyandpolysemythatplagueterm-basedinformationretrieval.LSIwasappliedtotextdatainthe1980sandlaterusedforindexingininformationretrievalsystems[23].Ithasalsobeenusedforavarietyoftasks,includingassigningpaperstoreviewers[28]andcross-lingualretrieval.134MININGTEXTDATALSIisbasedonthesingularvaluedecomposition(SVD)oftheterm-documentmatrix,whichconstructsalowrankapproximationoftheoriginalmatrixwhilepreservingthesimilaritybetweenthedocuments.LSIismeanttointerpretthedimensionsofthelow-rankapproximationassemanticconceptsalthoughitissurpassedinthisregardbylaterim-provementssuchasPLSI.Wenowdescribethebasicstepsforperform-ingLSI.Then,wewilldiscusstheimplementationissuesandanalyzetheunderlyingmechanismsforLSI.2.1TheProcedureofLatentSemanticIndexingGiventheterm-documentmatrixXofacorpus,thed-thcolumnXdrepresentsadocumentdinthecorpusandthev-throwofthematrixX,denotedbyTv,representsatermv.Severalpossibilitiesfortheencodingarediscussedintheimplementationissuessection.LetthesingularvaluedecompositionofXbeX=UΣVT,wherethematricesUandVareorthonormalandΣisdiagonal—Σ=⎡⎢⎣σ1...σmin{W,M}⎤⎥⎦.Thevaluesσ1,σ2,...,σmin{W,M}arethesingularvaluesofthematrixX.Withoutlossofgenerality,weassumethatthesingularvaluesarearrangedindescendingorder,σ1≥σ2≥···≥σmin{W,M}.Fordimensionreduction,weapproximatetheterm-documentmatrixXbyarank-KapproximationˆX.ThisisdonewithapartialSVDusingthesingularvectorscorrespondingtotheKlargestsingularvalues.ˆX=ˆUˆΣˆVT=(cid:27)U1...UK(cid:28)⎡⎢⎣σ1...σK⎤⎥⎦⎡⎢⎣VT1...VTK⎤⎥⎦.(5.1)SVDproducestherank-KmatrixˆXthatminimizesthedistancefromXintermsofthespectralnormandtheFrobeniusnorm.AlthoughXistypicallysparse,ˆXisgenerallynotsparse.Thus,ˆXcanbeviewedasasmoothedversionofX,obtainedbypropagatingtheco-occurringtermsinthedocumentcorpus.Thissmoothingeﬀectisachievedbydiscoveringalatentsemanticspaceformedbythedocuments.Speciﬁcally,wecanDimensionalityReductionandTopicModeling135observefromEqn.(5.1)thateachdocumentdcanberepresentedbyaK-dimensionalvectorˆXd,whichisthed-throwofthematrixˆV.TherelationbetweentherepresentationofdocumentdintermspaceXdandthelatentsemanticspaceˆXdisgivenbyXd=ˆUˆΣˆXd.Similarly,eachtermvcanberepresentedbytheK-dimensionalvectorˆTvgivenbyTv=ˆVˆΣˆTv.Thus,LSIprojectsbothtermsanddocumentsintoaK-dimensionallatentsemanticspace.Wecanutilizetheseprojectionsintolatentse-manticspacetoperformseveraltasks.Informationretrieval.Ininformationretrieval,wearegivenaqueryqwhichcontainsseveralkeytermsthatdescribetheinformationneed.Thegoalistoreturndocumentsthatarerelatedtothequery.Inthiscase,wecanviewthequeryasashortdocumentandprojectitintothelatentsemanticspaceusingˆq=ˆΣ−1ˆUTq.Then,thesimilaritybetweenthequeryanddocumentcanbemeasuredinthelatentsemanticspace.Forexample,wecanusetheinnerproductˆVTdˆq.Byusingthesmoothedlatentsemanticspaceforthecomparison,wemitigatetheproblemswithsynonymyandpolysemy.Documentsimilarity.Thesimilaritybetweendocumentdandd(cid:2)canbemeasuredusingtheirrepresentationsinthelatentsemanticspace,forexample,usingtheinnerproductofˆXdandˆXd(cid:2).Thiscanbeusedtoclusterorclassifydocuments.Additionalregularizationmaybenecessarytoresolvethenon-identiﬁabilityoftheSVD[63].Termsimilarity.Analogoustothedocumentsimilarity,termsim-ilaritiescanbemeasuredinthelatentsemanticspace,soastoidentifytermswithsimilarmeanings.2.2ImplementationIssues2.2.1Term-DocumentMatrixRepresentation.LSIuti-lizestheterm-documentmatrixXforadocumentcorpus,whichrep-resentstheoccurrencesoftermsindocuments.Inpractice,theterm-documentmatrixcanbeconstructedinseveralways.Forexample,each136MININGTEXTDATAentryxvdcanrepresentthenumberoftimesthatthetermvoccursindocumentd.However,Zipf’slawshowsthatrealdocumentstendtobebursty—agloballyuncommontermislikelytooccurmultipletimesinadocumentifitoccursatall[19].Asaresult,simplyusingthetermfrequencytendstoexaggeratethecontributionoftheterm.Thisprob-lemcanbedirectlyaddressedbyusingabinaryrepresentation,whichonlyindicateswhetheratermoccursinaparticulardocumentandig-noresitsfrequency.Globalterm-weightmethods,suchastermfrequencyweightedwithinversedocumentfrequency(IDF)[44],provideagoodcompromiseformostdocumentcorpora.BesidestheseBOWrepresen-tations,thelanguagepyramidmodel[70]providesamulti-resolutionmatrixrepresentationfordocuments,encodingnotonlythesemanticinformationoftermoccurrencebutalsothespatialinformationsuchastermproximity,ordering,longdistancedependenceandsoon.2.2.2Computation.LSIreliesonapartialSVDoftheterm-documentmatrix,whichcanbecomputedusingtheLanczosalgorithm[7,30,73].TheLanczosalgorithmisaniterativealgorithmthatcom-putestheeigenvaluesandeigenvectorsofalargeandsparsematrixXusingthematrixvectormultiplication.Thisprocesscanbeacceleratedbyexploitinganyspecialstructureoftheterm-documentmatrix.Forexample,ZhaandZhang[75]provideaneﬃcientalgorithmwhenthema-trixhasalow-rank-plus-shiftstructure,whichariseswhenregularizationisadded.NumerousimplementationsthatusetheLanczosalgorithmareavailable,includingSVDPACK(http://www.netlib.org/svdpack).2.2.3HandlingChanges.Inrealworldapplications,thecorpusoftenchangesrapidly.Asaresult,itisimpracticaltoapplyLSItothecorpuseverytimeadocumentisadded,removedorchanged.Therearetwostrategiesforeﬃcientlyhandlingthesechanges.Fold-in.OnemethodforupdatingLSIiscalledfold-in,wherewecomputetheprojectionofthenewdocumentsandtermsintothelatentsemanticspacebasedontheprojectionfororiginaldocumentsandterms.Inordertofoldinadocumentrepresentedbyvectord∈RWintoaexistinglatentsemanticindexing,wecanprojectthedocumentintothelatentsemanticspacebasedontheSVDdecompositionobtainedfromtheoriginalcorpus.ˆd=ˆΣ−1ˆUTd.Fold-inisveryeﬃcientbecausetheSVDdoesnotneedtoberecomputed.Becausethetermvectordistypicallysparse,thefold-inprocesscanbecomputedinO(KN)time,whereNisthenumberofuniquetermsind.DimensionalityReductionandTopicModeling137Updatingthesemanticspace.Althoughthefold-inprocessiseﬃcientandmaintainsaconsistentindexing,thereisnolongeranyguaranteethattheindexingprovidesthebestrank-Kapproximationofthemodiﬁedcorpus.Overtime,theoutdatedmodelbecomesincreas-inglylessuseful.SeveralmethodsforupdatingtheLSImodelhavebeenproposedthatarebotheﬃcientandaccurate[8,52,74].Forexample,ZhaandSimon[74]provideanupdatingalgorithmbasedonperformingLSIon[ˆXX(cid:2)]insteadof[XX(cid:2)],whereX(cid:2)istheterm-documentmatrixfornewdocuments.Speciﬁcally,thelow-rankapproximateˆXisusedtoreplacethedocument-termmatrixXoftheoriginalcorpus.AssumethattheQRdecompositionofthematrix(I−ˆUˆUT)X(cid:2)is(I−ˆUˆU)X(cid:2)=U(cid:2)R,whereRisatriangularmatrixandˆX=ˆUˆΣˆVisthepartialSVDofthematrixX.Thenwehave[XX(cid:2)]=[ˆUU(cid:2)](cid:29)ˆΣˆUTX0R(cid:30)(cid:29)ˆVT00I(cid:30).Nowwecancomputethebestrank-Kapproximationof(cid:29)ˆΣˆUTX0R(cid:30)bySVD:(cid:29)ˆΣˆUTX0R(cid:30)=ˆPΣ(cid:2)ˆQT.Then,thepartialSVDfor[ˆXX(cid:2)]canbeexpressedas(cid:3)[ˆUU(cid:2)]ˆP(cid:5)Σ(cid:2)(cid:12)(cid:29)ˆV00I(cid:30)ˆQ(cid:13)T,whichprovidesanapproximationofthepartialSVDfor[XX(cid:2)].Athe-oreticalanalysisbyZhaandSimonshowsthatthisapproximationwillnotintroduceunacceptableerrorsintoLSI[74].2.3AnalysisDuetothepopularityofLSI,therehasbeenconsiderableresearchintotheunderlyingmechanismofLSI.Termcontext.LSIimprovestheperformanceofinformationre-trievalbydiscoveringthelatentconceptsinadocumentcorpusandthussolvingtheproblemsofsynonymyandpolysemy.BastandMajumdar[5]demonstratethispointbyconsideringtheprojectionsofaqueryq138MININGTEXTDATAanddocumentdintothelatentsemanticspacebythemappingf(x)=ˆUTx.ThecosinesimilarityofthequeryanddocumentinthelatentsemanticspaceisSqd=qTˆUˆUTd(cid:19)ˆUTq(cid:19)(cid:19)ˆUTd(cid:19).Sincethefactor(cid:19)ˆUTq(cid:19)doesnotdependondocuments,itcanbene-glectedwithoutaﬀectingtheranking.Notethat(cid:19)ˆUTd(cid:19)=(cid:19)ˆUˆUTd(cid:19),sothecosinesimilaritySqdcanexpressedbySqd=qTˆUˆUTd(cid:19)ˆUˆUTd(cid:19)=qTTd(cid:19)Td(cid:19),whereT≡ˆUˆUT.ThesimilaritySqdbetweenqueryqanddocumentdcanbeexpressedbythecosinesimilarityofqueryqandthetransformeddocumentTd.Interm-basedinformationretrieval,thetransformationT=I,sotheoriginaldocumentisusedtocalculatethesimilarity.InLSI,however,thetransformationTisnottheidentitymatrix.Intuitively,theentrytvv(cid:2)representstherelationshipbetweentermsvandv(cid:2).Speciﬁcally,theoccurrenceoftermvindocumenthasanequivalentimpactonthesimilaritytotvv(cid:2)timestheoccurrenceoftermvinthesamedocument.Inthissense,LSIenrichesthedocumentbyintroducingsimilartermsthatmaynotoccurintheoriginaldocument.BastandMajumdar[5]alsoanalyzeLSIfromtheviewofidentifyingtermsthatappearinsimilarcontextsinthedocuments.Considerthesequenceofthesimilaritiesbetweenapairoftermswithrespecttothedimensionoflatentsemanticspace,Kvv(cid:2)(k)=(cid:4)ki=1U(i)vU(i)Tv(cid:2),whereU(i)isfromtherank-ipartialSVD.Thetrendofthesequencecanbecategorizedintothreediﬀerenttypes:increasingsteadily(A);ﬁrstin-creasingandthendecreasing(B);or,nocleartrend(C).Iftermsvandv(cid:2)arerelated,thesequenceisusuallyofTypeAorB.Otherwise,thesequenceisofTypeC.Thisresultiscloselyrelatedtoglobalspecialstructuresintheterm-documentmatrixXthatarisefromsimilarcon-textsforsimilarterms.Thus,thesequenceKvv(cid:2)ofsimilartermshavethespeciﬁcshapesdescribedabove.SinceLSIcapturesthecontextsoftermsindocuments,itisabletodealwiththeproblemsofsynonymyandpolysemy:synonymycanbeDimensionalityReductionandTopicModeling139capturedsincetermswiththesamemeaningusuallyoccurinsimilarcontext;polysemycanbeaddressedsincetermswithdiﬀerentmeaningcanbedistinguishedbytheiroccurrencesindiﬀerentcontext.Landauer[40]alsoprovidesintuitionforLSIbyshowingthatitcapturesseveralimportantaspectsofhumanlanguages.Dimensionofthelatentsemanticspace.Dupert[29]studieshowtodeterminetheoptimalnumberoflatentfactorsforﬁndingthemostsimilartermsofaquery.Inparticular,heshowshowLSIcandealwiththeproblemofsynonymyinthecontextofCorrelationmethod.Healsoprovidesanupperboundforthedimensionoflatentsemanticspaceinordertopresentthecorpuscorrectly.Probabilisticanalysis.KubatoAndoandLee[38]exploretherelationshipbetweentheperformanceofLSIandtheuniformityoftheunderlyingdistribution.Whenthetopic-documentsdistributionisquiteuniform,LSIcanrecovertheoptimalrepresentationprecisely.Papadim-itriouetal.[53]andDing[26]analyzeLSIfromaprobabilisticperspec-tivewhichisrelatedtoprobabilisticlatentsemanticindexing[36],whichwediscussnext.3.TopicModelsandDimensionReductionTabooR(cid:4)(aregisteredtrademarkofHasbro)isagamewhereoneplayermusthelpateammateguessawordfromagamecardwithoutusinganyofthetaboowordslistedonthecard.Thesurprisingdiﬃcultyofthegamehighlightsthatcertaintermsareverylikelytobepresentbasedonthetopicofadocument.Latenttopicmodelscapturethisideabymodelingtheconditionalprobabilitythatanauthorwilluseatermgiventhetopictheauthoriswritingabout.LSIreducedthedimensionalityofdocumentsbyprojectingtheBOWvectorsintoasemanticspaceconstructedfromtheSVDoftheterm-documentmatrix.Byprovidingamechanismtoexplicitlyreasonaboutlatenttopics,probabilistictopicmodelscanachieveasimilaryetmoremeaningfullatentsemanticspace.Theresultsarepresentedinfamiliarprobabilisticterms,andthuscanbedirectlyincorporatedintootherprobabilisticmodelsandanalyzedwithstandardstatisticaltechniques.Moreover,Bayesianmethodscanbeusedtomakethemodelsrobusttoparameterselection.Finally,oneofthemostusefuladvantagesisthatthemodelscanbeeasilyextendedbymodifyingthestructuretosolveinterestingrelatedproblems.140MININGTEXTDATA3.1ProbabilisticLatentSemanticIndexingPLSI,proposedbyHofmann[36],providesacrucialstepintopicmodelingbyextendingLSIinaprobabilisticcontext.PLSIhasseenwidespreaduseintextdocumentretrieval,clusteringandrelatedareas;itbuildsonthesameconceptualassumptionsasLSI,butusesaradicallydiﬀerentprobabilisticgenerativeprocessforgeneratingthetermsinthedocumentsofatextcorpus.PLSIisbasedonthefollowinggenerativeprocessfor(w,d),awordwindocumentd:Sampleadocumentdfrommultinomialdistributionp(d).Sampleatopici∈{1,...,K}basedonthetopicdistributionθdi=p(z=i|d).SampleatermvfortokenwbasedonΦiv=p(w=v|z=i).Inotherwords,anunobservabletopicvariablezisassociatedwitheachobservation(v,d)inPLSI.Thejointprobabilitydistributionforp(v,d)canbeexpressedasp(v,d)=p(d)p(v|d),wherep(v|d)=K(cid:9)i=1p(v|z=i)p(z=i|d).Thisequationhasthegeometricinterpretationthatthedistributionoftermsconditionedondocumentsp(z=i|d)isaconvexcombinationofthetopic-speciﬁctermdistributionsp(v|z=i).ConnectiontoLSI.Analternativewaytoexpressthejointprob-abilityisgivenbyp(v,d)=K(cid:9)i=1p(z=i)p(d|z=i)p(v|z=i).Thisformulationissometimescalledthesymmetricformulationbecauseitmodelsthedocumentsandtermsinasymmetricmanner.Thisfor-mulationhasaniceconnectiontoLSI:theprobabilitydistributionsp(d|z=i)andp(w|z=i)canbeviewedastheprojectionsofdocu-mentsandtermsintothelatentsemanticspaces,justlikethematricesˆVandˆUinLSI.Also,thedistributionp(z=i)issimilartothediago-nalmatrixˆΣinLSI.ThisisthesenseinwhichPLSIisaprobabilisticversionofLSI.DimensionalityReductionandTopicModeling1413.1.1Algorithms.Themaximallikelihoodmethodisusedtoestimatetheparametersp(d),p(z|d)andp(v|z).Giventheterm-documentmatrixX,thelog-likelihoodofobserveddatacanbeexpressedasL=M(cid:9)d=1W(cid:9)v=1xvdlogp(w=v,d)=M(cid:9)d=1W(cid:9)v=1xvdlogK(cid:9)i=1p(w=v|z=i)p(z=i|d)p(d).(5.2)Maximizingthelog-likelihoodfunctionisequivalenttominimizingtheKullback-Leiblerdivergence(KL)[39]betweenthemeasuredempiricaldistributionˆp(v|d)andthemodeldistributionp(w|d)=(cid:4)Ki=1p(w|z=i)p(z=i|d).Sincethisisnon-convex,expectation-maximization(EM)[24]isusedtoseekalocallyoptimalsolution.Thelog-likelihoodvalue(Eqn.(5.2))increasesoneachiterationandconvergestoalocalmaxi-mum.Expectation.TheE-stepcomputestheposteriorofthelatentvariablezbasedonthecurrentestimationoftheparameters.p(cid:2)(z=i|d,v)=p(d)p(z=i|d)p(v|z=i)(cid:4)Ki(cid:2)=1p(d)p(z=i(cid:2)|d)p(v|z=i(cid:2)),wheretheprimeonpindicatesthenewestimateoftheprobabilityforthenextstep.Maximization.TheM-stepupdatestheparametersoncethelatentvariablesareknownusingtheposteriorestimatedinthepreviousE-step:p(cid:2)(w=v|z)∝M(cid:9)d=1xvdp(cid:2)(z=i|d,w=v);p(cid:2)(z=i|d)∝W(cid:9)v=1xvdp(cid:2)(z=i|d,w=v);p(cid:2)(d)∝W(cid:9)v=1xvd.3.1.2Updating.Givenanewdocumentd,thefold-inprocesscanbeappliedtoobtainitsrepresentationinthelatentsemanticspace,muchlikeforLSI.Speciﬁcally,anEMalgorithmsimilartoparameterestimationcanbeusedtoobtainp(z|d)[37].p(w|z)andp(z)arenotupdatedintheM-stepduringfold-in.142MININGTEXTDATAFigure5.1.DiagramoftheLDAgraphicalmodel3.2LatentDirichletAllocationPLSIprovidesagoodbasisfortextanalysis,butithastwoprob-lems.First,itcontainsalargenumberofparametersthatgrowslinearlywiththenumberofdocumentssothatittendstooverﬁtthetrainingdata.Second,thereisnonaturalwaytocomputetheprobabilityofadocumentthatwasnotinthetrainingdata.LDAincludesapro-cessforgeneratingthetopicsineachdocument,thusgreatlyreducingthenumberofparameterstobelearnedandprovidingaclearly-deﬁnedprobabilityforarbitrarydocuments.BecauseLDAhasarichgenerativemodel,itisalsoreadilyadaptedtospeciﬁcapplicationrequirements,whichwedescribeinSection5.3.2.1Model.LikePLSI,LDAisbasedonahypotheticalgen-erativeprocessforacorpus.AdiagramofthegraphicalmodelshowinghowthediﬀerentrandomvariablesarerelatedisshowninFig.5.1.Inthediagram,eachrandomvariableisrepresentedbyacircle(continu-ous)orsquare(discrete).Avariablethatisobserved(itsoutcomeisknown)isshaded.Anarrowisdrawnfromonerandomvariabletoan-otherifthetheoutcomeofthesecondvariabledependsonthevalueoftheﬁrstvariable.Arectangularplateisdrawnaroundasetofvariablestoshowthatthesetisrepeatedmultipletimes,asforexampleforeachdocumentoreachtoken.Choosethetermprobabilitiesforeachtopic.Thedis-tributionoftermsforeachtopiciisrepresentedasamultinomialDimensionalityReductionandTopicModeling143distributionΦi,whichisdrawnfromasymmetricDirichletdistri-butionwithparameterβ.Φi∼D(β);p(Φi|β)=Γ(Wβ)[Γ(β)]WW(cid:2)v=1φβ−1iv.Choosethetopicsofthedocument.Thetopicdistribu-tionfordocumentdisrepresentedasamultinomialdistributionθd,whichisdrawnfromaDirichletdistributionwithparametersα.TheDirichletdistributioncapturesthedocument-independentpopularityandthewithin-documentburstinessofeachtopic.θd∼D(α);p(θd|α)=Γ((cid:4)Ki=1αi)(cid:20)Ki=1Γ(αi)K(cid:2)i=1θαi−1di.Choosethetopicofeachtoken.Thetopiczdnforeachtokenindexnischosenfromthedocumenttopicdistribution.zdn∼M(θd);p(zdn=i|θd)=θdi.Chooseeachtoken.Eachtokenwateachindexischosenfromthemultinomialdistributionassociatedwiththeselectedtopic.wdn∼M(φzdn);p(wdn=v|zdn=i,φi)=φiv.Mechanism.LDAprovidesthemechanismforﬁndingpatternsoftermco-occurrenceandusingthosepatternstoidentifycoherenttopics.SupposethatwehaveusedLDAtolearnatopiciandthatfortermv,p(w=v|z=i)ishigh.AsaresultoftheLDAgenerativeprocess,anydocumentdthatcontainstermvhasanelevatedprobabilityfortopici,thatis,p(zdn(cid:2)=i|wdn=v)>p(zdn(cid:2)=i).Thisinturnmeansthatalltermsthatco-occurwithtermvaremorelikelytohavebeengen-eratedbytopici,especiallyasthenumberofco-occurrencesincreases.Thus,LDAresultsintopicsinwhichthetermsthataremostprobablefrequentlyco-occurwitheachotherindocuments.Moreover,LDAalsohelpswithpolysemy.Consideratermvwithtwodistinctmeaningsintopicsiandi(cid:2).Consideringonlythisterm,themodelplacesequalprobabilityontopicsiandi(cid:2).However,iftheotherwordsinthecontextplacea90%probabilityoniandonlya9%prob-abilityoni(cid:2),thenLDAwillbeabletousethecontexttodisambiguatethetopic:itistopiciwith90%probability.144MININGTEXTDATAWallachetal.[60]showthatthesymmetryorasymmetryoftheDirichletpriorsstronglyinﬂuencesthemechanism.Forthetopic-speciﬁctermdistributions,asymmetricDirichletpriorprovidessmoothingsothatunseentermswillhavenon-zeroprobability.However,anasym-metricpriorwouldequallyaﬀectalltopics,makingthemlessdistinctive.Incontrast,theyshowedthatanasymmetricpriorforthedocument-speciﬁctopicdistributionsmadeLDAmorerobusttostopwordsandlesssensitivetotheselectionofthenumberoftopics.Thestopwordsweremainlyrelegatedtoasmallnumberofhighlyprobabletopicsthatinﬂuencemostdocumentsuniformly.Theasymmetricprioralsoresultsinmorestabletopics,whichmeansthatadditionaltopicswillmakesmallimprovementsinthemodelinsteadofradicallyalteringthetopicstructure.ThisissimilartothesituationofLSI,whereperformanceisoptimalwhenΣscalesthecontributionofeachdimensionaccordingtoitseigenvalue.Inthesameway,LDAwillperformbestifαisnon-uniformandcorrespondstosomenaturalvaluescharacteristicofthedataset.OnedisadvantageofLDAisthatittendstolearnbroadtopics.Con-siderthecasewhereaconcepthasanumberofaspectstoit.Eachoftheaspectsco-occursfrequentlywiththemainconcept,andsoLDAwillfavoratopicthatincludestheconceptandallofitsaspects.Itwillfurtherfavoraddingotherconceptstothesametopiciftheysharethesameaspects.Asthisprocesscontinues,thetopicsbecomemorediﬀuse.Whensharpertopicsaredesired,ahierarchicaltopicmodelmaybemoreappropriate.Likelihood.TraininganLDAmodelinvolvesﬁndingtheoptimalsetofparameters,underwhichtheprobabilityofgeneratingthetrainingdocumentsismaximized.TheprobabilityofthetrainingdocumentsunderagivenLDAmodeliscalledtheempiricallikelihoodL.ItcanalsobeusedtoidentifytheoptimalmodelconﬁgurationusingBayesianmodelselection.L=M(cid:2)d=1N(cid:2)n=1p(wdn|zdn,Φ)p(zdn|θd)p(θd|α)p(Φ|β)=φzwθdzΓ(cid:12)K(cid:4)i=1αi(cid:13)K(cid:20)i=1Γ(αi)K(cid:2)i=1θαi−1diΓ(Wβ)[Γ(β)]WW(cid:2)v=1φβ−1v.Unfortunately,thedirectoptimizationofthelikelihoodisproblem-aticbecausethetopicassignmentszdnarenotdirectlyobserved.EvenDimensionalityReductionandTopicModeling145inferenceforasingledocumentisintractable.WedescribetwodiﬀerentapproximationsforLDA.CollapsedGibbssamplingsamplesavalueforeachzdninturn,conditionedonthetopicassignmentsfortheotherto-kens.VariationalBayesapproximatesthemodelwithaseriesofsimplermodelsthatboundthelikelihoodbutneglectthetroublesomedepen-dencies.3.2.2CollapsedGibbs.Gibbssamplingiscommonlyusedtoestimatethedistributionofvaluesforaprobabilitymodelwhenexactinferenceisintractable.First,valuesareassignedtoeachvariableinthemodel,eitherrandomlyorusingaheuristic.Eachvariableisthensampledinturn,conditionedonthevaluesoftheothervariables.Inthelimitofthenumberofiterations,thisprocessexploresallconﬁg-urationsandyieldsunbiasedestimatesoftheunderlyingdistributions.Inpractice,Gibbssamplingisimplementedbyrejectingalargenum-berofsamplesduringaninitialburn-inperiodandthenaveragingtheassignmentsduringanadditionallargenumberofsamples.IncollapsedGibbssampling,certainvariablesaremarginalizedoutofthemodel.GriﬃthsandSteyvers[32]proposecollapsedGibbssamplingforLDA,withbothθandΦmarginalized.Onlyzdnissampled,andthesamplingisdoneconditionedonα,βandthetopicassignmentsofotherwords¯zdn.p(zdn|¯zdn)∝(Ndz+αz)(Nzw+β).TheNstatisticsdonotincludethecontributionfromthewordbeingsampled,andmustbeupdatedaftereachsampling.Theequationmakesintuitivesense.Atopicthatisusedfrequentlyinthedocumenthasahigherprobabilityinθandsoismorelikelyforthecurrenttokenalso.Thischaracteristiccorrespondstotheburstinessobservedindocuments[19].Similarly,atopicthatisfrequentlyassignedforthesametermcorpus-wideismorelikelytobecorrectherealso.Afterburn-in,theimplementationcankeepstatisticsofthenumberoftimeseachtopicisselectedforeachword.Thesestatisticscanthenbeaggregatedandnormalizedtoestimatethetopicdistributionsforeachdocumentorword.Toapplyatrainedmodeltoadditionaldocuments,theonlychangeisthattheNzwstatisticisnotupdated.3.2.3VariationalApproximation.Variationalapproxima-tionprovidesanalternativealgorithmfortraininganLDAmodel.WewillﬁrstconsiderthecaseofinferringthetopicsofadocumentgivenanexistingLDAmodel,beforeweexplainhowthemodelistrained.A146MININGTEXTDATAFigure5.2.DiagramoftheLDAvariationalmodeldirectapproachfortopicinferenceistoapplyBayes’rule:p(θ|wd)=p(θ,wd)p(wd)=(cid:31)Zp(d,θ,Z|α,β)dZ(cid:31)Z,θp(d,θ,Z|α,β)dZdθ,whereZ={z1,z2,...,zN}.However,themarginalizationinbothnu-meratoranddenominatorisintractable.TheVariationalBayesianap-proachprovidesanapproximatesolution;insteadofinferringthelatentvariablesbydirectlymarginalizingthejointdistributionp(wd,θ,Z|α,β),itusesamuchsimplerdistributionasaproxyandperformstheinferencethroughoptimization.Variationalinferenceapproximatesthetrueposteriordistributionofthelatentvariablesbyafully-factorizeddistribution—thisproxyisusu-allyreferredtoasthevariationalmodel,whichassumesallthelatentvariablesareindependentofeachother.ForLDA,q(Z,θ|γ,φ)=q(θ|γ)N(cid:2)n=1q(zn|φn)=D(θ|γ)N(cid:2)n=1M(zn|φn).Essentially,thisvariationaldistributionisasimpliﬁcationoftheoriginalLDAgraphicalmodelbyremovingtheedgesbetweenthenodesθandZ(Figure5.2).Theoptimalapproximationisachievedbyoptimizingthedistance(forexample,theKLdivergence)betweenthetruemodelandthevariationalmodel:minγ,φKL[q(θ,Z|γ,φ)||p(θ,Z|α,β)].DimensionalityReductionandTopicModeling147ItcanbeshownthattheaboveKL-divergenceisthediscrepancybetweenthetruelog-likelihoodanditsvariationallower-boundthatisusedinthevariationalEMalgorithm(describedlaterinthissection)forestimatingtheLDAhyperparametersαandβ.Theoptimizationhasnoclose-formsolutionbutcanbeimplementedthroughiterativeupdates,γi=αi+N(cid:9)n=1φni,φni∝βiwnexp[Ψ(γi)],whereΨ(·)isthebi-gammafunction.VariationalEMforparameterestimation.WecanlearnaLDAtopicmodelbymaximizingthelikelihoodofthecorpus.maxα,βM(cid:9)d=1logp(wd|α,β)=maxα,βM(cid:9)d=1log θd,Zdp(wd,θd,Zd|α,β)dθddZd.Again,itinvolvesintractablecomputationofthemarginaldistributionandwethereforeresorttovariationalapproximation,whichprovidesatractablelowerbound,L(γ,φ)=logp(wd|α,β)−KL(q(Z,θ|γ,φ)||p(Z,θ|α,β))≤logp(wd|α,β),whereL(γ,φ)=Eq[logp(wd,θ,Z)−logq]isthevariationallowerboundforthelog-likelihood.Themaximumlikelihoodestimationthereforeinvolvesatwo-layeroptimization,maxα,βM(cid:9)d=1maxγd,φdL(γd,φd).Theinner-loop(theoptimizationwithrespecttoγandφ,referredtoastheVariationalE-step)goesthroughthewholecorpusandperformsvariationalapproximationforeachofthedocuments,whichendsupwithatightlowerboundforthelog-likelihood.ThentheM-stepupdatesthemodelparameters(αandβ)byoptimizingthislower-boundapproxi-mationofthelog-likelihood.TheE-andM-stepsarealternatedinanouterloopuntilconvergence.148MININGTEXTDATAIntheE-step,γandφarealternatelyoptimizedforeachdocument—inpractice,20iterationsisadequateforagoodﬁt.Theouterloopmayneedtoberepeatedhundredsoftimesforfullconvergence.Forbestresults,thelikelihoodofaseparatevalidationcorpuscontrolsearlystopping.3.2.4Implementations.TherehavebeensubstantialeﬀortsindevelopingeﬃcientandeﬀectiveimplementationsofLDA,especiallyforparallelordistributedarchitectures.Inordertoprovideaquickhands-onexperience,welistafewimplementationsthatareopen-sourceorpubliclyaccessibleinTable5.1.Table5.1.Publicly-accessibleimplementationsofLDA.NameLanguageAlgorithmReferenceLDA-CCVar.EMwww.cs.princeton.edu/~blei/lda-cMalletJavaGibbsmallet.cs.umass.eduGibbsLDA++C++Gibbsgibbslda.sourceforge.netGensimPythonGibbsnlp.fi.muni.cz/projekty/gensimMatlab-LDAMatlabGibbspsiexp.ss.uci.edu/programsdata4.InterpretationandEvaluationWehavelookedatthreemethodsfordimensionreductionoftextualdata.Thesemethodshavemuchincommon:theyidentifytherelation-shipsoftermsanddocumentstothedimensionsofalatentsemanticspace.Intuitively,thelatentdimensionscorrespondtoconceptsortop-icsthataremeaningfultotheauthors.Inthissection,wediscusshowtojumpfromthemathematicalrepresentationstomeaningfultopics,howtoevaluatetheresultingmodelsandhowtoapplythemtoapplications.4.1InterpretationThecommonwaytointerpretthetopicmodelsthatarediscoveredbydimensionreductionisthroughinspectionoftheterm-topicassociations.Typically,practitionersexaminetheﬁvetotwentytermsthataremoststronglyassociatedwitheachtopic,andattempttodiscernthecom-monality.ForLSI,thetermscanbesortedaccordingtothecoeﬃcientcorrespondingtothegivenfeatureinthesemanticspace.Fortheproba-bilisticmodels,thetermsaresortedbytheprobabilityofgeneratingthetermconditionedonthetopic.ThisapproachwaspopularizedfollowingBleietal.[13],andisgenerallyusedtoreportqualitativetopicmodelresultseventhoughithasmanydisadvantages.ThechiefproblemisDimensionalityReductionandTopicModeling149thatthetoptermsareoftendominatedbygloballyprobabletermsthatmaynotberepresentativeofthetopic.Stopwordremovalandvaria-tionsonIDFweightingbothhelpsubstantially,butthecharacterizationissensitivetotheprecisemethodusedtoorderterms.Meietal.[47]provideanalternativeapproachthatautomaticallyselectsaportionofadocumenttouseasalabelforeachtopic.BuntineandJakulin[16]provideamoregeneralframeworkforinterpretingtopicmodels.4.2EvaluationTherearethreemainapproachestoevaluatingthemodelsresultingfromdimensionreduction.Theﬁtofthemodelstotestdataisim-portantforunderstandinghowwellthemodelsgeneralizetonewdata,butapplication-drivenmetricsarealsoessentialifthemodelistobeuseful.Whenitisnecessaryforahumantointeractwiththemodel,interpretabilityshouldalsobeevaluated.Fitoftestdata.Averycommonapproachistotrainamodelonaportionofthedataandtoevaluatetheﬁtofthemodelonanotherpor-tionofthedata.ForLSI,thetestdocumentscanbeprojectedintothelatentsemanticspaceandthenthe(cid:9)2errorintroducedbytheapproxi-mationcanbecalculated.Theprobabilisticmodelscanbeevaluatedbycomputingtheprobabilityofgeneratingthetestdocumentsgiventhemodel.Perplexity[4]isthemostcommonwaytoreportthisprobability.Computedasexp!−1NM(cid:9)d=1Nd(cid:9)n=1logp(wdn|model)",theperplexitycorrespondstotheeﬀectivesizeofthevocabulary.Forexample,avalueof100indicatesthattheprobabilitiesresultingfromthemodelareequivalenttorandomlypickingeachwordfromavocabularyof100words.Thismeansthatsmallervaluesindicatethatthemodelﬁtsthetestdatabetter.Wallachetal.[61],evaluateseveraldiﬀerentwaystocomputethisprobabilityandrecommendedtheleft-to-rightmethod,inwhichtheprobabilityofgeneratingeachtokeninadocumentisconditionedonallprevioustokensinthedocumentsothattheinteractionbetweenthetokensinthedocumentareproperlyaccountedfor.Applicationperformance.Anothercommonapproachistomea-suretheutilityoftopicmodelsinsomeapplication.Wheneverthedi-150MININGTEXTDATAmensionreductionisbeingcarriedoutwithaspeciﬁcapplicationinmind,thisinanimportantevaluation.Forexample,WeiandCroft[65]discusstheevaluationofLDAmodelsfordocumentsearchusingstandardinformationretrievalmetrics.Interpretability.Fortextmining,theabilitytousethediscoveredmodelstobetterunderstandthedocumentsisessential.Unfortunately,theﬁtoftestdataandapplicationperformancemetricscompletelyig-norethetopicalstructure.Infact,modelswithbetterperplexityareoftenhardertointerpret[18].Thisisnotsurprising,becausethetaskofﬁndingameaningfulmodelthatﬁtswellismoreconstrainedthanthetaskofﬁndinganymodelthatﬁtswell,sothebestﬁtislikelytobefoundusingalessmeaningfulmodel.Changetal.[18]proposeanewevaluationprotocolbasedonauserstudy.Startingwithalistoftoptermsforeachtopicthathasbeentaintedwithanadditionalterm,usersareaskedtoidentifythespuriousterm.Userperformanceonthistaskishigherwhenthetopiciscoher-entsothattheextratermstandsout.Theyalsoconductedasimilarexperimenttomeasuretheappropriatenessoftopicassignmentstotestdocuments.4.3ParameterSelectionAsuncionetal.[3]compareavarietyofdiﬀerentalgorithmsfortheLDAmodel.Theyfoundthatwithcarefulselectionoftheregularizationhyperparametersαandβ,allofthealgorithmshadsimilarperplexity.Agridsearchoverpossiblevaluesyieldsthebestperformance,butin-terleavingoptimizationofthehyperparameterswithiterationsofthealgorithmisalmostasgoodwithmuchlesscomputationalcost.4.4DimensionReductionLatenttopicmodels,includingLSI,PLSIandLDA,arecommonlyusedasdimensionreductiontoolsfortexts.Afterthetrainingprocess,thedocumentdcanberepresentedbyitstopicdistributionp(z|d),wherezcanbeviewedasaK-dimensionalrepresentationoftheoriginaldocu-ment.Thesimilaritybetweendocumentscanthenbemeasuredbytheirsimilarityinthetopicspace.Sdd(cid:2)=K(cid:9)z=1p(z|d)p(z|d(cid:2)).Throughthisequation,documentsareprojectedintoalowdimensionalspace.ThetermsareprojectedintoaK-dimensionalspaceinthesameDimensionalityReductionandTopicModeling151way.Forprobabilistictopicmodels,KLdivergencecanbeusedforanalternativecomparison.Handlingofsynonymyisanaturalresultofdimensionreduction.Mul-tipletermsassociatedwiththesameconceptareprojectedintothesameplaceinthelatentsemanticspace.Polysemypresentsamorediﬃcultchallenge.GriﬃthsandSteyvers[31]foundthatLSIwasabletodetectpolysemy:atermthatwasprojectedontomultiplelatentdimensionsgenerallyhadmultiplemeanings.LDAcanresolvepolysemyprovidedthatoneofthetopicsassociatedwithapolysemoustermisassociatedwithadditionaltokensinthedocument.5.BeyondLatentDirichletAllocationLDAhasmanyadvantagesfortopicmodeling,includingitsrelativesimplicitytoimplementandtheusefultopicsthatitunearths.However,withadditionaleﬀorttopicmodelingcanbeadaptedtothecharacteris-ticsofaparticularproblem.Inthissection,wesurveyrecentadvancesthatmakeitpracticaltoapplytopicmodelingtoverylargetextcorpora,dynamicdata,datathatisembeddedinanetworkandotherproblemswithspecialcharacteristics.5.1ScalabilityStandardLDAlearningalgorithmsreadthedocumentsinthetrainingcorpusnumeroustimesandareinherentlyserial.Inpractice,thismeansthatLDAmodelsaretrainedononlyasmallfractionoftheavailabledata.However,recentadvancesinonlineandparallelalgorithmsmakeitreasonabletotrainandapplymodelsatverylargescale.Eﬃcientparallelimplementationsareavailablebasedoneithercol-lapsedGibbssamplingorvariationalapproximation.Smolaetal.[56]performGibbssamplingbasedonslightlyoutdatedtermandtopicstatis-ticsinparallelwiththreadsthatgloballyupdatethestatistics.Usingvariationalapproximation,Asuncionetal.[3]interleaveaninferencesteponalldocumentswithaparallelaggregationofthetermandtopicstatistics.Bothofthesemethodsachievescalabilitythroughapproxi-mationsthathavenoknownconvergenceguarantee.Incontrast,Yanetal.[66]andLiuetal.[43],usecarefulschedulingtoachievestrongpar-allelizationwithoutapproximation.However,theapproximatemethodsareeasiertoimplementcorrectlyandworkverywellinpractice.5.2DynamicDataNumerousapproachesarepossiblewhenthecorpusofdocumentsischangingovertimeormustbeprocessedasastream.Onecommon152MININGTEXTDATAapproachistoaugmentthecorpuswiththetimeofeachdocumentandincorporatetimeintothemodel.WangandAgichtein[64]modeltherevisionhistoryofdocumentsbyconsideringthetemporaldimensionandextendLSItotensorfactorization.PLSIcanbesimilarlyaugmentedtomodelthetemporalpatternsofactivitiesinvideos[59].Mølgaardetal.[50]studytemporalPLSIformusicretrieval,whichcanbeviewedasaprobabilisticmodelfortensorfactorization.BleiandLaﬀertymodeledtimeevolutionoftopicmodels[10]toanalyzehowthetopicsusedinacorpuschangedovertime.Forstreamingdata,Yaoetal.[72]presentatimeandspaceeﬃcientalgorithmforapplyinganexistingtopicmodeltoastreamofdocuments,usingamodiﬁcationofGibbssampling.Hoﬀmanetal.[35]developedanonlinealgorithmforLDAthatretrainsthemodelforeachdocumentinturn.Interestingly,theyfoundthatthisapproachdidnotsacriﬁceanyqualityinthelearnedmodelasmeasuredusingperplexity.Theyfurthershowthattheonlinealgorithmcorrespondstostochasticgradi-entdescentonthevariationalobjectivefunction,andsoconvergestoastationarypointofthatfunction.TheonlinetrainingprocessforLDAoptimizeseachdocumentinturn.First,itusesstandardvariationalapproximationtoestimatetheproba-bilitydistributionforthetopicofeachwordφj.Next,topicmodels˜ΦiareestimatedasifthecorpusconsistedofMcopiesofthisdocument,basedonφj.˜Φij=β+MNjφij.TheestimateofthetopicmodelsΦiarethenupdatedtoincludethecontributionfromthisdocumentbyΦij←(Φij+ρ˜Φij)/(1+ρ),whereρ=(t0+t)−κwhenprocessingthet-thdocument.t0isaparame-terthatslowsthealgorithmduringtheearlyiterationsand0.5<κ≤1isaparameterthatcontrolstherateoflearning.Thisalgorithmises-sentiallythevariationalalgorithmappliedtoadiﬀerentsingledocumentoneachiteration,withappropriatechangestohowthetopicmodelsareupdated.Forverylargedatasets,thisismanytimesfasterthanotheralgorithmsandyetyieldsveryexcellentresults.5.3NetworkedDataNetworksplayanimportantroleinmanytextminingproblems.Emailmessagesarelinkedtothesendersandrecipients.Publicationsarealsolinkedbycitations.Manydocumentsarerelatedtoasocialnetwork.DimensionalityReductionandTopicModeling153Theanalysisofthesedocumentscanrevealmoreinterestingstructureifthenetworkgraphcanbeincorporated.LSIhasbeenappliedtoanalysisnetworkdata.Ngetal.analyzetheconnectionbetweentheLSIandHIST[51],whichisawidelyusedalgorithmfornetworkdata.Otherapproacheslearnlow-dimensionalrepresentationsofdocumentsbasedonboththeircontentsandthecita-tiongraphbetweenthemthroughlearningfrommultiplerelationshipsbetweendiﬀerenttypesofentities[69,76].PLSIhasalsobeenappliedtoanalyzethenetworkdata.CohnandChangapplyPLSItomodelthecitationgraphandidentityauthori-tativedocumentbasedonthelatentfactors[21].Citationsbetweendocumentscanbemodeledtogetherwiththecontentsofthedocumentsinajointprobabilisticmodel[20],throughtheprobabilityofgeneratingacitationgivenalatenttopic.Guoetal.[34]modeltheinteractionoftopicsbetweenlinkeddocuments.Intuitively,thetopicsofadocumentareborrowedfromthedocumentstowhichitlinks.Dengetal.[25]pro-posethetwoframeworksbasedonrandomwalkandregularizationtopropagatethetopicsofdocumentsaccordingtothelinksbetweenthem.WedescribetheworkofMeietal.[46]indetailsinceitisrepre-sentativeofcombiningPLSIandnetworkanalysis.ThisworkutilizesthenetworkstructureastheregularizationforPLSIthroughassum-ingthatthetopicdistributionsaresimilarfordocumentsconnectedtoeachother.Theregularizationterminducedfromthestructureofthenetworkisoptimizedtogetherwiththelog-likelihoodfunctionofPLSI.Themodelisappliedtoseveralapplicationssuchasauthor-topicanaly-sisandspatialtopicanalysis,wherenetworkstructuresareconstructedfromco-authorshipsandadjacencyoflocations,respectively.Muchresearchhasexploredvariouswaystointegratenetworkinfor-mationintotopicmodels.Rosen-Zvietal.incorporateauthorshipin-formationthroughauthor-speciﬁctopicmixtures[55].Supervisedtopicmodelsallowtheper-topictermdistributionstodependonadocumentlabel[12].ChangandBleiincorporaterelationalinformationbetweendocuments[17].Itisalsopossibletointegrategeneralﬁrstorderlogic[2].McCallumetal.extendLDAsothatitcanidentifytopicmodelsthatareconditionedontheauthorandtheaudienceofthecommunication[45].Thisisusefulforanalyzingthesocialdynamicsofcommunicationinanetwork.Relationaltopicmodels(RTM)extendLDAtojointlymodelthegen-erationofdocumentsandthegenerationoflinksbetweendocuments[17].Themodelpredictslinksbasedonthesimilarityofthetopicmix-tureusedintwodocuments,whichaddsthecapabilityofpredictingmissinglinksinthegraphstructure.Becausethelinksinﬂuencethe154MININGTEXTDATAselectionoftopics,themodelcanmoreaccuratelypredictlinksthanasimilarpredictionbasedontopicsfromLDA.ThegenerativeprocessofdocumentsisthesameforRTMasforLDA.Oncethedocumentsaregenerated,thelinkλdebetweendocumentsdandeisgeneratedfromexponentialregressionontheempiricaltopicmixtures¯Zdand¯Ze,λde=exp#ηT(¯Zd◦¯Ze)+ν$,where¯Zd≡1/Nd(cid:4)Nn=1Zdnanda◦bistheelement-wiseproductofvectorsaandb.Typicallythelinkistakentobebinary,inwhichcaseνisusedtocontrolthethreshold.ηisaparameterthatmustbelearnedwhichcontrolstheimportanceofeachtopicinestablishingthelink.Wegenerallyexpectittohavepositivevalues,althoughanegativevalueinasocialnetworkwouldreﬂecttheadagethatoppositesattract.5.4AdaptingTopicModelstoApplicationsThegraphicalmodelofLDAcanbeeasilyextendedtomatchthecharacteristicsofaspeciﬁcapplication.Herewesurveysomeofthefruitfulapproaches.OneimportantclassofextensionstoLDAhasbeentheintroductionofricherpriorsfordocumenttopicandtermdistributions.Insteadofusingaﬁxed,globalDirichlethyperparameterαforallthedocumentsinacorpus,MimnoandMcCallumuseregressionfromdocumentfeaturestoestablishadocument-speciﬁcα[48].Thisisavaluableenhancementwhenothermeta-featuresareavailablethatareexpectedtoinﬂuencetheselectedtopics,as,forexample,theidentityoftheauthor,thepub-licationvenueandthedates.TheBayesianhierarchyofLDAprovidesausefulmodelingpipelinefordatawithcomplexstructure.Thehierarchycanmodelweb-likeintercon-nectionsanduncertainlabels[67,71].ThemixedmembershipstochasticblockmodelcoupledtwoLDAhierarchiestomodelinter-connecteden-tities[1],whichprovidesaﬂexiblemodelfornetworkgraphsandhasprovenusefulforavarietyofapplicationsrangingfromrolediscoverytocommunitydetectioninsocial,biologicalandinformationnetworks.Hierarchicaltopicmodels(hLDA)areusedtoidentifysubtopicsthatareincreasinglymorespeciﬁc[9].ThehLDAmodelautomaticallylearnsatreestructurehierarchyfortopicswhiletheyarediscoveredfromthedocuments.Foradditionalﬂexibility,hierarchicalDirichletprocesses[57]canautomaticallydiscoveranappropriatenumberoftopicsandsubtopics.Therearealsoprincipledwaystolearncorrelationsbetweentopics[11,41].Otherextensionssupportricherdocumentrepresenta-DimensionalityReductionandTopicModeling155tionsandcontextualinformation,includingbigrams[62],syntacticrela-tionships[15,33]andproductaspects[58].Multinomialdistributionsfortermoccurrencesusuallyhaveadiﬃculttimemodelingthewordburstinessinlanguage—ifawordappearsinadocumentonce,itwilllikelyappearagaininthesamedocument.ThiseﬀectiscommonlyreferredtoasZipf’slaw,aprofoundcharacteristicoflanguage.Todiscountthisimpact,DoyleandElkanreplacetheper-topicMultinomialdistributionwithaDirichlet-CompoundMultinomial(alsocalledthemultivariateP`olya)distribution)[27].Reisingeretal.substitutessphericaladmixturemodels[54],whichnotonlyincorporatenegativecorrelationsamongtermoccurrencebutalsoadmitthenaturaluseofcosinesimilaritytocomparetopicsordocuments.Standardtopicmodelsarenotappropriateforidentifyingconsistenttopicsacrossmultiplelanguages,becausethemultiplelanguagesdonotco-occurindocumentsfrequentlyenoughtobeassignedintothesametopics.Mimnoetal.developedanextensionthatworkswithlooselyaligneddocuments[49]—pairsofdocumentsindiﬀerentlanguagesthathavenearlythesamemixtureoftopics.Boyd-GraberandBleiexplorevariousstrategiesfordiscoveringmultilingualtopicsfromunaligneddoc-uments[14].Similarissuesarisewithdocumentsinmultipledialects.Crainetal.[22]andYangetal.[68]discussextensionsofLDAthatﬁndsharedtopicsbetweenconsumerandtechnicalmedicaldocuments.6.ConclusionUsingaBOWrepresentationresultsinveryeﬃcienttextminingbe-causemorecomplexfactorslikegrammarandwordordercanbene-glected.However,workingdirectlywithindividualtermshasanumberofstronglimitations,becausemultipledocumentscandiscussthesameideasusingverydiﬀerentwords,andlikewise,thesamewordcanhaveverydiﬀerentmeanings.DimensionreductionisabletolifttheBOWrepresentationtoamoreabstractlevelthatbetterreﬂectstheneedsofahumananalyst,wherethenewdimensionscorrespondtoconceptsortopics.Inthisway,alternativewaysofexpressingthesamecontentcanbereducedtoacommonrepresentationandtermswithmultiplemeaningscanbeidentiﬁed.LSIisbasedonaspectralanalysisoftheterm-documentmatrix.Thisapproachidentiﬁescommongeneralizationsthatareguaranteedtoprovidethebestlower-dimensionalrepresentationoftheoriginaldata.Thisrepresentationisnotnecessarilyeasytointerpret,butisveryusefulforperformingaconceptualmatchbetweentwodocumentsthatmayusediﬀerenttermsforthesameconcepts.156MININGTEXTDATAProbabilistictopicmodelsprovideanintuitive,probabilisticfounda-tionfordimensionreduction.Theyallowustoreasonaboutthetopicspresentinadocumentandexposetheprobabilityofseeingeachwordinanygiventopic.Thismakesitmucheasiertointerpretwhatthetopicsmean.Italsomakesiteasiertoextendthemodelsininterestingways.ManyextensionstoPLSIandLDAhavebeendeveloped,bothtoallowthemtobeappliedtolargescaledataandtoincorporatespecialstructureforaparticularapplication.AcknowledgmentPartoftheworkissupportedbyNSFgrantsIIS-1049694,IIS-1116886,aYahoo!FacultyResearchandEngagementGrantandaDepartmentofHomelandSecurityCareerDevelopmentGrant.References[1]E.Airoldi,D.Blei,S.Fienberg,andE.Xing.Mixedmembershipstochasticblockmodels.J.Mach.Learn.Res.,9:1981–2014,June2008.[2]D.Andrzejewski,X.Zhu,M.Craven,andB.Recht.AframeworkforincorporatinggeneraldomainknowledgeintolatentDirichletallocationusingﬁrst-orderlogic.InIJCAI,2011.[3]A.Asuncion,M.Welling,P.Smyth,andY.Teh.Onsmoothingandinferencefortopicmodels.InUAI,pages27–34,2009.[4]L.Bahl,J.Baker,E.Jelinek,andR.Mercer.Perplexity—amea-sureofthediﬃcultyofspeechrecognitiontasks.InProgram,94thMeetingoftheAcousticalSocietyofAmerica,volume62,pageS63,1977.[5]H.BastandD.Majumdar.Whyspectralretrievalworks.InSIGIR,page11,2005.[6]J.-P.Benzecri.L’AnalysedesDonnees.VolumeII.1973.[7]M.Berry.Large-scalesparsesingularvaluecomputations.TheInternationalJournalOfSupercomputerApplications,6(1):13–49,1992.[8]M.Berry,S.Dumais,andG.O’Brien.Usinglinearalgebraforintelligentinformationretrieval.SIAMreview,37(4):573–595,1995.[9]D.Blei,T.Griﬃths,M.Jordan,andJ.Tenenbaum.Hierarchicaltopicmodelsandthenestedchineserestaurantprocess.InNIPS,2003.DimensionalityReductionandTopicModeling157[10]D.BleiandJ.Laﬀerty.Dynamictopicmodels.InICML,pages113–120,2006.[11]D.BleiandJ.Laﬀerty.Acorrelatedtopicmodelofscience.AAS,1(1):17–35,2007.[12]D.BleiandJ.McAuliﬀe.Supervisedtopicmodels.InNIPS,2007.[13]D.Blei,A.Ng,andM.Jordan.LatentDirichletallocation.J.Mach.Learn.Res.,3:993–1022,2003.[14]J.Boyd-GraberandD.Blei.Multilingualtopicmodelsforunalignedtext.InUAI,pages75–82,2009.[15]J.Boyd-GraberandD.Blei.Syntactictopicmodels.InNIPS,pages185–192.2009.[16]W.BuntineandA.Jakulin.Discretecomponentanalysis.InCraigSaunders,MarkoGrobelnik,SteveGunn,andJohnShawe-Taylor,editors,Subspace,LatentStructureandFeatureSelection,volume3940ofLectureNotesinComputerScience,pages1–33.SpringerBerlin/Heidelberg,2006.[17]J.ChangandD.Blei.Relationaltopicmodelsfordocumentnet-works.InAIStats,2009.[18]J.Chang,J.Boyd-Graber,S.Gerrish,C.Wang,andD.Blei.Read-ingtealeaves:Howhumansinterprettopicmodels.InNIPS,pages288–296.2009.[19]K.ChurchandW.Gale.Poissonmixtures.NaturalLanguageEn-gineering,1:163–190,1995.[20]D.Cohn.Themissinglink-aprobabilisticmodelofdocumentcon-tentandhypertextconnectivity.InNIPS,2001.[21]D.CohnandH.Chang.Learningtoprobabilisticallyidentifyau-thoritativedocuments.InICML,pages167–174,2001.[22]S.Crain,S.-H.Yang,Y.Jiao,andH.Zha.Dialecttopicmodelingforimprovedconsumermedicalsearch.InAMIAAnnualSymposium,2010.[23]S.Deerwester,S.Dumais,G.Furnas,T.Landauer,andR.Harsh-man.Indexingbylatentsemanticanalysis.JournaloftheAmericanSocietyforInformationScience,41(6):391–407,September1990.[24]A.Dempster,N.Laird,andD.Rubin.MaximumLikelihoodfromIncompleteDataviatheEMAlgorithm.JournaloftheRoyalSta-tisticalSociety,39(1):1–38,1977.[25]H.Deng,J.Han,B.Zhao,Y.Yu,andC.Lin.ProbabilisticTopicModelswithBiasedPropagationonHeterogeneousInformationNetworks.InKDD,pages1271—-1279,SanDiego,2011.ACM.158MININGTEXTDATA[26]C.Ding.Asimilarity-basedprobabilitymodelforlatentsemanticindexing.InSIGIR,pages58–65,1999.[27]G.DoyleandC.Elkan.Accountingforburstinessintopicmodels.InICML,2009.[28]S.DumaisandJ.Nielsen.Automatingtheassignmentofsubmittedmanuscriptstoreviewers.InSIGIR,pages233–244,1992.[29]G.Dupret.Latentconceptsandthenumberorthogonalfactorsinlatentsemanticanalysis.SIGIR,pages221–226,2003.[30]G.GolubandC.VanLoan.Matrixcomputations(3rded.).JohnsHopkinsUniversityPress,Baltimore,MD,USA,1996.[31]T.GriﬃthsandM.Steyvers.LatentSemanticAnalysis:ARoadtoMeaning,chapterProbabilistictopicmodels.2006.[32]T.GriﬃthsandM.Steyvers.Findingscientiﬁctopics.InProceed-ingsoftheNationalAcademyofSciencesoftheUnitedStatesofAmerica,volume101,pages5228–5235,2004.[33]T.Griﬃths,M.Steyvers,D.Blei,andJ.Tenenbaum.Integratingtopicsandsyntax.InNIPS,pages537–544,2005.[34]Z,Guo,S.Zhu,Y.Chi,Z.Zhang,andY.Gong.Alatenttopicmodelforlinkeddocuments.InSIGIR,page720,2009.[35]M.Hoﬀman,D.Blei,andF.Bach.OnlinelearningforlatentDirich-letallocation.InNIPS,pages856–864,2010.[36]T.Hofmann.Probabilisticlatentsemanticanalysis.InUAI,page21,1999.[37]T.Hofmann.Probabilisticlatentsemanticindexing.InSIGIR,pages50–57,1999.[38]R.KubotaAndoandL.Lee.Iterativeresidualrescaling:AnanalysisandgeneralizationofLSI.InSIGIR,pages154–162,2001.[39]S.KullbackandR.Leibler.Oninformationandsuﬃciency.TheAnnalsofMathematicalStatistics,22(1):79–86,March1951.[40]T.Landauer.Onthecomputationalbasisoflearningandcognition:ArgumentsfromLSA.Psychologyoflearningandmotivation,(1):1–63,2002.[41]W.Li,D.Blei,andA.McCallum.NonparametricBayesPachinkoallocation.InUAI,2007.[42]G.LisowskyandL.Rost.Konkordanzzumhebr¨aischenAltenTesta-ment:nachdemvonPaulKahleinderBibliaHebraicaediditRudolfKittelbesorgtenMasoretischenText.DeutscheBibelgesellschaft,1958.DimensionalityReductionandTopicModeling159[43]Z.Liu,Y.Zhang,E.Y.Chang,andM.Sun.PLDA+:ParallellatentDirichletallocationwithdataplacementandpipelineprocessing.ACMTrans.Intell.Syst.Technol.,2:26:1–26:18,May2011.[44]C.Manning,P.Raghavan,andH.Schutze.IntroductiontoInforma-tionRetrieval.CambridgeUniversityPress,NewYork,NY,USA,2008.[45]A.McCallum,A.Corrada-Emmanuel,andX.Wang.Topicandrolediscoveryinsocialnetworks.InProceedingsofthe19thinternationaljointconferenceonArtiﬁcialintelligence,pages786–791,2005.[46]Q.Mei,D.Cai,D.Zhang,andC.Zhai.Topicmodelingwithnet-workregularization.InWWW,page101,2008.[47]Q.Mei,X.Shen,andC.Zhai.Automaticlabelingofmultinomialtopicmodels.InKDD,pages490–499,2007.[48]D.MimnoandA.McCallum.Topicmodelsconditionedonarbitraryfeatureswithdirichlet-multinomialregression.InUAI,2008.[49]D.Mimno,H.Wallach,J.Naradowsky,D.Smith,andA.McCallum.Polylingualtopicmodels.InProceedingsofthe2009ConferenceonEmpiricalMethodsinNaturalLanguageProcessing,pages880–889,2009.[50]L.Mølgaard,J.Larsen,andD.Lyngby.Temporalanalysisoftextdatausinglatentvariablemodels.2009IEEEInternationalWork-shoponMachineLearningforSignalProcessing,2009.[51]A.Ng,A.Zheng,andM.Jordan.Linkanalysis,eigenvectorsandstability.InInternationalJointConferenceonArtiﬁcialIntelli-gence,volume17,pages903–910,2001.[52]G.O’Brien.InformationmanagementtoolsforupdatinganSVD-encodedindexingscheme.Master’sthesis,TheUniversityofKnoxville,Tennessee,(October),1994.[53]C.Papadimitriou,P.Raghavan,H.Tamaki,andS.Vempala.La-tentsemanticindexing:Aprobabilisticanalysis.InProceedingsoftheseventeenthACMSIGACT-SIGMOD-SIGARTsymposiumonPrinciplesofdatabasesystems,pages159–168,1998.[54]J.Reisinger,A.Waters,B.Silverthorn,andR.Mooney.Sphericaltopicmodels.InICML,pages903–910,2010.[55]M.Rosen-Zvi,T.Griﬃths,M.Steyvers,andP.Smyth.Theauthor-topicmodelforauthorsanddocuments.InUAI,2004.[56]A.SmolaandS.Narayanamurthy.Anarchitectureforparalleltopicmodels.Proc.VLDBEndow.,3:703–710,September2010.160MININGTEXTDATA[57]Y.Teh,M.Jordan,M.Beal,andD.Blei.HierarchicalDirichletprocesses.JASA,101,2006.[58]I.TitovandR.McDonald.Modelingonlinereviewswithmulti-graintopicmodels.InWWW,pages111–120,2008.[59]J.Varadarajan,R.Emonet,andJ.Odobez.Probabilisticlatentsequentialmotifs:Discoveringtemporalactivitypatternsinvideoscenes.InBMVC2010,volume42,pages177–196,2010.[60]H.Wallach,D.Mimno,andA.McCallum.RethinkingLDA:Whypriorsmatter.InNIPS,pages1973–1981,2009.[61]H.Wallach,I.Murray,R.SalakhutdinovandD.Mimno.EvaluationmethodsfortopicmodelsInICML,pages1105–1112,2009.[62]H.Wallach.Topicmodeling:beyondbag-of-words.InICML,2006.[63]Q.Wang,J.Xu,andH.Li.Regularizedlatentsemanticindexing.InSIGIR,2011.[64]Y.WangandE.Agichtein.Temporallatentsemanticanalysisforcollaborativelygeneratedcontent:preliminaryresults.InSIGIR,pages1145—-1146,2011.[65]X.WeiandW.BruceCroft.LDA-baseddocumentmodelsforad-hocretrieval.InSIGIR,pages178–185,2006.[66]F.Yan,N.Xu,andY.Qi.ParallelinferenceforlatentDirichletallocationongraphicsprocessingunits.InNIPS,pages2134–2142.2009.[67]S.Yang,J.Bian,andH.Zha.Hybridgenerative/discriminativelearningforautomaticimageannotation.InUAI,2010.[68]S.Yang,S.Crain,andH.Zha.Bridingthelanguagegap:topic-leveladaptationforcross-domainknowledgetransfer.InAIStat,2011.[69]S.Yang,B.Long,A.Smola,N.Sadagopan,Z.Zheng,andH.Zha.Likelikealike–jointfriendshipandinterestpropagationinsocialnetworks.InWWW,2011.[70]S.YangandH.Zha.Languagepyramidandmulti-scaletextanal-ysis.InCIKM,pages639–648,2010.[71]S.Yang,H.Zha,andB.Hu.Dirichlet-bernoullialignment:Agen-erativemodelformulti-classmulti-labelmulti-instancecorpora.InNIPS,2009.[72]L.Yao,D.Mimno,andA.McCallum.Eﬃcientmethodsfortopicmodelinferenceonstreamingdocumentcollections.InKDD,pages937–946,2009.[73]Y.Saad.NumericalMethodsforLargeEigenvalueProblems.ManchesterUniversityPressND,1992.DimensionalityReductionandTopicModeling161[74]H.ZhaandH.Simon.Onupdatingproblemsinlatentsemanticindexing.SIAMJournalonScientiﬁcComputing,21(2):782,1999.[75]H.ZhaandZ.Zhang.Onmatriceswithlow-rank-plus-shiftstruc-tures:PartialSVDandlatentsemanticindexing.SIAMJournalMatrixAnalysisandApplications,21:522–536,1999.[76]D.Zhou,S.Zhu,K.Yu,X.Song,B.Tseng,H.Zha,andC.LeeGiles.Learningmultiplegraphsfordocumentrecommendations.InWWW,page141,2008.    C.C. Aggarwal and C.X. Zhai (eds.), Mining Text Data, DOI 10.1007/978-1-4614-3223-4_6,

Chapter6ASURVEYOFTEXTCLASSIFICATIONALGORITHMSCharuC.AggarwalIBMT.J.WatsonResearchCenterYorktownHeights,NYcharu@us.ibm.comChengXiangZhaiUniversityofIllinoisatUrbana-ChampaignUrbana,ILczhai@cs.uiuc.eduAbstractTheproblemofclassiﬁcationhasbeenwidelystudiedinthedatamining,machinelearning,database,andinformationretrievalcommunitieswithapplicationsinanumberofdiversedomains,suchastargetmarketing,medicaldiagnosis,newsgroupﬁltering,anddocumentorganization.Inthispaperwewillprovideasurveyofawidevarietyoftextclassiﬁcationalgorithms.Keywords:TextClassiﬁcation1.IntroductionTheproblemofclassiﬁcationhasbeenwidelystudiedinthedatabase,datamining,andinformationretrievalcommunities.Theproblemofclassiﬁcationisdeﬁnedasfollows.WehaveasetoftrainingrecordsD={X1,...,XN},suchthateachrecordislabeledwithaclassvaluedrawnfromasetofkdiﬀerentdiscretevaluesindexedby{1...k}.Thetrainingdataisusedinordertoconstructaclassiﬁcationmodel,whichrelatesthefeaturesintheunderlyingrecordtooneoftheclasslabels.Foragiventestinstanceforwhichtheclassisunknown,thetrainingmodel© Springer Science+Business Media, LLC 2012 163 
 
164MININGTEXTDATAisusedtopredictaclasslabelforthisinstance.Inthehardversionoftheclassiﬁcationproblem,aparticularlabelisexplicitlyassignedtotheinstance,whereasinthesoftversionoftheclassiﬁcationproblem,aprobabilityvalueisassignedtothetestinstance.Othervariationsoftheclassiﬁcationproblemallowrankingofdiﬀerentclasschoicesforatestinstance,orallowtheassignmentofmultiplelabels[52]toatestinstance.Theclassiﬁcationproblemassumescategoricalvaluesforthelabels,thoughitisalsopossibletousecontinuousvaluesaslabels.Thelatterisreferredtoastheregressionmodelingproblem.Theproblemoftextclassiﬁcationiscloselyrelatedtothatofclassiﬁcationofrecordswithset-valuedfeatures[28];however,thismodelassumesthatonlyinforma-tionaboutthepresenceorabsenceofwordsisusedinadocument.Inreality,thefrequencyofwordsalsoplaysahelpfulroleintheclassiﬁca-tionprocess,andthetypicaldomain-sizeoftextdata(theentirelexiconsize)ismuchgreaterthanatypicalset-valuedclassiﬁcationproblem.Abroadsurveyofawidevarietyofclassiﬁcationmethodsmaybefoundin[42,62],andasurveywhichisspeciﬁctothetextdomainmaybefoundin[111].Arelativeevaluationofdiﬀerentkindsoftextclassiﬁcationmethodsmaybefoundin[132].AnumberofthetechniquesdiscussedinthischapterhavealsobeenconvertedintosoftwareandarepubliclyavailablethroughmultipletoolkitssuchastheBOWtoolkit[93],Mallot[96],WEKA1,andLingPipe2.Theproblemoftextclassiﬁcationﬁndsapplicationsinawidevarietyofdomainsintextmining.Someexamplesofdomainsinwhichtextclassiﬁcationiscommonlyusedareasfollows:NewsﬁlteringandOrganization:Mostofthenewsservicestodayareelectronicinnatureinwhichalargevolumeofnewsarti-clesarecreatedverysingledaybytheorganizations.Insuchcases,itisdiﬃculttoorganizethenewsarticlesmanually.Therefore,au-tomatedmethodscanbeveryusefulfornewscategorizationinavarietyofwebportals[78].Thisapplicationisalsoreferredtoastextﬁltering.DocumentOrganizationandRetrieval:Theaboveapplica-tionisgenerallyusefulformanyapplicationsbeyondnewsﬁlteringandorganization.Avarietyofsupervisedmethodsmaybeusedfordocumentorganizationinmanydomains.Theseincludelargedigitallibrariesofdocuments,webcollections,scientiﬁcliterature,1http://www.cs.waikato.ac.nz/ml/weka/2http://alias-i.com/lingpipe/ASurveyofTextClassiﬁcationAlgorithms165orevensocialfeeds.Hierarchicallyorganizeddocumentcollectionscanbeparticularlyusefulforbrowsingandretrieval[19].OpinionMining:Customerreviewsoropinionsareoftenshorttextdocumentswhichcanbeminedtodetermineusefulinforma-tionfromthereview.Detailsonhowclassiﬁcationcanbeusedinordertoperformopinionminingarediscussedin[89]andChapter13inthisbook.EmailClassiﬁcationandSpamFiltering:Itisoftende-sirabletoclassifyemail[23,27,85]inordertodetermineeitherthesubjectortodeterminejunkemail[113]inanautomatedway.Thisisalsoreferredtoasspamﬁlteringoremailﬁltering.Awidevarietyoftechniqueshavebeendesignedfortextclassiﬁcation.Inthischapter,wewilldiscussthebroadclassesoftechniques,andtheirusesforclassiﬁcationtasks.Wenotethattheseclassesoftechniquesalsogenerallyexistforotherdatadomainssuchasquantitativeorcategoricaldata.Sincetextmaybemodeledasquantitativedatawithfrequenciesonthewordattributes,itispossibletousemostofthemethodsforquantitativedatadirectlyontext.However,textisaparticularkindofdatainwhichthewordattributesaresparse,andhighdimensional,withlowfrequenciesonmostofthewords.Therefore,itiscriticaltodesignclassiﬁcationmethodswhicheﬀectivelyaccountforthesecharacteristicsoftext.Inthischapter,wewillfocusonthespeciﬁcchangeswhichareapplicabletothetextdomain.Somekeymethods,whicharecommonlyusedfortextclassiﬁcationareasfollows:DecisionTrees:Decisiontreesaredesignedwiththeuseofahi-erarchicaldivisionoftheunderlyingdataspacewiththeuseofdif-ferenttextfeatures.Thehierarchicaldivisionofthedataspaceisdesignedinordertocreateclasspartitionswhicharemoreskewedintermsoftheirclassdistribution.Foragiventextinstance,wedeterminethepartitionthatitismostlikelytobelongto,anduseitforthepurposesofclassiﬁcation.Pattern(Rule)-basedClassiﬁers:Inrule-basedclassiﬁerswedeterminethewordpatternswhicharemostlikelytoberelatedtothediﬀerentclasses.Weconstructasetofrules,inwhichtheleft-handsidecorrespondstoawordpattern,andtheright-handsidecorrespondstoaclasslabel.Theserulesareusedforthepurposesofclassiﬁcation.SVMClassiﬁers:SVMClassiﬁersattempttopartitionthedataspacewiththeuseoflinearornon-lineardelineationsbetweenthe166MININGTEXTDATAdiﬀerentclasses.Thekeyinsuchclassiﬁersistodeterminetheoptimalboundariesbetweenthediﬀerentclassesandusethemforthepurposesofclassiﬁcation.NeuralNetworkClassiﬁers:Neuralnetworksareusedinawidevarietyofdomainsforthepurposesofclassiﬁcation.Inthecontextoftextdata,themaindiﬀerenceforneuralnetworkclassiﬁersistoadapttheseclassiﬁerswiththeuseofwordfeatures.WenotethatneuralnetworkclassiﬁersarerelatedtoSVMclassiﬁers;indeed,theybothareinthecategoryofdiscriminativeclassiﬁers,whichareincontrastwiththegenerativeclassiﬁers[102].Bayesian(Generative)Classiﬁers:InBayesianclassiﬁers(alsocalledgenerativeclassiﬁers),weattempttobuildaprobabilisticclassiﬁerbasedonmodelingtheunderlyingwordfeaturesindiﬀer-entclasses.Theideaisthentoclassifytextbasedontheposteriorprobabilityofthedocumentsbelongingtothediﬀerentclassesonthebasisofthewordpresenceinthedocuments.OtherClassiﬁers:Almostallclassiﬁerscanbeadaptedtothecaseoftextdata.Someoftheotherclassiﬁersincludenearestneighborclassiﬁers,andgeneticalgorithm-basedclassiﬁers.Wewilldiscusssomeofthesediﬀerentclassiﬁersinsomedetailandtheiruseforthecaseoftextdata.Theareaoftextcategorizationissovastthatitisimpossibletocoverallthediﬀerentalgorithmsindetailinasinglechapter.Therefore,ourgoalistoprovidethereaderwithanoverviewofthemostimportanttechniques,andalsothepointerstothediﬀerentvariationsofthesetechniques.Featureselectionisanimportantproblemfortextclassiﬁcation.Infeatureselection,weattempttodeterminethefeatureswhicharemostrelevanttotheclassiﬁcationprocess.Thisisbecausesomeofthewordsaremuchmorelikelytobecorrelatedtotheclassdistributionthanothers.Therefore,awidevarietyofmethodshavebeenproposedintheliteratureinordertodeterminethemostimportantfeaturesforthepurposeofclassiﬁcation.Theseincludemeasuressuchasthegini-indexortheentropy,whichdeterminethelevelofwhichthepresenceofaparticularfeatureskewstheclassdistributionintheunderlyingdata.Wewillalsodiscussthediﬀerentfeatureselectionmethodswhicharecommonlyusedfortextclassiﬁcation.Therestofthischapterisorganizedasfollows.Inthenextsection,wewilldiscussmethodsforfeatureselectionintextclassiﬁcation.InsectionASurveyofTextClassiﬁcationAlgorithms1673,wewilldescribedecisiontreemethodsfortextclassiﬁcation.Rule-basedclassiﬁersaredescribedindetailinsection4.WediscussnaiveBayesclassiﬁersinsection5.Thenearestneighborclassiﬁerisdiscussedinsection7.Insection7,wewilldiscussanumberoflinearclassiﬁers,suchastheSVMclassiﬁer,directregressionmodelingandtheneuralnetworkclassiﬁer.Adiscussionofhowtheclassiﬁcationmethodscanbeadaptedtotextandwebdatacontaininghyperlinksisdiscussedinsec-tion8.Insection9,wediscussanumberofdiﬀerentmeta-algorithmsforclassiﬁcationsuchasboosting,baggingandensemblelearning.Section10containstheconclusionsandsummary.2.FeatureSelectionforTextClassiﬁcationBeforeanyclassiﬁcationtask,oneofthemostfundamentaltasksthatneedstobeaccomplishedisthatofdocumentrepresentationandfeatureselection.Whilefeatureselectionisalsodesirableinotherclassiﬁcationtasks,itisespeciallyimportantintextclassiﬁcationduetothehighdimensionalityoftextfeaturesandtheexistenceofirrelevant(noisy)features.Ingeneral,textcanberepresentedintwoseparateways.Theﬁrstisasabagofwords,inwhichadocumentisrepresentedasasetofwords,togetherwiththeirassociatedfrequencyinthedocument.Sucharepresentationisessentiallyindependentofthesequenceofwordsinthecollection.Thesecondmethodistorepresenttextdirectlyasstrings,inwhicheachdocumentisasequenceofwords.Mosttextclassiﬁcationmethodsusethebag-of-wordsrepresentationbecauseofitssimplicityforclassiﬁcationpurposes.Inthissection,wewilldiscusssomeofthemethodswhichareusedforfeatureselectionintextclassiﬁcation.Themostcommonfeatureselectionwhichisusedinbothsupervisedandunsupervisedapplicationsisthatofstop-wordremovalandstem-ming.Instop-wordremoval,wedeterminethecommonwordsinthedoc-umentswhicharenotspeciﬁcordiscriminatorytothediﬀerentclasses.Instemming,diﬀerentformsofthesamewordareconsolidatedintoasingleword.Forexample,singular,pluralanddiﬀerenttensesarecon-solidatedintoasingleword.Wenotethatthesemethodsarenotspeciﬁctothecaseoftheclassiﬁcationproblem,andareoftenusedinavari-etyofunsupervisedapplicationssuchasclusteringandindexing.Inthecaseoftheclassiﬁcationproblem,itmakessensetosupervisethefeatureselectionprocesswiththeuseoftheclasslabels.Thiskindofselectionprocessensuresthatthosefeatureswhicharehighlyskewedtowardsthepresenceofaparticularclasslabelarepickedforthelearningprocess.Awidevarietyoffeatureselectionmethodsarediscussedin[133,135].Manyofthesefeatureselectionmethodshavebeencomparedwithone168MININGTEXTDATAanother,andtheexperimentalresultsarepresentedin[133].Wewilldiscusseachofthesefeatureselectionmethodsinthissection.2.1GiniIndexOneofthemostcommonmethodsforquantifyingthediscriminationlevelofafeatureistheuseofameasureknownasthegini-index.Letp1(w)...pk(w)bethefractionofclass-labelpresenceofthekdiﬀerentclassesforthewordw.Inotherwords,pi(w)istheconditionalproba-bilitythatadocumentbelongstoclassi,giventhefactthatitcontainsthewordw.Therefore,wehave:k(cid:9)i=1pi(w)=1(6.1)Then,thegini-indexforthewordw,denotedbyG(w)isdeﬁned3asfollows:G(w)=k(cid:9)i=1pi(w)2(6.2)Thevalueofthegini-indexG(w)alwaysliesintherange(1/k,1).Highervaluesofthegini-indexG(w)representindicateagreaterdiscriminativepowerofthewordw.Forexample,whenalldocumentswhichcontainwordwbelongtoaparticularclass,thevalueofG(w)is1.Ontheotherhand,whendocumentscontainingwordwareevenlydistributedamongthekdiﬀerentclasses,thevalueofG(w)is1/k.Onecriticismwiththisapproachisthattheglobalclassdistributionmaybeskewedtobeginwith,andthereforetheabovemeasuremaysometimesnotaccuratelyreﬂectthediscriminativepoweroftheun-derlyingattributes.Therefore,itispossibletoconstructanormalizedgini-indexinordertoreﬂectthediscriminativepoweroftheattributesmoreaccurately.LetP1...Pkrepresenttheglobaldistributionsofthedocumentsinthediﬀerentclasses.Then,wedeterminethenormalizedprobabilityvaluep(cid:2)i(w)asfollows:p(cid:2)i(w)=pi(w)/Pi(cid:4)kj=1pj(w)/Pj(6.3)3Thegini-indexisalsosometimesdeﬁnedas1−(cid:2)ki=1pi(w)2,withlowervaluesindicatinggreaterdiscriminativepowerofthefeaturew.ASurveyofTextClassiﬁcationAlgorithms169Then,thegini-indexiscomputedintermsofthesenormalizedprobabil-ityvalues.G(w)=k(cid:9)i=1p(cid:2)i(w)2(6.4)TheuseoftheglobalprobabilitiesPiensuresthatthegini-indexmoreaccuratelyreﬂectsclass-discriminationinthecaseofbiasedclassdis-tributionsinthewholedocumentcollection.Foradocumentcorpuscontainingndocuments,dwords,andkclasses,thecomplexityoftheinformationgaincomputationisO(n·d·k).Thisisbecausethecom-putationofthetermpi(w)forallthediﬀerentwordsandtheclassesrequiresO(n·d·k)time.2.2InformationGainAnotherrelatedmeasurewhichiscommonlyusedfortextfeatureselectionisthatofinformationgainorentropy.LetPibetheglobalprobabilityofclassi,andpi(w)betheprobabilityofclassi,giventhatthedocumentcontainsthewordw.LetF(w)bethefractionofthedocumentscontainingthewordw.TheinformationgainmeasureI(w)foragivenwordwisdeﬁnedasfollows:I(w)=−k(cid:9)i=1Pi·log(Pi)+F(w)·k(cid:9)i=1pi(w)·log(pi(w))++(1−F(w))·k(cid:9)i=1(1−pi(w))·log(1−pi(w))ThegreaterthevalueoftheinformationgainI(w),thegreaterthedis-criminatorypowerofthewordw.Foradocumentcorpuscontainingndocumentsanddwords,thecomplexityoftheinformationgaincompu-tationisO(n·d·k).2.3MutualInformationThismutualinformationmeasureisderivedfrominformationtheory[31],andprovidesaformalwaytomodelthemutualinformationbetweenthefeaturesandtheclasses.ThepointwisemutualinformationMi(w)betweenthewordwandtheclassiisdeﬁnedonthebasisofthelevelofco-occurrencebetweentheclassiandwordw.Wenotethattheexpectedco-occurrenceofclassiandwordwonthebasisofmutualindependenceisgivenbyPi·F(w).Thetrueco-occurrenceisofcoursegivenbyF(w)·pi(w).Inpractice,thevalueofF(w)·pi(w)maybemuch170MININGTEXTDATAlargerorsmallerthanPi·F(w),dependinguponthelevelofcorrelationbetweentheclassiandwordw.Themutualinformationisdeﬁnedintermsoftheratiobetweenthesetwovalues.Speciﬁcally,wehave:Mi(w)=log(cid:12)F(w)·pi(w)F(w)·Pi(cid:13)=log(cid:12)pi(w)Pi(cid:13)(6.5)Clearly,thewordwispositivelycorrelatedtotheclassi,whenMi(w)>0,andthewordwisnegativelycorrelatedtoclassi,whenMi(w)<0.WenotethatMi(w)isspeciﬁctoaparticularclassi.Weneedtocomputetheoverallmutualinformationasafunctionofthemutualinformationofthewordwwiththediﬀerentclasses.ThesearedeﬁnedwiththeuseoftheaverageandmaximumvaluesofMi(w)overthediﬀerentclasses.Mavg(w)=k(cid:9)i=1Pi·Mi(w)Mmax(w)=maxi{Mi(w)}Eitherofthesemeasuresmaybeusedinordertodeterminetherelevanceofthewordw.Thesecondmeasureisparticularlyuseful,whenitismoreimportanttodeterminehighlevelsofpositivecorrelationofthewordwwithanyoftheclasses.2.4χ2-StatisticTheχ2statisticisadiﬀerentwaytocomputethelackofindependencebetweenthewordwandaparticularclassi.Letnbethetotalnumberofdocumentsinthecollection,pi(w)betheconditionalprobabilityofclassifordocumentswhichcontainw,Pibetheglobalfractionofdocumentscontainingtheclassi,andF(w)betheglobalfractionofdocumentswhichcontainthewordw.Theχ2-statisticofthewordbetweenwordwandclassiisdeﬁnedasfollows:χ2i(w)=n·F(w)2·(pi(w)−Pi)2F(w)·(1−F(w))·Pi·(1−Pi))(6.6)Asinthecaseofthemutualinformation,wecancomputeaglobalχ2statisticfromtheclass-speciﬁcvalues.Wecanuseeithertheaverageofmaximumvaluesinordertocreatethecompositevalue:χ2avg(w)=k(cid:9)i=1Pi·χ2i(w)χ2max(w)=maxiχ2i(w)ASurveyofTextClassiﬁcationAlgorithms171Wenotethattheχ2-statisticandmutualinformationarediﬀerentwaysofmeasuringthethecorrelationbetweentermsandcategories.Onemajoradvantageoftheχ2-statisticoverthemutualinformationmeasureisthatitisanormalizedvalue,andthereforethesevaluesaremorecomparableacrosstermsinthesamecategory.2.5FeatureTransformationMethods:SupervisedLSIWhilefeatureselectionattemptstoreducethedimensionalityofthedatabypickingfromtheoriginalsetofattributes,featuretransforma-tionmethodscreateanew(andsmaller)setoffeaturesasafunctionoftheoriginalsetoffeatures.Atypicalexampleofsuchafeaturetrans-formationmethodisLatentSemanticIndexing(LSI)[38],anditsprob-abilisticvariantPLSA[57].TheLSImethodtransformsthetextspaceofafewhundredthousandwordfeaturestoanewaxissystem(ofsizeaboutafewhundred)whicharealinearcombinationoftheoriginalwordfeatures.Inordertoachievethisgoal,PrincipalComponentAnalysistechniques[69]areusedtodeterminetheaxis-systemwhichretainsthegreatestlevelofinformationaboutthevariationsintheunderlyingat-tributevalues.ThemaindisadvantageofusingtechniquessuchasLSIisthattheseareunsupervisedtechniqueswhichareblindtotheunderlyingclass-distribution.Thus,thefeaturesfoundbyLSIarenotnecessarilythedirectionsalongwhichtheclass-distributionoftheunderlyingdoc-umentscanbebestseparated.Amodestlevelofsuccesshasbeenob-tainedinimprovingclassiﬁcationaccuracybyusingboostingtechniquesinconjunctionwiththeconceptualfeaturesobtainedfromunsupervisedpLSAmethod[17].AmorerecentstudyhassystematicallycomparedpLSAandLDA(whichisaBayesianversionofpLSA)intermsoftheireﬀectivenessintransformingfeaturesfortextcategorizationanddrawnasimilarconclusionandfoundthatpLSAandLDAtendtoperformsimilarly.Anumberoftechniqueshavealsobeenproposedtoperformthefea-turetransformationmethodsbyusingtheclasslabelsforeﬀectivesuper-vision.ThemostnaturalmethodistoadaptLSIinordertomakeitworkmoreeﬀectivelyforthesupervisedcase.Anumberofdiﬀerentmethodshavebeenproposedinthisdirection.Onecommonapproachistoper-formlocalLSIonthesubsetsofdatarepresentingtheindividualclasses,andidentifythediscriminativeeigenvectorsfromthediﬀerentreductionswiththeuseofaniterativeapproach[123].ThismethodisknownasSLSI(SupervisedLatentSemanticIndexing),andtheadvantagesofthemethodseemtoberelativelylimited,becausetheexperimentsin[123]172MININGTEXTDATAshowthattheimprovementsoverastandardSVMclassiﬁer,whichdidnotuseadimensionalityreductionprocess,arerelativelylimited.Theworkin[129]usesacombinationofclass-speciﬁcLSIandglobalanaly-sis.Asinthecaseof[123],class-speciﬁcLSIrepresentationsarecreated.TestdocumentsarecomparedagainsteachLSIrepresentationinordertocreatethemostdiscriminativereducedspace.OneproblemwiththisapproachisthatthediﬀerentlocalLSIrepresentationsuseadiﬀerentsubspace,andthereforeitisdiﬃculttocomparethesimilaritiesofthediﬀerentdocumentsacrossthediﬀerentsubspaces.Furthermore,boththemethodsin[123,129]tendtobecomputationallyexpensive.Amethodcalledsprinklingisproposedin[21],inwhichartiﬁcialtermsareaddedto(or“sprinkled”into)thedocuments,whichcorrespondtotheclasslabels.Inotherwords,wecreateatermcorrespondingtotheclasslabel,andaddittothedocument.LSIisthenperformedonthedocumentcollectionwiththeseaddedterms.Thesprinkledtermscanthenberemovedfromtherepresentation,oncetheeigenvectorshavebeendetermined.ThesprinkledtermshelpinmakingtheLSImoresen-sitivetotheclassdistributionduringthereductionprocess.Ithasalsobeenproposedin[21]thatitcanbegenerallyusefultomakethesprin-klingprocessadaptive,inwhichallclassesarenotnecessarilytreatedequally,buttherelationshipsbetweentheclassesareusedinordertoregulatethesprinklingprocess.Furthermore,methodshavealsobeenproposedin[21]tomakethesprinklingprocessadaptivetotheuseofaparticularkindofclassiﬁer.2.6SupervisedClusteringforDimensionalityReductionOnetechniquewhichiscommonlyusedforfeaturetransformationisthatoftextclustering[7,71,83,121].Inthesetechniques,theclus-tersareconstructedfromtheunderlyingtextcollection,withtheuseofsupervisionfromtheclassdistribution.Theexceptionis[83]inwhichsupervisionisnotused.Inthesimplestcase,eachclasscanbetreatedasaseparatecluster,thoughbetterresultsmaybeobtainedbyusingtheclassesforsupervisionoftheclusteringprocess.Thefrequentlyoccur-ringwordsinthesesupervisedclusterscanbeusedinordertocreatethenewsetofdimensions.Theclassiﬁcationcanbeperformedwithrespecttothisnewfeaturerepresentation.Oneadvantageofsuchanapproachisthatitretainsinterpretabilitywithrespecttotheoriginalwordsofthedocumentcollection.Thedisadvantageisthattheoptimumdirectionsofseparationmaynotnecessarilyberepresentedintheformofclustersofwords.Furthermore,theunderlyingaxesarenotnecessarilyorthonor-ASurveyofTextClassiﬁcationAlgorithms173maltooneanother.Theuseofsupervisedmethods[1,7,71,121]hasgenerallyledtogoodresultseitherintermsofimprovedclassiﬁcationaccuracy,orsigniﬁcantperformancegainsattheexpenseofasmallre-ductioninaccuracy.Theresultswiththeuseofunsupervisedclustering[83,87]aremixed.Forexample,theworkin[83]suggeststhattheuseofunsupervisedterm-clustersandphrasesisgenerallynothelpful[83]fortheclassiﬁcationprocess.Thekeyobservationin[83]isthatthelossofgranularityassociatedwiththeuseofphrasesandtermclustersisnotnecessarilyadvantageousfortheclassiﬁcationprocess.Theworkin[8]hasshownthattheuseoftheinformationbottleneckmethodforfeaturedistributionalclusteringcancreateclusteredpseudo-wordrepre-sentationswhicharequiteeﬀectivefortextclassiﬁcation.2.7LinearDiscriminantAnalysisAnothermethodforfeaturetransformationistheuseoflineardiscrim-inants,whichexplicitlytrytoconstructdirectionsinthefeaturespace,alongwhichthereisbestseparationofthediﬀerentclasses.AcommonmethodistheFisher’slineardiscriminant[46].ThemainideaintheFisher’sdiscriminantmethodistodeterminethedirectionsinthedataalongwhichthepointsareaswellseparatedaspossible.Thesubspaceoflowerdimensionalityisconstructedbyiterativelyﬁndingsuchunitvectorsαiinthedata,whereαiisdeterminedintheithiteration.Wewouldalsoliketoensurethatthediﬀerentvaluesofαiareorthonormaltooneanother.Ineachstep,wedeterminethisvectorαibydiscriminantanalysis,andprojectthedataontotheremainingorthonormalsubspace.Thenextvectorαi+1isfoundinthisorthonormalsubspace.Thequalityofvectorαiismeasuredbyanobjectivefunctionwhichmeasurestheseparationofthediﬀerentclasses.Thisobjectivefunctionreducesineachiteration,sincethevalueofαiinagiveniterationistheoptimumdiscriminantinthatsubspace,andthevectorfoundinthenextiterationistheoptimalonefromasmallersearchspace.Theprocessofﬁndinglineardiscriminantsiscontinueduntiltheclassseparation,asmeasuredbyanobjectivefunction,reducesbelowagiventhresholdforthevectordeterminedinthecurrentiteration.Thepowerofsuchadimensionalityreductionapproachhasbeenillustratedin[18],inwhichithasbeenshownthatasimpledecisiontreeclassiﬁercanperformmuchmoreef-fectivelyonthistransformeddata,ascomparedtomoresophisticatedclassiﬁers.Next,wediscusshowtheFisher’sdiscriminantisactuallyconstructed.First,wewillsetuptheobjectivefunctionJ(α)whichdeterminesthelevelofseparationofthediﬀerentclassesalongagivendirection(unit-174MININGTEXTDATAvector)α.ThissetsupthecrispoptimizationproblemofdeterminingthevalueofαwhichmaximizesJ(α).Forsimplicity,letusassumethecaseofbinaryclasses.LetD1andD2bethetwosetsofdocumentsbelongingtothetwoclasses.Then,theprojectionofadocumentX∈D1∪D2alongαisgivenbyX·α.Therefore,thesquaredclassseparationS(D1,D2,α)alongthedirectionαisgivenby:S(D1,D2,α)=!(cid:4)X∈D1α·X|D1|−(cid:4)X∈D2α·X|D2|"2(6.7)Inaddition,weneedtonormalizethisabsoluteclassseparationwiththeuseoftheunderlyingclassvariances.LetVar(D1,α)andVar(D2,α)betheindividualclassvariancesalongthedirectionα.Inotherwords,wehave:Var(D1,α)=(cid:4)X∈D1(X·α)2|D1|−!(cid:4)X∈D1X·α|D1|"2(6.8)ThevalueofVar(D2,α)canbedeﬁnedinasimilarway.Then,thenormalizedclass-separationJ(α)isdeﬁnedasfollows:J(α)=S(D1,D2,α)Var(D1,α)+Var(D2,α)(6.9)Theoptimalvalueofαneedstobedeterminedsubjecttotheconstraintthatαisaunitvector.Letμ1andμ2bethemeansofthetwodatasetsD1andD2,andC1andC2bethecorrespondingcovariancematrices.Itcanbeshownthattheoptimal(unscaled)directionα=α∗canbeexpressedinclosedform,andisgivenbythefollowing:α∗=(cid:12)C1+C22(cid:13)−1(μ1−μ2)(6.10)Themaindiﬃcultyincomputingtheaboveequationisthatthiscompu-tationrequirestheinversionofthecovariancematrix,whichissparseandcomputationallydiﬃcultinthehigh-dimensionaltextdomain.There-fore,agradientdescentapproachcanbeusedinordertodeterminethevalueofαinamorecomputationallyeﬀectiveway.Detailsoftheapproacharepresentedin[18].Anotherrelatedmethodwhichattemptstodetermineprojectiondi-rectionsthatmaximizethetopicaldiﬀerencesbetweendiﬀerentclassesistheTopicalDiﬀerenceFactorAnalysismethodproposedin[72].Theproblemhasbeenshowntobesolvableasageneralizedeigenvalueprob-lem.Themethodwasusedinconjunctionwithak-nearestneighborASurveyofTextClassiﬁcationAlgorithms175classiﬁer,anditwasshownthattheuseofthisapproachsigniﬁcantlyimprovestheaccuracyoveraclassiﬁerwhichusestheoriginalsetoffeatures.2.8GeneralizedSingularValueDecompositionWhilethemethoddiscussedaboveﬁndsonevectorαiatatimeinor-dertodeterminetherelevantdimensiontransformation,itispossibletobemuchmoredirectinﬁndingtheoptimalsubspacessimultaneouslybyusingageneralizedversionofdimensionalityreduction[58,59].Itisim-portanttonotethatthismethodhasreallybeenproposedin[58,59]asanunsupervisedmethodwhichpreservestheunderlyingclusteringstruc-ture,assumingthedatahasalreadybeenclusteredinapre-processingphase.Thus,thegeneralizeddimensionalityreductionmethodhasbeenproposedasamuchmoreaggressivedimensionalityreductiontechnique,whichpreservestheunderlyingclusteringstructureratherthanthein-dividualpoints.Thismethodcanhoweveralsobeusedasasupervisedtechniqueinwhichthediﬀerentclassesareusedasinputtothedi-mensionalityreductionalgorithm,insteadoftheclustersconstructedinthepre-processingphase[131].ThismethodisknownastheOptimalOrthogonalCentroidFeatureSelectionAlgorithm(OCFS),anditdi-rectlytargetsatthemaximizationofinter-classscatter.Thealgorithmisshowntohavepromisingresultsforsupervisedfeatureselectionin[131].2.9InteractionofFeatureSelectionwithClassiﬁcationSincetheclassiﬁcationandfeatureselectionprocessesaredependentupononeanother,itisinterestingtotesthowthefeatureselectionpro-cessinteractswiththeunderlyingclassiﬁcationalgorithms.Inthiscon-text,twoquestionsarerelevant:Canthefeature-speciﬁcinsightsobtainedfromtheintermediateresultsofsomeoftheclassiﬁcationalgorithmsbeusedforcreatingfeatureselectionmethodsthatcanbeusedmoregenerallybyotherclassiﬁcationalgorithms?Dothediﬀerentfeatureselectionmethodsworkbetterorworsewithdiﬀerentkindsofclassiﬁers?Boththeseissueswereexploredinsomedetailin[99].Inregardtotheﬁrstquestion,itwasshownin[99]thatfeatureselectionwhichwasderivedfromlinearclassiﬁers,providedveryeﬀectiveresults.Inregardtothesecondquestion,itwasshownin[99]thatthesophisticationof176MININGTEXTDATAthefeatureselectionprocessitselfwasmoreimportantthanthespeciﬁcpairingbetweenthefeatureselectionprocessandtheclassiﬁer.LinearClassiﬁersarethoseforwhichtheoutputofthelinearpredic-torisdeﬁnedtobep=A·X+b,whereX=(x1...xn)isthenormalizeddocumentwordfrequencyvector,A=(a1...an)isavectoroflinearco-eﬃcientswiththesamedimensionalityasthefeaturespace,andbisascalar.BoththebasicneuralnetworkandbasicSVMclassiﬁers[65](whichwillbediscussedlaterinthischapter)belongtothiscategory.Theideahereisthatifthecoeﬃcientaiisclosetozero,thenthecorre-spondingfeaturedoesnothaveasigniﬁcanteﬀectontheclassiﬁcationprocess.Ontheotherhand,sincelargeabsolutevaluesofajmaysig-niﬁcantlyinﬂuencetheclassiﬁcationprocess,suchfeaturesshouldbeselectedforclassiﬁcation.InthecontextoftheSVMmethod,whichattemptstodeterminelinearplanesofseparationbetweenthediﬀerentclasses,thevectorAisessentiallythenormalvectortothecorrespond-ingplaneofseparationbetweenthediﬀerentclasses.Thisintuitivelyexplainsthechoiceofselectingfeatureswithlargevaluesof|aj|.Itwasshownin[99]thatthisclassoffeatureselectionmethodswasquitero-bust,andperformedwellevenforclassiﬁerssuchastheNaiveBayesmethod,whichwereunrelatedtothelinearclassiﬁersfromwhichthesefeatureswerederived.FurtherdiscussionsonhowSVMandmaximummargintechniquescanbeusedforfeatureselectionmaybefoundin[51,56].3.DecisionTreeClassiﬁersAdecisiontree[106]isessentiallyahierarchicaldecompositionofthe(training)dataspace,inwhichapredicateoraconditionontheat-tributevalueisusedinordertodividethedataspacehierarchically.Inthecontextoftextdata,suchpredicatesaretypicallyconditionsonthepresenceorabsenceofoneormorewordsinthedocument.Thedivisionofthedataspaceisperformedrecursivelyinthedecisiontree,untiltheleafnodescontainacertainminimumnumberofrecords,orsomecondi-tionsonclasspurity.Themajorityclasslabel(orcost-weightedmajoritylabel)intheleafnodeisusedforthepurposesofclassiﬁcation.Foragiventestinstance,weapplythesequenceofpredicatesatthenodes,inordertotraverseapathofthetreeintop-downfashionanddeterminetherelevantleafnode.Inordertofurtherreducetheoverﬁtting,someofthenodesmaybebeprunedbyholdingoutapartofthedata,whicharenotusedtoconstructthetree.Theportionofthedatawhichisheldoutisusedinordertodeterminewhetherornottheconstructedleafnodeshouldbeprunedornot.Inparticular,iftheclassdistributionintheASurveyofTextClassiﬁcationAlgorithms177trainingdata(fordecisiontreeconstruction)isverydiﬀerentfromtheclassdistributioninthetrainingdatawhichisusedforpruning,thenitisassumedthatthenodeoverﬁtsthetrainingdata.Suchanodecanbepruned.Adetaileddiscussionofdecisiontreemethodsmaybefoundin[15,42,62,106].Intheparticularcaseoftextdata,thepredicatesforthedecisiontreenodesaretypicallydeﬁnedintermsofthetermsintheunderlyingtextcollection.Forexample,anodemaybepartitionedintoitschildrennodesdependinguponthepresenceorabsenceofaparticularterminthedocument.Wenotethatdiﬀerentnodesatthesamelevelofthetreemayusediﬀerenttermsforthepartitioningprocess.Manyotherkindsofpredicatesarepossible.Itmaynotbenecessarytouseindividualtermsforpartitioning,butonemaymeasurethesimi-larityofdocumentstocorrelatedsetsofterms.Thesecorrelatedsetsoftermsmaybeusedtofurtherpartitionthedocumentcollection,basedonthesimilarityofthedocumenttothem.Thediﬀerentkindsofsplitsareasfollows:SingleAttributeSplits:Inthiscase,weusethepresenceorabsenceofparticularwords(orevenphrases)ataparticularnodeinthetreeinordertoperformthesplit.Atanygivenlevel,wepickthewordwhichprovidesthemaximumdiscriminationbetweenthediﬀerentclasses.Measuressuchasthegini-indexorinformationgaincanbeusedinordertodeterminethelevelofentropy.Forexample,theDT-min10algorithm[81]isbasedonthisapproach.Similarity-basedmulti-attributesplit:Inthiscase,weusedocuments(ormeta-documentssuchasfrequentwordclusters),andusethesimilarityofthedocumentstothesewordsclustersinordertoperformthesplit.Fortheselectedwordcluster,thedocu-mentsarefurtherpartitionedintogroupsbyrankorderingthedoc-umentsbysimilarityvalue,andsplittingataparticularthreshold.Weselecttheword-clusterforwhichrank-orderingbysimilarityprovidesthebestseparationbetweenthediﬀerentclasses.Discriminant-basedmulti-attributesplit:Forthemulti-attributecase,anaturalchoiceforperformingthesplitistousediscriminantssuchastheFisherdiscriminantforperform-ingthesplit.Suchdiscriminantsprovidethedirectionsinthedataalongwhichtheclassesarebestseparated.Thedocumentsarepro-jectedonthisdiscriminantvectorforrankordering,andthensplitataparticularcoordinate.Thechoiceofsplitpointispickedinor-dertomaximizethediscriminationbetweenthediﬀerentclasses.178MININGTEXTDATATheworkin[18]usesadiscriminant-basedsplit,thoughthisisdoneindirectlybecauseoftheuseofafeaturetransformationtothediscriminantrepresentation,beforebuildingtheclassiﬁer.Someoftheearliestimplementationofclassiﬁersmaybefoundin[80,81,87,127].Thelastoftheseisreallyarule-basedclassiﬁer,whichcanbeinterpretedeitherasadecisiontreeorarule-basedclassiﬁer.MostofthedecisiontreeimplementationsinthetextliteraturetendtobesmallvariationsonstandardpackagessuchasID3andC4.5,inordertoadaptthemodeltotextclassiﬁcation.Manyoftheseclassiﬁersaretypicallydesignedasbaselinesforcomparisonwithotherlearningmodels[65].AwellknownimplementationofthedecisiontreeclassiﬁerisbasedontheC4.5taxonomyofalgorithms[106]ispresentedin[87].Morespecif-ically,theworkin[87]usesthesuccessortotheC4.5algorithm,whichisalsoknownastheC5algorithm.Thisalgorithmusessingle-attributesplitsateachnode,wherethefeaturewiththehighestinformationgain[31]isusedforthepurposeofthesplit.Decisiontreeshavealsobeenusedinconjunctionwithboostingtechniques.Anadaptiveboostingtechnique[48]isusedinordertoimprovetheaccuracyofclassiﬁcation.Inthistechnique,weusendiﬀerentclassiﬁers.Theithclassiﬁeriscon-structedbyexaminingtheerrorsofthe(i−1)thclassiﬁer.Avotingschemeisappliedamongtheseclassiﬁersinordertoreporttheﬁnalla-bel.Otherboostingtechniquesforimprovingdecisiontreeclassiﬁcationaccuracyareproposedin[116].Theworkin[43]presentsadecisiontreealgorithmbasedontheBayesianapproachdevelopedin[22].Inthisclassiﬁer,thedecisiontreeisgrownbyrecursivegreedysplits,wherethesplitsarechosenusingBayesianposteriorprobabilityofmodelstructure.Thestructuralpriorpenalizesadditionalmodelparametersateachnode.Theoutputoftheprocessisaclassprobabilityratherthanadeterministicclasslabelforthetestinstance.4.Rule-basedClassiﬁersDecisiontreesarealsogenerallyrelatedtorule-basedclassiﬁers.Inrule-basedclassiﬁers,thedataspaceismodeledwithasetofrules,inwhichthelefthandsideisaconditionontheunderlyingfeatureset,andtherighthandsideistheclasslabel.Therulesetisessentiallythemodelwhichisgeneratedfromthetrainingdata.Foragiventestinstance,wedeterminethesetofrulesforwhichthetestinstancesatisﬁestheconditiononthelefthandsideoftherule.Wedeterminethepredictedclasslabelasafunctionoftheclasslabelsoftheruleswhicharesatisﬁedbythetestinstance.Wewilldiscussmoreonthisissueslightlylater.ASurveyofTextClassiﬁcationAlgorithms179Initsmostgeneralform,thelefthandsideoftheruleisabooleancon-dition,whichisexpressedinDisjunctiveNormalForm(DNF).However,inmostcases,theconditiononthelefthandsideismuchsimplerandrepresentsasetofterms,allofwhichmustbepresentinthedocumentfortheconditiontobesatisﬁed.Theabsenceoftermsisrarelyused,becausesuchrulesarenotlikelytobeveryinformativeforsparsetextdata,inwhichmostwordsinthelexiconwilltypicallynotbepresentinitbydefault(sparsenessproperty).Also,whilethesetintersectionofconditionsontermpresenceisusedoften,theunionofsuchconditionsisrarelyusedinasinglerule.Thisisbecausesuchrulescanbesplitintotwoseparaterules,eachofwhichismoreinformativeonitsown.Forexample,theruleHonda∪Toyota⇒CarscanbereplacedbytwoseparaterulesHonda⇒CarsandToyota⇒Carswithoutanylossofinformation.Infact,sincetheconﬁdenceofeachofthetworulescannowbemeasuredseparately,thiscanbemoreuseful.Ontheotherhand,theruleHonda∩Toyota⇒Carsiscertainlymuchmoreinformativethantheindividualrules.Thus,inpractice,forsparsedatasetssuchastext,rulesaremuchmorelikelytobeexpressedasasimpleconjunctionofconditionsontermpresence.Wenotethatdecisiontreesanddecisionrulesbothtendtoencoderulesonthefeaturespace,exceptthatthedecisiontreetendstoachievethisgoalwithahierarchicalapproach.Infact,theoriginalworkonde-cisiontreeconstructioninC4.5[106]studiedthedecisiontreeproblemanddecisionruleproblemwithinasingleframework.Thisisbecauseaparticularpathinthedecisiontreecanbeconsideredaruleforclassiﬁ-cationofthetextinstance.Themaindiﬀerenceisthatthedecisiontreeframeworkisastricthierarchicalpartitioningofthedataspace,whereasrule-basedclassiﬁersallowforoverlapsinthedecisionspace.Thegen-eralprincipleistocreatearuleset,suchthatallpointsinthedecisionspacearecoveredbyatleastonerule.Inmostcases,thisisachievedbygeneratingasetoftargetedruleswhicharerelatedtothediﬀerentclasses,andonedefaultcatch-allrule,whichcancoveralltheremaininginstances.Anumberofcriteriacanbeusedinordertogeneratetherulesfromthetrainingdata.Twoofthemostcommonconditionswhichareusedforrulegenerationarethoseofsupportandconﬁdence.Theseconditionsarecommontoallrule-basedpatternclassiﬁers[88]andmaybedeﬁnedasfollows:Support:Thisquantiﬁestheabsolutenumberofinstancesinthetrainingdatasetwhicharerelevanttotherule.Forexample,inacorpuscontaining100,000documents,aruleinwhichboththeleft-handsetandright-handsidearesatisﬁedby50,000documents180MININGTEXTDATAismoreimportantthanarulewhichissatisﬁedby20documents.Essentially,thisquantiﬁesthestatisticalvolumewhichisassoci-atedwiththerule.However,itdoesnotencodethestrengthoftherule.Conﬁdence:Thisquantiﬁestheconditionalprobabilitythattherighthandsideoftheruleissatisﬁed,iftheleft-handsideissatisﬁed.Thisisamoredirectmeasureofthestrengthoftheunderlyingrule.Wenotethattheafore-mentionedmeasuresarenottheonlymeasureswhicharepossible,butarewidelyusedinthedataminingandmachinelearningliterature[88]forbothtextualandnon-textualdata,becauseoftheirintuitivenatureandsimplicityofinterpretation.Onecriticismoftheabovemeasuresisthattheydonotnormalizeforthea-prioripresenceofdiﬀerenttermsandfeatures,andarethereforepronetomis-interpretation,whenthefeaturedistributionorclass-distributionintheunderlyingdatasetisskewed.Thetrainingphaseconstructsalltherules,whicharebasedonmea-suressuchastheabove.Foragiventestinstance,wedeterminealltheruleswhicharerelevanttothetestinstance.Sinceweallowoverlaps,itispossiblethatmorethanonerulemayberelevanttothetestinstance.Iftheclasslabelsontherighthandsidesofalltheserulesarethesame,thenitiseasytopickthisclassastherelevantlabelforthetestinstance.Ontheotherhand,theproblembecomesmorechallengingwhenthereareconﬂictsbetweenthesediﬀerentrules.Avarietyofdiﬀerentmeth-odsareusedtorank-orderthediﬀerentrules[88],andreportthemostrelevantruleasafunctionofthesediﬀerentrules.Forexample,acom-monapproachistorank-ordertherulesbytheirconﬁdence,andpickthetop-krulesasthemostrelevant.Theclasslabelontheright-handsideofthemostnumberoftheserulesisreportedastherelevantone.Aminterestingrule-basedclassiﬁerforthecaseoftextdatahasbeenproposedin[5].Thistechniqueusesaniterativemethodology,whichwasﬁrstproposedin[128]forgeneratingrules.Speciﬁcally,themethoddeterminesthesinglebestrulerelatedtoanyparticularclassinthetrainingdata.Thebestruleisdeﬁnedintermsoftheconﬁdenceoftherule,asdeﬁnedabove.Thisrulealongwithitscorrespondinginstancesareremovedfromthetrainingdataset.Thisapproachiscontinuouslyrepeated,untilitisnolongerpossibletoﬁndstrongrulesinthetrainingdata,andcompletepredictivevalueisachieved.Thetransformationofdecisiontreestorule-basedclassiﬁersisdis-cussedgenerallyin[106],andfortheparticularcaseoftextdatain[68].Foreachpathinthedecisiontreearulecanbegenerated,whichrepre-ASurveyofTextClassiﬁcationAlgorithms181sentstheconjunctionofthepredicatesalongthatpath.Oneadvantageoftherule-basedclassiﬁeroveradecisiontreeisthatitisnotrestrictedtoastricthierarchicalpartitioningofthefeaturespace,anditallowsforoverlapsandinconsistenciesamongthediﬀerentrules.Therefore,ifanewsetoftrainingexamplesareencountered,whicharerelatedtoanewclassornewpartofthefeaturespace,thenitisrelativelyeasytomodifytherulesetforthesenewexamples.Furthermore,rule-basedclassiﬁersalsoallowforatremendousinterpretabilityoftheunderlyingdecisionspace.Incasesinwhichdomain-speciﬁcexpertknowledgeisknown,itispossibletoencodethisintotheclassiﬁcationprocessbymanualadditionofrules.Inmanypracticalscenarios,rule-basedtech-niquesaremorecommonlyusedbecauseoftheireaseofmaintenanceandinterpretability.Oneofthemostcommonrule-basedtechniquesistheRIPPERtech-niquediscussedin[26–28].TheRIPPERtechniqueessentiallydeter-minesfrequentcombinationsofwordswhicharerelatedtoaparticularclass.TheRIPPERmethodhasbeenshowntobeespeciallyeﬀectiveinscenarioswherethenumberoftrainingexamplesisrelativelysmall[25].Anothermethodcalledsleepingexperts[26,49]generatesruleswhichtaketheplacementofthewordsinthedocumentsintoaccount.MostoftheclassiﬁerssuchasRIPPER[26–28]treatdocumentsasset-valuedobjects,andgeneraterulesbasedontheco-presenceofthewordsinthedocuments.Therulesinsleepingexpertsarediﬀerentfrommostoftheotherclassiﬁersinthisrespect.Inthiscase[49,26],thelefthandsideoftheruleconsistsofasparsephrase,whichisagroupofwordsclosetooneanotherinthedocument(thoughnotnecessarilycompletelysequential).Eachsuchrulehasaweight,whichdependsuponitsclassiﬁcationspeci-ﬁcityinthetrainingdata.Foragiventestexample,wedeterminethesparsephraseswhicharepresentinit,andperformtheclassiﬁcationbycombiningtheweightsofthediﬀerentrulesthatareﬁred.ThesleepingexpertsandRIPPERsystemshavebeencomparedin[26],andhavebeenshowntohaveexcellentperformanceonavarietyoftextcollections.5.ProbabilisticandNaiveBayesClassiﬁersProbabilisticclassiﬁersaredesignedtouseanimplicitmixturemodelforgenerationoftheunderlyingdocuments.Thismixturemodeltypi-callyassumesthateachclassisacomponentofthemixture.Eachmix-turecomponentisessentiallyagenerativemodel,whichprovidestheprobabilityofsamplingaparticulartermforthatcomponentorclass.Thisiswhythiskindofclassiﬁersareoftenalsocalledgenerativeclassi-ﬁer.ThenaiveBayesclassiﬁerisperhapsthesimplestandalsothemost182MININGTEXTDATAcommonlyusedgenerativeclassifers.Itmodelsthedistributionofthedocumentsineachclassusingaprobabilisticmodelwithindependenceassumptionsaboutthedistributionsofdiﬀerentterms.TwoclassesofmodelsarecommonlyusedfornaiveBayesclassiﬁcation.Bothmodelsessentiallycomputetheposteriorprobabilityofaclass,basedonthedistributionofthewordsinthedocument.Thesemodelsignoretheac-tualpositionofthewordsinthedocument,andworkwiththe“bagofwords”assumption.Themajordiﬀerencebetweenthesetwomodelsistheassumptionintermsoftaking(ornottaking)wordfrequenciesintoaccount,andthecorrespondingapproachforsamplingtheprobabilityspace:MultivariateBernoulliModel:Inthismodel,weusethepres-enceorabsenceofwordsinatextdocumentasfeaturestorepresentadocument.Thus,thefrequenciesofthewordsarenotusedforthemodelingadocument,andthewordfeaturesinthetextareassumedtobebinary,withthetwovaluesindicatingpresenceorabsenceofawordintext.Sincethefeaturestobemodeledarebinary,themodelfordocumentsineachclassisamultivariateBernoullimodel.MultinomialModel:Inthismodel,wecaptuerthefrequenciesoftermsinadocumentbyrepresentingadocumentwithabagofwords.Thedocumentsineachclasscanthenbemodeledassamplesdrawnfromamultinomialworddistribution.Asaresult,theconditionalprobabilityofadocumentgivenaclassissimplyaproductoftheprobabilityofeachobservedwordinthecorre-spondingclass.Nomatterhowwemodelthedocumentsineachclass(beitamulti-variateBernoullimodeloramultinomialmodel),thecomponentclassmodels(i.e.,generativemodelsfordocumentsineachclass)canbeusedinconjunctionwiththeBayesruletocomputetheposteriorprobabilityoftheclassforagivendocument,andtheclasswiththehighestposteriorprobabilitycanthenbeassignedtothedocument.Therehasbeenconsiderableconfusionintheliteratureonthedif-ferencesbetweenthemultivariateBernoullimodelandthemultinomialmodel.Agoodexpositionofthediﬀerencesbetweenthesetwomodelsmaybefoundin[94].Inthefollowing,wedescribethesetwomodelsinmoredetail.ASurveyofTextClassiﬁcationAlgorithms1835.1BernoulliMultivariateModelThisclassoftechniquestreatsadocumentasasetofdistinctwordswithnofrequencyinformation,inwhichanelement(term)maybeeitherpresentorabsent.Theseminalworkonthisapproachmaybefoundin[82].LetusassumethatthelexiconfromwhichthetermsaredrawnaredenotedbyV={t1...tn}.Letusassumethatthebag-of-words(ortextdocument)inquestioncontainsthetermsQ={ti1...tim},andtheclassisdrawnfrom{1...k}.Then,ourgoalistomodeltheposteriorprobabilitythatthedocument(whichisassumedtobegeneratedfromthetermdistributionsofoneoftheclasses)belongstoclassi,giventhatitcontainsthetermsQ={ti1...tim}.ThebestwaytounderstandtheBayesmethodisbyunderstandingitasasampling/generativeprocessfromtheunderlyingmixturemodelofclasses.TheBayesprobabilityofclassicanbemodeledbysamplingasetoftermsTfromthetermdistributionoftheclasses:IfwesampledatermsetTofanysizefromthetermdistributionofoneoftherandomlychosenclasses,andtheﬁnaloutcomeisthesetQ,thenwhatistheposteriorprobabilitythatwehadoriginallypickedclassiforsampling?Thea-prioriprobabilityofpickingclassiisequaltoitsfractionalpresenceinthecollection.WedenotetheclassofthesampledsetTbyCTandthecorrespondingposteriorprobabilitybyP(CT=i|T=Q).Thisisessentiallywhatwearetryingtoﬁnd.Itisimportanttonotethatsincewedonotallowreplacement,weareessentiallypickingasubsetoftermsfromVwithnofrequenciesattachedtothepickedterms.Therefore,thesetQmaynotcontainduplicateelements.UnderthenaiveBayesassumptionofindependencebetweenterms,thisisessentiallyequivalenttoeitherselectingornotselectingeachtermwithaprobabilitythatdependsupontheunderlyingtermdistribution.Furthermore,itisalsoimportanttonotethatthismodelhasnorestrictiononthenumberoftermspicked.Aswewillseelater,theseassumptionsarethekeydiﬀerenceswiththemultinomialBayesmodel.TheBayesapproachclassiﬁesagivensetQbasedontheposteriorprobabilitythatQisasamplefromthedatadistributionofclassi,i.e.,P(CT=i|T=Q),anditrequiresustocomputethefollowingtwoprobabilitiesinordertoachievethis:1WhatisthepriorprobabilitythatasetTisasamplefromthetermdistributionofclassi?ThisprobabilityisdenotedbyP(CT=i).184MININGTEXTDATA2IfwesampledasetTofanysizefromthetermdistributionofclassi,thenwhatistheprobabilitythatoursampleisthesetQ?ThisprobabilityisdenotedbyP(T=Q|CT=i).WewillnowprovideamoremathematicaldescriptionofBayesmod-eling.Inotherwords,wewishtomodelP(CT=i|Qissampled).WecanusetheBayesruleinordertowritethisconditionalprobabilityinawaythatcanbeestimatedmoreeasilyfromtheunderlyingcorpus.Inotherwords,wecansimplifyasfollows:P(CT=i|T=Q)=P(CT=i)·P(T=Q|CT=i)P(T=Q)=P(CT=i)·(cid:20)tj∈QP(tj∈T|CT=i)·(cid:20)tj(cid:6)∈Q(1−P(tj∈T|CT=i))P(T=Q)Wenotethatthelastconditionoftheabovesequenceusesthenaiveindependenceassumption,becauseweareassumingthattheprobabilitiesofoccurrenceofthediﬀerenttermsareindependentofoneanother.Thisispracticallynecessary,inordertotransformtheprobabilityequationstoaformwhichcanbeestimatedfromtheunderlyingdata.TheclassassignedtoQistheonewiththehighestposteriorproba-bilitygivenQ.Itiseasytoseethatthisdecisionisnotaﬀectedbythedenominator,whichisthemarginalprobabilityofobservingQ.Thatis,wewillassignthefollowingclasstoQ:ˆi=argmaxiP(CT=i|T=Q)=argmaxiP(CT=i)·(cid:2)tj∈QP(tj∈T|CT=i)·(cid:2)tj(cid:6)∈Q(1−P(tj∈T|CT=i)).Itisimportanttonotethatalltermsintherighthandsideofthelastequationcanbeestimatedfromthetrainingcorpus.ThevalueofP(CT=i)isestimatedastheglobalfractionofdocumentsbelongingtoclassi,thevalueofP(tj∈T|CT=i)isthefractionofdocumentsintheithclasswhichcontaintermtj,andthevalueofP(tj∈T)isthefractionofdocuments(inthewholecorpus)containingthetermtj.Wenotethatalloftheabovearemaximumlikelihoodestimatesofthecorrespondingprobabilities.Inpractice,Laplaciansmoothing[124]isused,inwhichsmallvaluesareaddedtothefrequenciesoftermsinordertoavoidzeroprobabilitiesofsparselypresentterms.InmostapplicationsoftheBayesclassiﬁer,weonlycareabouttheidentityoftheclasswiththehighestprobabilityvalue,ratherthantheASurveyofTextClassiﬁcationAlgorithms185actualprobabilityvalueassociatedwithit,whichiswhywedonotneedtocomputethenormalizerP(T=Q).Infact,inthecaseofbinaryclasses,anumberofsimpliﬁcationsarepossibleincomputingtheseBayes“probability”valuesbyusingthelogarithmoftheBayesexpression,andremovinganumberoftermswhichdonotaﬀecttheorderingofclassprobabilities.Wereferthereaderto[108]fordetails.Althoughforclassiﬁcation,wedonotneedtocomputeP(T=Q),someapplicationsnecessitatetheexactcomputationoftheposteriorprobabilityP(CT=i|T=Q).Forexample,inthecaseofsupervisedanomalydetection(orrareclassdetection),theexactposteriorproba-bilityvalueP(CT=i|T=Q)isneededinordertofairlycomparetheprobabilityvalueoverdiﬀerenttestinstances,andrankthemfortheiranomalousnature.Insuchcases,wewouldneedtocomputeP(T=Q).Onewaytoachievethisissimplytotakeasumoveralltheclasses:P(T=Q)=(cid:9)iP(T=Q|CT=i)P(CT=i).Thisisbasedontheconditionalindependenceoffeaturesforeachclass.Sincetheparametervaluesareestimatedforeachclassseparately,wemayfacetheproblemofdatasparseness.Analternativewayofcom-putingit,whichmayalleviatethedatasparsenessproblem,istofurthermaketheassumptionof(global)independenceofterms,andcomputeitas:P(T=Q)=(cid:2)j∈QP(tj∈T)·(cid:2)tj(cid:6)∈Q(1−P(tj∈T))wherethetermprobabilitiesarebasedonglobaltermdistributionsinalltheclasses.Anaturalquestionarises,astowhetheritispossibletodesignaBayesclassiﬁerwhichdoesnotusethenaiveassumption,andmodelsthede-pendenciesbetweenthetermsduringtheclassiﬁcationprocess.MethodswhichgeneralizethenaiveBayesclassiﬁerbynotusingtheindependenceassumptiondonotworkwellbecauseofthehighercomputationalcostsandtheinabilitytoestimatetheparametersaccuratelyandrobustlyinthepresenceoflimiteddata.Themostinterestinglineofworkinrelax-ingtheindependenceassumptionisprovidedin[112].Inthiswork,thetradeoﬀsinspectrumofallowingdiﬀerentlevelsofdependenceamongthetermshavebeenexplored.Ontheoneextreme,anassumptionofcompletedependenceresultsinaBayesiannetworkmodelwhichturnsouttobecomputationallyveryexpensive.Ontheotherhand,ithasbeenshownthatallowinglimitedlevelsofdependencecanprovidegoodtradeoﬀsbetweenaccuracyandcomputationalcosts.Wenotethatwhiletheindependenceassumptionisapracticalapproximation,ithasbeen186MININGTEXTDATAshownin[29,39]thattheapproachdoeshavesometheoreticalmerit.Indeed,extensiveexperimentaltestshavetendedtoshowthatthenaiveclassiﬁerworksquitewellinpractice.Anumberofpapers[19,64,74,79,108,113]haveusedthenaiveBayesapproachforclassiﬁcationinanumberofdiﬀerentapplicationdomains.Theclassiﬁerhasalsobeenextendedtomodelingtemporallyawaretrainingdata,inwhichtheimportanceofadocumentmaydecaywithtime[114].Asinthecaseofotherstatisticalclassiﬁers,thenaiveBayesclassiﬁer[113]caneasilyincorporatedomain-speciﬁcknowledgeintotheclassiﬁcationprocess.Theparticulardomainthattheworkin[113]addressesisthatofﬁlteringjunkemail.Thus,forsuchaproblem,weoftenhavealotofadditionaldomainknowledgewhichhelpsusde-terminewhetheraparticularemailmessageisjunkornot.Forexample,somecommoncharacteristicsoftheemailwhichwouldmakeanemailtobemoreorlesslikelytobejunkareasfollows:Thedomainofthesendersuchas.eduor.comcanmakeanemailtobemoreorlesslikelytobejunk.Phrasessuchas“FreeMoney”oroveremphasizedpunctuationsuchas“!!!”canmakeanemailmorelikelytobejunk.Whethertherecipientofthemessagewasaparticularuser,oramailinglist.TheBayesmethodprovidesanaturalwaytoincorporatesuchadditionalinformationintotheclassiﬁcationprocess,bycreatingnewfeaturesforeachofthesecharacteristics.ThestandardBayestechniqueisthenusedinconjunctionwiththisaugmentedrepresentationforclassiﬁcation.TheBayestechniquehasalsobeenusedinconjunctionwiththeincorpora-tionofotherkindsofdomainknowledge,suchastheincorporationofhyperlinkinformationintotheclassiﬁcationprocess[20,104].TheBayesmethodisalsosuitedtohierarchicalclassiﬁcation,whenthetrainingdataisarrangedinataxonomyoftopics.Forexample,theOpenDirectoryProject(ODP),Yahoo!Taxonomy,andavarietyofnewssiteshavevastcollectionsofdocumentswhicharearrangedintohierarchicalgroups.Thehierarchicalstructureofthetopicscanbeex-ploitedtoperformmoreeﬀectiveclassiﬁcation[19,74],becauseithasbeenobservedthatcontext-sensitivefeatureselectioncanprovidemoreusefulclassiﬁcationresults.Inhierarchicalclassiﬁcation,aBayesclassi-ﬁerisbuiltateachnode,whichthenprovidesuswiththenextbranchtofollowforclassiﬁcationpurposes.Twosuchmethodsareproposedin[19,74],inwhichnodespeciﬁcfeaturesareusedfortheclassiﬁcationprocess.Clearly,muchfewerfeaturesarerequiredataparticularnodeASurveyofTextClassiﬁcationAlgorithms187inthehierarchy,becausethefeatureswhicharepickedarerelevanttothatbranch.Anexamplein[74]suggeststhatabranchofthetaxon-omywhichisrelatedtoComputermayhavenorelationshipwiththeword“cow”.Thesenode-speciﬁcfeaturesarereferredtoassignaturesin[19].Furthermore,ithasbeenobservedin[19]thatinagivennode,themostdiscriminativefeaturesforagivenclassmaybediﬀerentfromtheirparentnodes.Forexample,theword“health”maybediscrimi-nativefortheYahoo!category@Health,buttheword“baby”maybemuchmorediscriminativeforthecategory@Health@Nursing.Thus,itiscriticaltohaveanappropriatefeatureselectionprocessateachnodeoftheclassiﬁcationtree.Themethodsin[19,74]usediﬀerentmethodsforthispurpose.Theworkin[74]usesaninformation-theoreticapproach[31]forfeatureselectionwhichtakesintoaccountthedependenciesbe-tweentheattributes[112].Thealgorithmgreedilyeliminatesthefeaturesone-by-onesoastheleastdisrupttheconditionalclassdistributionatthatnode.Thenode-speciﬁcfeaturesarereferredtoassignaturesin[19].Thesenode-speciﬁcsignaturesarecomputedbycalculatingtheratioofintra-classvariancetointer-classvarianceforthediﬀerentwordsateachnodeofthetree.WenotethatthismeasureisthesameasthatoptimizedbytheFisher’sdiscriminant,exceptthatitisappliedtotheoriginalsetofwords,ratherthansolvedasageneraloptimizationprobleminwhicharbitrarydirectionsinthedataarepicked.ABayesianclassiﬁerisconstructedateachnodeinordertodeterminetheappropriatebranch.Asmallnumberofcontext-sensitivefeaturesprovideOneadvantageofthesemethodsisthatBayesianclassiﬁersworkmuchmoreeﬀectivelywithamuchsmallernumberoffeatures.Anothermajordiﬀerencebetweenthetwomethodsisthattheworkin[74]usestheBernoullimodel,whereasthatin[19]usesthemultinomialmodel,whichwillbediscussedinthenextsubsection.Thisapproachin[74]isreferredtoasthePachinkoMachineclassiﬁerandthatin[19]isknownasTAPER(TaxonomyandPathEnhancedRetrievalSystem).Othernoteworthymethodsforhierarchicalclassiﬁcationareproposedin[11,130,95].Thework[11]addressestwocommonproblemsasso-ciatedwithhierarchicaltextclassiﬁcation:(1)errorpropagation;(2)non-lineardecisionsurfaces.Theproblemoferrorpropagationoccurswhentheclassiﬁcationmistakesmadeataparentnodearepropagatedtoitschildrennode.Thisproblemwassolvedin[11]byusingcrossvali-dationtoobtainatrainingdatasetforachildnodethatismoresimilar188MININGTEXTDATAtotheactualtestdatapassedtothechildnodefromitsparentnodethanthetrainingdatasetnormallyusedfortrainingaclassiﬁeratthechildnode.Theproblemofnon-lineardecisionsurfacesreferstothatthedecisionboundaryofacategoryatahigherlevelisoftennon-linear(sinceitsmembersaretheunionofthemembersofitschildrennodes).Thisproblemisaddressedbyusingthetentativeclasslabelsobtainedatthechildrennodesasfeaturesforuseataparentnode.Thesearegeneralstrategiesthatcanbeappliedtoanybaseclassiﬁer,andtheexperimentalresultsin[11]showthatbothstrategiesareeﬀective.5.2MultinomialDistributionThisclassoftechniquestreatsadocumentasasetofwordswithfrequenciesattachedtoeachword.Thus,thesetofwordsisallowedtohaveduplicateelements.Asinthepreviouscase,weassumethatthesetofwordsindoc-umentisdenotedbyQ,drawnfromthevocabularysetV.ThesetQcontainsthedistinctterms{ti1...tim}withassociatedfrequenciesF={Fi1...Fim}.Wedenotethetermsandtheirfrequenciesby[Q,F].Thetotalnumberoftermsinthedocument(ordocumentlength)isdenotedbyL=(cid:4)mj=1F(ij).Then,ourgoalistomodeltheposteriorprobabilitythatthedocumentTbelongstoclassi,giventhatitcontainsthetermsinQwiththeassociatedfrequenciesF.TheBayesprobabilityofclassicanbemodeledbyusingthefollowingsamplingprocess:IfwesampledLtermssequentiallyfromthetermdistributionofoneoftherandomlychosenclasses(allowingrepetitions)tocreatethetermsetT,andtheﬁnaloutcomeforsampledsetTisthesetQwiththecorrespondingfrequenciesF,thenwhatistheposteriorprobabilitythatwehadoriginallypickedclassiforsampling?Thea-prioriproba-bilityofpickingclassiisequaltoitsfractionalpresenceinthecollection.TheaforementionedprobabilityisdenotedbyP(CT=i|T=[Q,F]).Anassumptionwhichiscommonlyusedinthesemodelsisthatthelengthofthedocumentisindependentoftheclasslabel.Whileitiseasilypossibletogeneralizethemethod,sothatthedocumentlengthisusedasaprior,independenceisusuallyassumedforsimplicity.Asinthepreviouscase,weneedtoestimatetwovaluesinordertocomputetheBayesposterior.1WhatisthepriorprobabilitythatasetTisasamplefromthetermdistributionofclassi?ThisprobabilityisdenotedbyP(CT=i).ASurveyofTextClassiﬁcationAlgorithms1892IfwesampledLtermsfromthetermdistributionofclassi(withrepetitions),thenwhatistheprobabilitythatoursampledsetTisthesetQwithassociatedfrequenciesF?ThisprobabilityisdenotedbyP(T=[Q,F]|CT=i).Then,theBayesrulecanbeappliedtothiscaseasfollows:P(CT=i|T=[Q,F])=P(CT=i)·P(T=[Q,F]|CT=i)P(T=[Q,F])∝P(CT=i)·P(T=[Q,F]|CT=i)(6.11)Asinthepreviouscase,itisnotnecessarytocomputethedenominator,P(T=[Q,F]),forthepurposeofdecidingtheclasslabelforQ.ThevalueoftheprobabilityP(CT=i)canbeestimatedasthefractionofdocumentsbelongingtoclassi.ThecomputationofP([Q,F]|CT=i)ismuchmorecomplicated.WhenweconsiderthesequentialorderoftheLdiﬀerentsamples,thenumberofpossiblewaystosamplethediﬀerenttermssoastoresultintheoutcome[Q,F]isgivenbyL!(cid:3)mi=1Fi!.Theprobabilityofeachofthesesequencesisgivenby(cid:20)tj∈QP(tj∈T)Fj,byusingthenaiveindependenceassumption.Therefore,wehave:P(T=[Q,F]|CT=i)=L!(cid:20)mi=1Fi!·(cid:2)tj∈QP(tj∈T|CT=i)Fj(6.12)WecansubstituteEquations6.12inEquation6.11toobtaintheclasswiththehighestBayesposteriorprobability,wheretheclasspriorsarecomputedasinthepreviouscase,andtheprobabilitiesP(tj∈T|CT=i)canalsobeeasilyestimatedaspreviouslywithLaplaciansmoothing[124].Wenotethattheprobabilitiesofclassabsencearenotpresentintheaboveequationsbecauseofthewayinwhichthesamplingisperformed.Anumberofdiﬀerentvariationsofthemultinomialmodelhavebeenproposedin[53,70,84,95,97,103].Inthework[95],itisshownthatacategoryhierarchycanbeleveragedtoimprovetheestimateofmulti-nomialparametersinthenaiveBayesclassiﬁertosigniﬁcantlyimproveclassiﬁcationaccuracy.Thekeyideaistoapplyshrinkagetechniquestosmooththeparametersfordata-sparsechildcategorieswiththeircom-monparentnodes.Asaresult,thetrainingdataofrelatedcategoriesareessentially”shared”witheachotherinaweightedmanner,whichhelpsimprovingtherobustnessandaccuracyofparameterestimationwhenthereareinsuﬃcienttrainingdataforeachindividualchildcate-gory.Theworkin[94]hasperformedanextensivecomparisonbetween190MININGTEXTDATAthebernoulliandthemultinomialmodelsondiﬀerentcorpora,andthefollowingconclusionswerepresented:Themulti-variateBernoullimodelcansometimesperformbetterthanthemultinomialmodelatsmallvocabularysizes.Themultinomialmodeloutperformsthemulti-variateBernoullimodelforlargevocabularysizes,andalmostalwaysbeatsthemulti-variateBernoulliwhenvocabularysizeischosenoptimallyforboth.Ontheaveragea27%reductioninerrorwasreportedin[94].Theafore-mentionedresultsseemtosuggestthatthetwomodelsmayhavediﬀerentstrengths,andmaythereforebeusefulindiﬀerentscenar-ios.5.3MixtureModelingforTextClassiﬁcationWenotethattheafore-mentionedBayesmethodssimplyassumethateachcomponentofthemixturecorrespondstothedocumentsbelongingtoaclass.Amoregeneralinterpretationisoneinwhichthecompo-nentsofthemixturearecreatedbyaclusteringprocess,andtheclassmembershipprobabilitiesaremodeledintermsofthismixture.Mixturemodelingistypicallyusedforunsupervised(probabilistic)clusteringortopicmodeling,thoughtheuseofclusteringcanalsohelpinenhancingtheeﬀectivenessofprobabilisticclassiﬁers[86,103].Thesemethodsareparticularlyusefulincaseswheretheamountoftrainingdataislimited.Inparticular,clusteringcanhelpinthefollowingways:TheBayesmethodimplicitlyestimatesthewordprobabilitiesP(ti∈T|CT=i)ofalargenumberoftermsintermsoftheirfractionalpresenceinthecorrespondingcomponent.Thisisclearlynoisy.Bytreatingtheclustersasseparateentitiesfromtheclasses,wenowonlyneedtorelate(amuchsmallernumberof)clustermembershipprobabilitiestoclassprobabilities.Thisreducesthenumberofparametersandgreatlyimprovesclassiﬁcationaccuracy[86].Theuseofclusteringcanhelpinincorporatingunlabeleddocu-mentsintothetrainingdataforclassiﬁcation.Thepremiseisthatunlabeleddataismuchmorecopiouslyavailablethanlabeleddata,andwhenlabeleddataissparse,itshouldbeusedinordertoassisttheclassiﬁcationprocess.Whilesuchunlabeleddocumentsdonotcontainclass-speciﬁcinformation,theydocontainalotofinforma-tionabouttheclusteringbehavioroftheunderlyingdata.ThiscanASurveyofTextClassiﬁcationAlgorithms191beveryusefulformorerobustmodeling[103],whentheamountoftrainingdataislow.Thisgeneralapproachisalsoreferredtoasco-training[9,13,37].Thecommoncharacteristicofboththemethods[86,103]isthattheybothuseaformofsupervisedclusteringfortheclassiﬁcationprocess.Whilethegoalisquitesimilar(limitedtrainingdata),theapproachusedforthispurposeisquitediﬀerent.Wewilldiscussbothofthesemethodsinthissection.Inthemethoddiscussedin[86],thedocumentcorpusismodeledwiththeuseofsupervisedwordclusters.Inthiscase,thekmixturecompo-nentsareclusterswhicharecorrelatedto,butaredistinctfromthekgroupsofdocumentsbelongingtothediﬀerentclasses.Themaindiﬀer-encefromtheBayesmethodisthatthetermprobabilitiesarecomputedindirectlybyusingclusteringasanintermediatestep.ForasampleddocumentT,wedenoteitsclasslabelbyCT∈{1...k},anditsmix-turecomponentbyMT∈{1...k}.Thekdiﬀerentmixturecomponentsareessentiallyword-clusterswhosefrequenciesaregeneratedbyusingthefrequenciesofthetermsinthekdiﬀerentclasses.Thisensuresthatthewordclustersforthemixturecomponentsarecorrelatedtotheclasses,buttheyarenotassumedtobedrawnfromthesamedistri-bution.Asinthepreviouscase,letusassumethattheadocumentcontainsthesetofwordsQ.Then,wewouldliketoestimatetheprob-abilityP(T=Q|CT=i)foreachclassi.Aninterestingvariationoftheworkin[86]fromtheBayesapproachisthatitdoesnotattempttodeterminetheposteriorprobabilityP(CT=i|T=Q).Rather,itsimplyreportstheclasswiththehighestlikelihoodP(T=Q|CT=i).ThisisessentiallyequivalenttoassumingintheBayesapproach,thatthepriordistributionofeachclassisthesame.TheotherdiﬀerenceoftheapproachisintermsofhowthevalueofP(T=Q|CT=i)iscomputed.Asbefore,weneedtoestimatethevalueofP(tj∈T|CT=i),accordingtothenaiveBayesrule.However,unlikethestandardBayesclassiﬁer,thisisdoneveryindirectlywiththeuseofmixturemodeling.Sincethemixturecomponentsdonotdirectlycorrespondtotheclass,thistermcanonlybeestimatedbysumminguptheexpectedvalueoverallthemixturecomponents:P(tj∈T|CT=i)=k(cid:9)s=1P(tj∈T|MT=s)·P(MT=s|CT=i)(6.13)ThevalueofP(tj∈T|MT=s)iseasytoestimatebyusingthefrac-tionalpresenceoftermtjinthesthmixturecomponent.ThemainunknownherearethesetofmodelparametersP(MT=s|CT=i).192MININGTEXTDATASinceatotalofkclassesandkmixture-componentsareused,thisre-quirestheestimationofonlyk2modelparameters,whichistypicallyquitemodestforasmallnumberofclasses.AnEM-approachhasbeenusedin[86]inordertoestimatethissmallnumberofmodelparametersinarobustway.Itisimportanttounderstandthattheworkin[86]isaninterestingcombinationofsupervisedtopicmodeling(dimensionalityreduction)andBayesclassiﬁcationafterreducingtheeﬀectivedimen-sionalityofthefeaturespacetoamuchsmallervaluebyclustering.Theschemeworkswellbecauseoftheuseofsupervisioninthetopicmod-elingprocess,whichensuresthattheuseofanintermediateclusteringapproachdoesnotloseinformationforclassiﬁcation.Wealsonotethatinthismodel,thenumberofmixturescanbemadetovaryfromthenumberofclasses.Whiletheworkin[86]doesnotexplorethisdirec-tion,thereisreallynoreasontoassumethatthenumberofmixturecomponentsisthesameasthenumberofclasses.Suchanassumptioncanbeparticularlyusefulfordatasetsinwhichtheclassesmaynotbecontiguousinthefeaturespace,andanaturalclusteringmaycontainfarmorecomponentsthanthenumberofclasses.Next,wewilldiscussthesecondmethod[103]whichusesunlabeleddata.Theapproachis[103]usestheunlabeleddatainordertoimprovethetrainingmodel.Whyshouldunlabeleddatahelpinclassiﬁcationatall?Inordertounderstandthispoint,recallthattheBayesclassiﬁca-tionprocesseﬀectivelyuseskmixturecomponents,whichareassumedtobethekdiﬀerentclasses.Ifwehadaninﬁniteamountoftrainingdata,itwouldbepossibletocreatethemixturecomponents,butitwouldnotbepossibletoassignlabelstothesecomponents.However,themostdata-intensivepartofmodelingthemixture,isthatofdeter-miningtheshapeofthemixturecomponents.Theactualassignmentofmixturecomponentstoclasslabelscanbeachievedwitharelativelysmallnumberofclasslabels.Ithasbeenshownin[24]thattheac-curacyofassigningcomponentstoclassesincreasesexponentiallywiththenumberoflabeledsamplesavailable.Therefore,theworkin[103]designsanEM-approach[36]tosimultaneouslydeterminetherelevantmixturemodelanditsclassassignment.ItturnsoutthattheEM-approach,asappliedtothisproblemisquitesimpletoimplement.Ithasbeenshownin[103]thattheEM-approachisequivalenttothefollowingiterativemethodology.First,anaiveBayesclassiﬁerisconstructedbyestimatingthemodelparam-etersfromthelabeleddocumentsonly.Thisisusedinordertoas-signprobabilistically-weightedclasslabelstotheunlabeleddocuments.Then,theBayesclassiﬁerisre-constructed,exceptthatwealsousethenewlylabeleddocumentsintheestimationoftheunderlyingmodelASurveyofTextClassiﬁcationAlgorithms193parameters.Weagainusethisclassiﬁertore-classifythe(originallyun-labeled)documents.Theprocessiscontinuallyrepeatedtillconvergenceisachieved.Theabilitytosigniﬁcantlyimprovethequalityoftextclassiﬁcationwithasmallamountoflabeleddata,andtheuseofclusteringonalargeamountofunlabeleddatahasbeenarecurringthemeinthetextminingliterature.Forexample,themethodin[122]performspurelyunsuper-visedclustering(withnoknowledgeofclasslabels),andthenasaﬁnalstepassignsalldocumentsintheclustertothedominantclasslabelofthatcluster(asanevaluationstepfortheunsupervisedclusteringprocessintermsofitsabilityinmatchingclusterstoknowntopics).4IthasbeenshownthatthisapproachisabletoachieveacomparableaccuracyofmatchingclusterstotopicsasasupervisedNaiveBayesclassiﬁertrainedoverasmalldatasetofabout1000documents.Similarresultswereob-tainedin[47]wherethequalityoftheunsupervisedclusteringprocesswereshowntocomparabletoanSVMclassiﬁerwhichwastrainedoverasmalldataset.6.LinearClassiﬁersLinearClassiﬁersarethoseforwhichtheoutputofthelinearpredictorisdeﬁnedtobep=A·X+b,whereX=(x1...xn)isthenormalizeddocumentwordfrequencyvector,A=(a1...an)isavectoroflinearcoeﬃcientswiththesamedimensionalityasthefeaturespace,andbisascalar.Anaturalinterpretationofthepredictorp=A·X+binthediscretescenario(categoricalclasslabels)wouldbeasaseparatinghyperplanebetweenthediﬀerentclasses.SupportVectorMachines[30,125]areaformofclassiﬁerswhichattempttodetermine“good”linearseparatorsbetweenthediﬀerentclasses.Onecharacteristicoflinearclassiﬁersisthattheyarecloselyrelatedtomanyfeaturetransformationmethods(suchastheFisherdiscriminant),whichattempttousethesedirectionsinordertotransformthefeaturespace,andthenuseotherclassiﬁersonthistransformedfeaturespace[51,56,99].Thus,linearclassiﬁersareintimatelyrelatedtolinearfeaturetransformationmethodsaswell.Regressionmodeling(suchastheleastsquaresmethod)isamoredirectandtraditionalstatisticalmethodfortextclassiﬁcation.However,itisgenerallyusedincaseswherethetargetvariabletobelearnedisnumericalratherthancategorical.Anumberofmethodshavebeen4Inasupervisedapplication,thelaststepwouldrequireonlyasmallnumberofclasslabelsintheclustertobeknowntodeterminethedominantlabelveryaccurately.194MININGTEXTDATAxxxxxxxxooooooooABCFigure6.1.WhatistheBestSeparatingHyperplane?proposedintheliteratureforadaptingsuchmethodstothecaseoftextdataclassiﬁcation[134].AcomparisonofdiﬀerentlinearregressiontechniquesforclassiﬁcationmincludingSVM,maybefoundin[138].Finally,simpleneuralnetworksarealsoaformoflinearclassiﬁers,sincethefunctioncomputedbyasetofneuronsisessentiallylinear.Thesimplestformofneuralnetwork,knownastheperceptron(orsinglelayernetwork)areessentiallydesignedforlinearseparation,andworkwellfortext.However,byusingmultiplelayersofneurons,itisalsopossibletogeneralizetheapproachfornon-linearseparation.Inthissection,wewilldiscussthediﬀerentlinearmethodsfortextclassiﬁcation.6.1SVMClassiﬁersSupport-vectormachineswereﬁrstproposedin[30,124]fornumeri-caldata.ThemainprincipleofSVMsistodetermineseparatorsinthesearchspacewhichcanbestseparatethediﬀerentclasses.Forexample,considertheexampleillustratedinFigure6.1,inwhichwehavetwoclassesdenotedby’x’and’o’respectively.Wehavedenotedthreediﬀer-entseparatinghyperplanes,whicharedenotedbyA,B,andCrespec-tively.ItisevidentthatthehyperplaneAprovidesthebestseparationbetweenthediﬀerentclasses,becausethenormaldistanceofanyofthedatapointsfromitisthelargest.Therefore,thehyperplaneArepresentsthemaximummarginofseparation.Wenotethatthenormalvectortothishyperplane(representedbythearrowintheﬁgure)isadirectioninthefeaturespacealongwhichwehavethemaximumdiscrimination.OneadvantageoftheSVMmethodisthatsinceitattemptstodeterminetheoptimumdirectionofdiscriminationinthefeaturespacebyexaminingtheappropriatecombinationoffeatures,itisquiterobusttohighdimen-ASurveyofTextClassiﬁcationAlgorithms195sionality.Ithasbeennotedin[64]thattextdataisideallysuitedforSVMclassiﬁcationbecauseofthesparsehigh-dimensionalnatureoftext,inwhichfewfeaturesareirrelevant,buttheytendtobecorrelatedwithoneanotherandgenerallyorganizedintolinearlyseparablecategories.WenotethatitisnotnecessarytousealinearfunctionfortheSVMclassiﬁer.Rather,withthekerneltrick[6],SVMcanconstructanon-lineardecisionsurfaceintheoriginalfeaturespacebymappingthedatainstancesnon-linearlytoaninnerproductspacewheretheclassescanbeseparatedlinearlywithahyperplane.However,inpractice,linearSVMisusedmostoftenbecauseoftheirsimplicityandeaseofinterpretabil-ity.TheﬁrstsetofSVMclassiﬁers,asadaptedtothetextdomainwereproposedin[64–66].AdeepertheoreticalstudyoftheSVMmethodhasbeenprovidedin[67].Inparticular,ithasbeenshownwhytheSVMclassiﬁerisexpectedtoworkwellunderawidevarietyofcircumstances.Thishasalsobeendemonstratedexperimentallyinafewdiﬀerentsce-narios.Forexample,theworkin[41]appliedthemethodtoemaildataforclassifyingitasspamornon-spamdata.ItwasshownthattheSVMmethodprovidesmuchmorerobustperformanceascomparedtomanyothertechniquessuchasboostingdecisiontrees,therulebasedRIPPERmethod,andtheRocchiomethod.TheSVMmethodisﬂexibleandcaneasilybecombinedwithinteractiveuser-feedbackmethods[107].Wenotethattheproblemofﬁndingthebestseparatorisessentiallyanoptimizationproblem,whichcantypicallybereducedtoaQuadraticProgrammingproblem.Forexample,manyofthesemethodsuseNew-ton’smethodforiterativeminimizationofaconvexfunction.Thiscansometimesbeslow,especiallyforhighdimensionaldomainssuchastextdata.Ithasbeenshown[43]thatbybreakingalargeQuadraticPro-grammingproblem(QPproblem)toasetofsmallerproblems,aneﬃ-cientsolutioncanbederivedforthetask.TheSVMapproachhasalsobeenusedsuccessfully[44]inthecontextofahierarchicalorganizationoftheclasses,asoftenoccursinwebdata.Inthisapproach,adiﬀerentclassiﬁerisbuiltatdiﬀerentpositionsofthehierarchy.TheSVMclassiﬁerhasalsobeenshowntobeusefulinlargescalescenariosinwhichalargeamountofunlabeleddataandasmallamountoflabeleddataisavailable[120].Thisisessentiallyasemi-supervisedapproachbecauseofitsuseofunlabeleddataintheclassiﬁcationprocess.Thistechniquesisalsoquitescalablebecauseofitsuseofanumberofmodiﬁedquasi-newtontechniques,whichtendtobeeﬃcientinpractice.196MININGTEXTDATA6.2Regression-BasedClassiﬁersRegressionmodelingisamethodwhichiscommonlyusedinordertolearntherelationshipsbetweenreal-valuedattributes.Typically,thesemethodsaredesignedforrealvaluedattributes,asopposedtobinaryattributes.Thisishowevernotanimpedimenttoitsuseinclassiﬁcation,becausethebinaryvalueofaclassmaybetreatedasarudimentaryspecialcaseofarealvalue,andsomeregressionmethodssuchaslogisticregressioncanalsonaturallymodeldiscreteresponsevariables.AnearlyapplicationofregressiontotextclassiﬁcationistheLinearLeastSquaresFit(LLSF)method[134],whichworksasfollows.Supposethepredictedclasslabelbepi=A·Xi+b,andyiisknowntobethetrueclasslabel,thenouraimistolearnthevaluesofAandb,suchthattheLinearLeastSquaresFit(LLSF)(cid:4)ni=1(pi−yi)2isminimized.Inpractice,thevalueofbissetto0forthelearningprocess.letPbe1×nvectorofbinaryvaluesindicatingthebinaryclasstowhichthecorrespondingclassbelongs.Thus,ifXbethethen×dterm-matrix,thenwewishtodeterminethe1×dvectorofregressioncoeﬃcientsAforwhich||A·XT−P||isminimized,where||·||representstheFroebinusnorm.Theproblemcanbeeasilygeneralizedfromthebinaryclassscenariotothemulti-classscenariowithkclasses,byusingPasak×nmatrixofbinaryvalues.Inthismatrix,exactlyonevalueineachcolumnis1,andthecorrespondingrowidentiﬁerrepresentstheclasstowhichthatinstancebelongs.Similarly,thesetAisak×dvectorinthemulti-classscenario.TheLLSFmethodhasbeencomparedtoavarietyofothermethods[132,134,138],andhasbeenshowntobeveryrobustinpractice.Amorenaturalwayofmodelingtheclassiﬁcationproblemwithre-gressionisthelogisticregressionclassiﬁer[102],whichdiﬀersfromtheLLSFmethodinthattheobjectivefunctiontobeoptimizedisthelike-lihoodfunction.Speciﬁcally,insteadofusingpi=A·Xi+bdirectlytoﬁtthetruelabelyi,weassumethattheprobabilityofobservinglabelyiis:p(C=yi|Xi)=exp(A·Xi+b)1+exp(A·Xi+b).ThisgivesusaconditionalgenerativemodelforyigivenXi.Puttingitinanotherway,weassumethatthelogittransformationofp(C=yi|Xi)canbemodeledbythelinearcombinationoffeaturesoftheinstanceXi,i.e.,logp(C=yi|Xi)1−p(C=yi|Xi)=A·Xi+b.ASurveyofTextClassiﬁcationAlgorithms197Thuslogisticregressionisalsoalinearclassiﬁerasthedecisionboundaryisdeterminedbyalinearfunctionofthefeatures.Inthecaseofbinaryclassiﬁcation,p(C=yi|Xi)canbeusedtodeterminetheclasslabel(e.g.,usingathresholdof0.5).Inthecaseofmulti-classclassiﬁcation,wehavep(C=yi|Xi)∝exp(A·Xi+b),andtheclasslabelwiththehighestvalueaccordingtop(C=yi|Xi)wouldbeassignedtoXi.Givenasetoftrainingdatapoints{(X1,yi),...(Xn,yn)},thelogisticregres-sionclassiﬁercanbetrainedbychoosingparametersAtomaximizetheconditionallikelihood(cid:20)ni=1p(yi|Xi).Insomecases,thedomainknowledgemaybeoftheform,wheresomesetsofwordsaremoreimportantthanothersforaclassiﬁcationproblem.Forexample,inaclassiﬁcationapplication,wemayknowthatcertaindomain-words(KnowledgeWords(KW))maybemoreimportanttoclassiﬁcationofaparticulartargetcategorythanotherwords.Insuchcases,ithasbeenshown[35]thatitmaybepossibletoencodesuchdomainknowledgeintothelogisticregressionmodelintheformofprioronthemodelparametersanduseBayesianestimationofmodelparameters.ItisclearthattheregressionclassiﬁersareextremelysimilartotheSVMmodelforclassiﬁcation.Indeed,sinceLLSF,LogisticRegression,andSVMarealllinearclassiﬁers,theyarethusidenticalataconcep-tuallevel;themaindiﬀerenceamongthemliesinthedetailsoftheoptimizationformulationandimplementation.AsinthecaseofSVMclassiﬁers,trainingaregressionclassiﬁeralsorequiresanexpensiveopti-mizationprocess.Forexample,ﬁttingLLSFrequiresexpensivematrixcomputationsintheformofasingularvaluedecompositionprocess.6.3NeuralNetworkClassiﬁersThebasicunitinaneuralnetworkisaneuronorunit.Eachunitreceivesasetofinputs,whicharedenotedbythevectorXi,whichinthiscase,correspondtothetermfrequenciesintheithdocument.EachneuronisalsoassociatedwithasetofweightsA,whichareusedinordertocomputeafunctionf(·)ofitsinputs.Atypicalfunctionwhichisoftenusedintheneuralnetworkisthelinearfunctionasfollows:pi=A·Xi(6.14)Thus,foravectorXidrawnfromalexiconofdwords,theweightvectorAshouldalsocontaindelements.Nowconsiderabinaryclassiﬁcationproblem,inwhichalllabelsaredrawnfrom{+1,−1}.WeassumethattheclasslabelofXiisdenotedbyyi.Inthatcase,thesignofthepredictedfunctionpiyieldstheclasslabel.198MININGTEXTDATAxxxxxxxxooooooooAxooFigure6.2.ThesignoftheprojectionontotheweightvectorAyieldstheclasslabelInordertoillustratethispoint,letusconsiderasimpleexampleina2-dimensionalfeaturespace,asillustratedinFigure6.2.Inthiscase,wehaveillustratedtwodiﬀerentclasses,andtheplanecorrespondingtoAx=0isillustratedinthesameﬁgure.ItisevidentthatthesignofthefunctionA·Xiyieldstheclasslabel.Thus,thegoaloftheapproachistolearnthesetofweightsAwiththeuseofthetrainingdata.Theideaisthatwestartoﬀwithrandomweightsandgraduallyupdatethemwhenamistakeismadebyapplyingthecurrentfunctiononthetrainingexample.Themagnitudeoftheupdateisregulatedbyalearningrateμ.Thisformsthecoreideaoftheperceptronalgorithm,whichisasfollows:PerceptronAlgorithmInputs:LearningRate:μTrainingData(Xi,yi)∀i∈{1...n}InitializeweightvectorsinAto0orsmallrandomnumbersrepeatApplyeachtrainingdatatotheneuralnetworktocheckifthesignofA·Ximatchesyi;ifsignofA·Xidoesnotmatchyi,thenupdateweightsAbasedonlearningrateμuntilweightsinAconvergeTheweightsinAaretypicallyupdated(increasedordecreased)propor-tionallytoμ·Xi,soastoreducethedirectionoftheerroroftheneuron.Wefurthernotethatmanydiﬀerentupdateruleshavebeenproposedintheliterature.Forexample,onemaysimplyupdateeachweightbyμ,ratherthanbyμ·Xi.ThisisparticularlypossibleindomainssuchASurveyofTextClassiﬁcationAlgorithms199xxxxoooooxoooxxooooooxFigure6.3.Multi-LayeredNeuralNetworksforNonlinearSeparationastext,inwhichallfeaturevaluestakeonsmallnon-negativevaluesofrelativelysimilarmagnitude.Anumberofimplementationsofneuralnetworkmethodsfortextdatahavebeenstudiedin[34,90,101,117,129].Anaturalquestionarises,astohowaneuralnetworkmaybeused,ifalltheclassesmaynotbeneatlyseparatedfromoneanotherwithalinearseparator,asillustratedinFigure6.2.Forexample,inFigure6.3,wehaveillustratedanexampleinwhichtheclassesmaynotbeseparatedwiththeuseofasinglelinearseparator.Theuseofmul-tiplelayersofneuronscanbeusedinordertoinducesuchnon-linearclassiﬁcationboundaries.Theeﬀectofsuchmultiplelayersistoinducemultiplepiece-wiselinearboundaries,whichcanbeusedtoapproximateenclosedregionsbelongingtoaparticularclass.Insuchanetwork,theoutputsoftheneuronsintheearlierlayersfeedintotheneuronsinthelaterlayers.Thetrainingprocessofsuchnetworksismorecomplex,astheerrorsneedtobeback-propagatedoverdiﬀerentlayers.Someex-amplesofsuchclassiﬁersincludethosediscussedin[75,110,126,132].However,thegeneralobservation[117,129]fortexthasbeenthatlin-earclassiﬁersgenerallyprovidecomparableresultstonon-lineardata,andtheimprovementsofnon-linearclassiﬁcationmethodsarerelativelysmall.Thissuggeststhattheadditionalcomplexityofbuildingmorein-volvednon-linearmodelsdoesnotpayforitselfintermsofsigniﬁcantlybetterclassiﬁcation.6.4SomeObservationsaboutLinearClassiﬁersWhilethediﬀerentlinearclassiﬁershavebeendevelopedindepen-dentlyfromoneanotherintheresearchliterature,theyaresurprisinglysimilaratabasicconceptuallevel.Interestingly,thesediﬀerentlinesofworkhavealsoresultedinanumberofsimilarconclusionsintermsof200MININGTEXTDATAtheeﬀectivenessofthediﬀerentclassiﬁers.Wenotethatthemaindif-ferencebetweenthediﬀerentclassiﬁersisintermsofthedetailsoftheobjectivefunctionwhichisoptimized,andtheiterativeapproachusedinordertodeterminetheoptimumdirectionofseparation.Forexam-ple,theSVMmethodusesaQuadraticProgramming(QP)formulation,whereastheLLSFmethodusesaclosed-formleast-squaresformulation.Ontheotherhand,theperceptronmethoddoesnottrytoformulateaclosed-formobjectivefunction,butworkswithasofteriterativehillclimbingapproach.Thistechniqueisessentiallyinheritedfromtheit-erativelearningapproachusedbyneuralnetworkalgorithms.However,itsgoalremainsquitesimilartotheothertwomethods.Thus,thediﬀer-encesbetweenthesemethodsarereallyatadetailedlevel,ratherthanaconceptuallevel,inspiteoftheirverydiﬀerentresearchorigins.Anothergeneralobservationaboutthesemethodsisthatallofthemcanbeimplementedwithnon-linearversionsoftheirclassiﬁers.Forex-ample,itispossibletocreatenon-lineardecisionsurfaceswiththeSVMclassiﬁer,justasitispossibletocreatenon-linearseparationboundariesbyusinglayeredneuronsinaneuralnetwork[132].However,thegeneralconsensushasbeenthatthelinearversionsofthesemethodsworkverywell,andtheadditionalcomplexityofnon-linearclassiﬁcationdoesnottendtopayforitself,exceptforsomespecialdatasets.Thereasonforthisisperhapsbecausetextisahighdimensionaldomainwithhighlycorrelatedfeaturesandsmallnon-negativevaluesonsparsefeatures.Forexample,itishardtoeasilycreateclassstructuressuchasthatin-dicatedinFigure6.3forasparsedomainsuchastextcontainingonlysmallnon-negativevaluesonthefeatures.Ontheotherhand,thehighdimensionalnatureofcorrelatedtextdimensionsisespeciallysuitedtoclassiﬁerswhichcanexploittheredundanciesandrelationshipsbetweenthediﬀerentfeaturesinseparatingoutthediﬀerentclasses.Commontextapplicationshavegenerallyresultedinclassstructureswhicharelinearlyseparableoverthishighdimensionaldomainofdata.Thisisoneofthereasonsthatlinearclassiﬁershaveshownanunprecedentedsuccessintextclassiﬁcation.7.Proximity-basedClassiﬁersProximity-basedclassiﬁersessentiallyusedistance-basedmeasuresinordertoperformtheclassiﬁcation.Themainthesisisthatdocumentswhichbelongtothesameclassarelikelytobeclosetooneanotherbasedonsimilaritymeasuressuchasthedotproductorthecosinemetric[115].Inordertoperformtheclassiﬁcationforagiventestinstance,twopossiblemethodscanbeused:ASurveyofTextClassiﬁcationAlgorithms201Wedeterminethek-nearestneighborsinthetrainingdatatothetestinstance.Themajority(ormostabundant)classfromthesekneighborsarereportedastheclasslabel.Someexamplesofsuchmethodsarediscussedin[25,54,134].Thechoiceofktypicallyrangesbetween20and40inmostoftheafore-mentionedwork,dependinguponthesizeoftheunderlyingcorpus.Weperformtrainingdataaggregationduringpre-processing,inwhichclustersorgroupsofdocumentsbelongingtothesameclassarecreated.Arepresentativemeta-documentiscreatedfromeachgroup.Thesamek-nearestneighborapproachisappliedasdis-cussedabove,exceptthatitisappliedtothisnewsetofmeta-documents(orgeneralizedinstances[76])ratherthantotheorig-inaldocumentsinthecollection.Apre-processingphaseofsum-marizationisusefulinimprovingtheeﬃciencyoftheclassiﬁer,be-causeitsigniﬁcantlyreducesthenumberofdistancecomputations.Insomecases,itmayalsoboosttheaccuracyofthetechnique,es-peciallywhenthedatasetcontainsalargenumberofoutliers.Someexamplesofsuchmethodsarediscussedin[55,76,109].AmethodforperformingnearestneighborclassiﬁcationintextdataistheWHIRLmethoddiscussedin[25].TheWHIRLmethodises-sentiallyamethodforperformingsoftsimilarityjoinsonthebasisoftextattributes.Bysoftsimilarityjoins,werefertothefactthatthetworecordsmaynotbeexactlythesameonthejoinedattribute,butanotionofsimilarityusedforthispurpose.Ithasbeenobservedin[25]thatanymethodforperformingasimilarity-joincanbeadaptedasanearestneighborclassiﬁer,byusingtherelevanttextdocumentsasthejoinedattributes.Oneobservationin[134]aboutnearestneighborclassiﬁerswasthatfeatureselectionanddocumentrepresentationplayanimportantpartintheeﬀectivenessoftheclassiﬁcationprocess.Thisisbecausemosttermsinlargecorporamaynotberelatedtothecategoryofinterest.Therefore,anumberoftechniqueswereproposedin[134]inordertolearntheassociationsbetweenthewordsandthecategories.Thesearethenusedtocreateafeaturerepresentationofthedocument,sothatthenearestneighborclassiﬁerismoresensitivetotheclassesinthedocumentcollection.Asimilarobservationhasbeenmadein[54],inwhichithasbeenshownthattheadditionofweightstotheterms(basedontheirclass-sensitivity)signiﬁcantlyimprovestheunderlyingclassiﬁerperformance.Thenearestneighborclassiﬁerhasalsobeenextendedtothetemporally-awarescenario[114],inwhichthetimelinessofatrainingdocumentplaysaroleinthemodelconstructionprocess.202MININGTEXTDATAInordertoincorporatesuchfactors,atemporalweightingfunctionhasbeenintroducedin[114],whichallowstheimportanceofadocumenttogracefullydecaywithtime.Forthecaseofclassiﬁerswhichusegroupingtechniques,themostbasicamongsuchmethodsisthatproposedbyRocchioin[109].Inthismethod,asinglerepresentativemeta-documentisconstructedfromeachoftherepresentativeclasses.Foragivenclass,theweightofthetermtkisthenormalizedfrequencyofthetermtkindocumentsbelongingtothatclass,minusthenormalizedfrequencyofthetermindocumentswhichdonotbelongtothatclass.Speciﬁcally,letfkpbetheexpectedweightoftermtkinarandomlypickeddocumentbelongingtothepositiveclass,andfknbetheexpectedweightoftermtkinarandomlypickeddocumentbelongingtothenegativeclass.Then,forweightingparametersαpandαn,theweightfkrocchioisdeﬁnedasfollows:fkrocchio=αp·fkp−αn·fkn(6.15)Theweightingparametersαpandαnarepickedsothatthepositiveclasshasmuchgreaterweightascomparedtothenegativeclass.Fortherelevantclass,wenowhaveavectorrepresentationoftheterms(f1rocchio,f2rocchio...fnrocchio).Thisapproachisappliedseparatelytoeachoftheclasses,inordertocreateaseparatemeta-documentforeachclass.Foragiventestdocument,theclosestmeta-documenttothetestdoc-umentcanbedeterminedbyusingavector-baseddotproductorothersimilaritymetric.Thecorrespondingclassisthenreportedastherele-vantlabel.ThemaindistinguishingcharacteristicoftheRocchiomethodisthatitcreatesasingleproﬁleoftheentireclass.ThisclassofmethodsisalsoreferredtoastheRocchioframework.Themaindisadvantageofthismethodisthatifasingleclassoccursinmultipledisjointclusterswhicharenotverywellconnectedinthedata,thenthecentroidoftheseexamplesmaynotrepresenttheclassbehaviorverywell.Thisislikelytobeasourceofinaccuracyfortheclassiﬁer.Themainadvantageofthismethodisitsextremesimplicityandeﬃciency;thetrainingphaseislinearinthecorpussize,andthenumberofcomputationsinthetestingphasearelineartothenumberofclasses,sinceallthedocumentshavealreadybeenaggregatedintoasmallnumberofclasses.AnanalysisoftheRocchioalgorithm,alongwithanumberofdiﬀerentvariationsmaybefoundin[64].InordertohandletheshortcomingsoftheRocchiomethod,anumberofclassiﬁershavealsobeenproposed[1,14,55,76],whichexplicitlyperformtheclusteringofeachoftheclassesinthedocumentcollection.Theseclustersareusedinordertogenerateclass-speciﬁcproﬁles.Theseproﬁlesarealsoreferredtoasgeneralizedinstancesin[76].ForagivenASurveyofTextClassiﬁcationAlgorithms203testinstance,thelabeloftheclosestgeneralizedinstanceisreportedbythealgorithm.Themethodin[14]isalsoacentroid-basedclassiﬁer,butisspeciﬁcallydesignedforthecaseoftextdocuments.Theworkin[55]showsthattherearesomeadvantagesindesigningschemesinwhichthesimilaritycomputationstakeaccountofthedependenciesbetweenthetermsofthediﬀerentclasses.Wenotethatthenearestneighborclassiﬁercanbeusedinordertogeneratearankedlistofcategoriesforeachdocument.Incases,whereadocumentisrelatedtomultiplecategories,thesecanbereportedforthedocument,aslongasathresholdingmethodisavailable.Theworkin[136]studiesanumberofthresholdingstrategiesforthek-nearestneigh-borclassiﬁer.Ithasalsobeensuggestedin[136]thatthesethresholdingstrategiescanbeusedtounderstandthethresholdingstrategiesofotherclassiﬁerswhichuserankingclassiﬁers.8.ClassiﬁcationofLinkedandWebDataInrecentyears,theproliferationofthewebandsocialnetworktech-nologieshasleadtoatremendousamountofdocumentdata,whichisexpressedintheformoflinkednetworks.Thesimplestexampleofthisistheweb,inwhichthedocumentsarelinkedtooneanotherwiththeuseofhyper-links.Socialnetworkscanalsobeconsideredanoisyexampleofsuchdata,becausethecommentsandtextproﬁlesofdiﬀerentusersareconnectedtooneanotherthroughavarietyoflinks.Linkageinfor-mationisquiterelevanttotheclassiﬁcationprocess,becausedocumentsofsimilarsubjectsareoftenlinkedtogether.Thisobservationhasbeenusedwidelyinthecollectiveclassiﬁcationliterature[12],inwhichasub-setofnetworknodesarelabeled,andtheremainingnodesareclassiﬁedonthebasisofthelinkagesamongthenodes.Ingeneral,acontent-basednetworkmaybedenotedbyG=(N,A,C),whereNisthesetofnodes,Aisthesetofedgesbetweenthenodes,andCisasetoftextdocuments.EachnodeinNcorrespondstoatextdocumentinC,anditispossibleforadocumenttobetheempty,whenthecorrespondingnodedoesnotcontainanycontent.AsubsetofthenodesinNarelabeled.Thiscorrespondstothetrainingdata.Theclassiﬁcationprobleminthisscenarioistodeterminethelabelsoftheremainingnodeswiththeuseofthetrainingdata.Itisclearthatboththecontentandstructurecanplayausefulandcomplementaryroleintheclassiﬁcationprocess.Aninterestingmethodforcombininglinkageandcontentinformationforclassiﬁcationwasdiscussedin[20].Inthispaper,ahypertextcate-gorizationmethodwasproposed,whichusesthecontentandlabelsof204MININGTEXTDATAneighboringwebpagesfortheclassiﬁcationprocess.Whenthelabelsofallthenearestneighborsareavailable,thenaBayesianmethodcanbeadaptedeasilyforclassiﬁcationpurposes.JustasthepresenceofawordinadocumentcanbeconsideredaBayesianfeatureforatextclassiﬁer,thepresenceofalinkbetweenthetargetpage,andapage(forwhichthelabelisknown)canbeconsideredafeaturefortheclassiﬁer.Therealchallengeariseswhenthelabelsofallthenearestneighborsarenotavailable.Insuchcases,arelaxationlabelingmethodwasproposedinordertoperformtheclassiﬁcation.Twomethodshavebeenproposedinthiswork:FullySupervisedCaseofRadiusoneEnhancedLinkageAnalysis:Inthiscase,itisassumedthatalltheneighboringclasslabelsareknown.Insuchacase,aBayesianapproachisutilizedinordertotreatthelabelsonthenearestneighborsasfeaturesforclassiﬁcationpurposes.Inthiscase,thelinkageinformationisthesoleinformationwhichisusedforclassiﬁcationpurposes.Whentheclasslabelsofthenearestneighborsarenotknown:Inthiscase,aniterativeapproachisusedforcombiningtextandlinkagebasedclassiﬁcation.Ratherthanusingthepre-deﬁnedlabels(whicharenotavailable),weperformaﬁrstlabelingoftheneighboringdocumentswiththeuseofdocumentcontent.Theselabelsarethenusedtoclassifythelabelofthetargetdoc-ument,withtheuseofboththelocaltextandtheclasslabelsoftheneighbors.Thisapproachisusediterativelyforre-deﬁningthelabelsofboththetargetdocumentanditsneighborsuntilconver-genceisachieved.Theconclusionfromtheworkin[20]isthatacombinationoftextandlinkagebasedclassiﬁcationalwaysimprovestheaccuracyofatextclas-siﬁer.Evenwhennoneoftheneighborsofthedocumenthaveknownclasses,itseemedtobealwaysbeneﬁcialtoaddlinkinformationtotheclassiﬁcationprocess.Whentheclasslabelsofalltheneighborsareknown,thentheadvantagesofusingtheschemeseemtobequitesigniﬁcant.Anadditionalideainthepaperisthatoftheuseofbridgesinordertofurtherimprovetheclassiﬁcationaccuracy.Thecoreideaintheuseofabridgeistheuseof2-hoppropagationforlink-basedclassiﬁcation.Theresultswiththeuseofsuchanapproacharesomewhatmixed,astheaccuracyseemstoreducewithanincreasingnumberofhops.Theworkin[20]showsresultsonanumberofdiﬀerentkindsofdatasetssuchastheReutersdatabase,USpatentdatabase,andYahoo!.SincetheReutersdatabasecontainstheleastamountofnoise,andpuretextASurveyofTextClassiﬁcationAlgorithms205classiﬁerswereabletodoagoodjob.Ontheotherhand,theUSpatentdatabaseandtheYahoo!databasecontainanincreasingamountofnoisewhichreducestheaccuracyoftextclassiﬁers.Aninterestingobserva-tionin[20]wasthataschemewhichsimplyabsorbedtheneighbortextintothecurrentdocumentperformedsigniﬁcantlyworsethanaschemewhichwasbasedonpuretext-basedclassiﬁcation.Thisisbecausethereareoftensigniﬁcantcross-boundarylinkagesbetweentopics,andsuchlinkagesareabletoconfusetheclassiﬁer.Apubliclyavailableimplemen-tationofthisalgorithmmaybefoundintheNetKittoolkitavailablein[92].Anotherrelaxationlabelingmethodforgraph-baseddocumentclas-siﬁcationisproposedin[4].Inthistechnique,theprobabilitythattheendpointsofalinktakeonaparticularpairofclasslabelsisquanti-ﬁed.Werefertothisasthelink-classpairprobability.TheposteriorprobabilityofclassiﬁcationofanodeTintoclassiisexpressedassumoftheprobabilitiesofpairingallpossibleclasslabelsoftheneighborsofTwithclasslabeli.Wenoteasigniﬁcantpercentageofthese(ex-ponentialnumberof)possibilitiesarepruned,sinceonlythecurrentlymostprobable5labelingsareusedinthisapproach.Forthispurpose,itisassumedthattheclasslabelsofthediﬀerentneighborsofT(whiledependentonT)areindependentofeachother.Thisissimilartothenaiveassumption,whichisoftenusedinBayesclassiﬁers.Therefore,theprobabilityforaparticularcombinationoflabelsontheneighborscanbeexpressedastheproductofthecorrespondinglink-classpairproba-bilities.Theapproachstartsoﬀwiththeuseofastandardcontent-basedBayesorSVMclassiﬁerinordertoassigntheinitiallabelstothenodes.Then,aniterativeapproachisusedtoreﬁnethelabels,byusingthemostprobablylabelestimationsfromthepreviousiterationinordertoreﬁnethelabelsinthecurrentiteration.Wenotethatthelink-classpairprobabilitiescanbeestimatedasthesmoothedfractionofedgesinthelastiterationwhichcontainaparticularpairofclassesastheendpoints(hardlabeling),oritcanalsobeestimatedastheaverageproductofnodeprobabilitiesoveralledgeswhichtakeonthatparticularclasspair(softlabeling).Thisapproachisrepeatedtoconvergence.AnothermethodwhichusesanaiveBayesclassiﬁertoenhancelink-basedclassiﬁcationisproposedin[104].Thismethodincrementallyassignsclasslabels,startingoﬀwithatemporaryassignmentandthengraduallymakingthempermanent.TheinitialclassassignmentisbasedonasimpleBayesexpressionbasedonboththetermsandlinksinthe5Inthecaseofhardlabeling,thesinglemostlikelylabelingisused,whereasinthecaseofsoftlabeling,asmallsetofpossibilitiesisused.206MININGTEXTDATAdocument.Intheﬁnalcategorization,themethodchangesthetermweightsforBayesianclassiﬁcationofthetargetdocumentwiththetermsintheneighborofthecurrentdocument.Thismethodusesabroadframeworkwhichissimilartothatin[20],exceptthatitdiﬀerentiatesbetweentheclassesintheneighborhoodofadocumentintermsoftheirinﬂuenceontheclasslabelofthecurrentdocument.Forexample,docu-mentsforwhichtheclasslabelwaseitheralreadyavailableinthetrainingdata,orforwhichthealgorithmhasperformedaﬁnalassignment,haveadiﬀerentconﬁdenceweightingfactorthanthosedocumentsforwhichtheclasslabeliscurrentlytemporarilyassigned.Similarly,documentswhichbelongtoacompletelydiﬀerentsubject(basedoncontent)arealsoremovedfromconsiderationfromtheassignment.Then,theBayesianclassiﬁcationisperformedwiththere-computedweights,sothatthedocumentcanbeassignedaﬁnalclasslabel.Byusingthisapproachthetechniqueisabletocompensateforthenoiseandinconsistenciesinthelinkstructuresamongdiﬀerentdocuments.Onemajordiﬀerencebetweentheworkin[20]and[104],isthattheformerisfocussedonusinglinkinformationinordertopropagatethelabels,whereasthelatterattemptstousethecontentoftheneighboringpages.Anotherworkalongthisdirection,whichusesthecontentoftheneighboringpagesmoreexplicitlyisproposedin[105].Inthiscase,thecontentoftheneighboringpagesisbrokenupintodiﬀerentﬁeldssuchastitles,anchortext,andgeneraltext.Thediﬀerentﬁeldsaregivendiﬀerentlevelsofimportance,whichislearnedduringtheclassiﬁcationprocess.Itwasshownin[105]thattheuseoftitleﬁeldsandanchorﬁeldsismuchmorerelevantthanthegeneraltext.Thisaccountsformuchoftheaccuracyimprovementsdemonstratedin[105].Theworkin[2]proposesamethodfordynamicclassiﬁcationintextnetworkswiththeuseofarandom-walkmethod.Thekeyideaintheworkistotransformthecombinationofstructureandcontentinthenetworkintoapurenetworkcontainingonlycontent.Thus,wetrans-formtheoriginalnetworkG=(N,A,C)intoanaugmentednetworkGA=(N∪Nc,A∪Ac),whereNcandAcareanadditionalsetofnodesandedgesaddedtotheoriginalnetwork.EachnodeinNccorrespondstoadistinctwordinthelexicon.Thus,theaugmentednetworkcontainstheoriginalstructuralnodesN,andanewsetofwordnodesNc.TheaddededgesinAcareundirectededgesaddedbetweenthestructuralnodesNandthewordnodesNc.Speciﬁcally,anedge(i,j)isaddedtoAc,ifthewordi∈Ncoccursinthetextcontentcorrespondingtothenodej∈N.Thus,thisnetworkissemi-bipartite,inthattherearenoedgesbetweenthediﬀerentwordnodes.Anillustrationofthesemi-bipartitecontent-structuretransformationisprovidedinFigure6.4.ASurveyofTextClassiﬁcationAlgorithms2071234STRUCTURAL NODESWORD NODESDASHED LINES => WORD PRESENCE IN NODESFigure6.4.TheSemi-bipartiteTransformationItisimportanttonotethatoncesuchatransformationhasbeenperformed,anyofthecollectiveclassiﬁcationmethods[12]canbeappliedtothestructuralnodes.Intheworkin[2],arandom-walkmethodhasbeenusedinordertoperformthecollectiveclassiﬁcationoftheunderlyingnodes.Inthismethod,repeatedrandomwalksareperformedstartingattheunlabelednodeswhichneedtobeclassiﬁed.Therandomwalksaredeﬁnedonlyonthestructuralnodes,andeachhopmayeitherbeastructuralhoporacontenthop.Weperformldiﬀerentrandomwalks,eachofwhichcontainshnodes.Thus,atotalofl·hnodesareencounteredinthediﬀerentwalks.Theclasslabelofthisnodeispredictedtobethelabelwiththehighestfrequencyofpresenceinthediﬀerentl·hnodesencounteredinthediﬀerentwalks.Theerrorofthisrandomwalk-basedsamplingprocesshasbeenboundedin[12].Inaddition,themethodin[12]canbeadaptedtodynamiccontent-basednetworks,inwhichthenodes,edgesandtheirunderlyingcontentcontinuouslyevolveovertime.Themethodin[2]hasbeencomparedtothatproposedin[18](basedontheimplementationin[92]),andithasbeenshownthattheclassiﬁcationmethodsof[12]aresigniﬁcantlysuperior.Anothermethodforclassiﬁcationoflinkedtextdataisdiscussedin[139].Thismethoddesignstwoseparateregularizationconditions;oneisforthetext-onlyclassiﬁer(alsoreferredtoasthelocalclassiﬁer),and208MININGTEXTDATAtheotherisforthelinkinformationinthenetworkstructure.Thesereg-ularizersareexpressedinthetermsoftheunderlyingkernels;thelinkregularizerisrelatedtothestandardgraphregularizerusedinthema-chinelearningliterature,andthetextregularizerisexpressedintermsofthekernelgrammatrix.Thesetworegularizationconditionsarecom-binedintwopossibleways.Onecaneitheruselinearcombinationsoftheregularizers,orlinearcombinationsoftheassociatedkernels.Itwasshownin[139]thatbothcombinationmethodsperformbetterthaneitherpurestructure-basedorpuretext-basedmethods.Themethodus-ingalinearcombinationofregularizerswasslightlymoreaccurateandrobustthanthemethodwhichusedalinearcombinationofthekernels.Amethodin[32]designsaclassiﬁerwhichcombinesaNaiveBayesclassiﬁer(onthetextdomain),andarule-basedclassiﬁer(onthestruc-turaldomain).Theideaistoinventasetofpredicates,whicharedeﬁnedinthespaceoflinks,pagesandwords.Avarietyofpredicates(orrelations)aredeﬁneddependinguponthepresenceofthewordinapage,linkagesofpagestoeachother,thenatureoftheanchortextofthehyperlink,andtheneighborhoodwordsofthehyperlink.Theseessentiallyencodethegraphstructureofthedocumentsintheformofbooleanpredicates,andcanalsobeusedtoconstructrelationallearners.Themaincontributionin[32]istocombinetherelationallearnersonthestructuraldomainwiththeNaiveBayesapproachinthetextdomain.Wereferthereaderto[32,33]forthedetailsofthealgorithm,andthegeneralphilosophyofsuchrelationallearners.Oneoftheinterestingmethodsforcollectiveclassiﬁcationinthecon-textofemailnetworkswasproposedin[23].Thetechniquein[23]isdesignedtoclassifyspeechactsinemail.Speechactsessentiallychar-acterize,whetheranemailreferstoaparticularkindofaction(suchasschedulingameeting).Ithasbeenshownin[23]thattheuseofse-quentialthread-basedinformationfromtheemailisveryusefulfortheclassiﬁcationprocess.Anemailsystemcanbemodeledasanetworkinseveralways,oneofwhichistotreatanemailasanode,andtheedgesasthethreadrelationshipsbetweenthediﬀerentemails.Inthissense,theworkin[23]devisesanetwork-basedminingprocedurewhichusesboththecontentandthestructureoftheemailnetwork.However,thisworkisratherspeciﬁctothecaseofemailnetworks,anditisnotclearwhetherthetechniquecanbeadapted(eﬀectively)tomoregeneralnetworks.Adiﬀerentlineofsolutionstosuchproblems,whicharedeﬁnedonaheterogeneousfeaturespaceistouselatentspacemethodsinordertosimultaneouslyhomogenizethefeaturespace,andalsodeterminethelatentfactorsintheunderlyingdata.TheresultingrepresentationcanASurveyofTextClassiﬁcationAlgorithms209beusedinconjunctionwithanyofthetextclassiﬁerswhicharedesignedforlatentspacerepresentations.Amethodin[140]usesamatrixfactor-izationapproachinordertoconstructalatentspacefromtheunderlyingdata.Bothsupervisedandunsupervisedmethodswereproposedforcon-structingthelatentspacefromtheunderlyingdata.Itwasthenshownin[140]thatthisfeaturerepresentationprovidesmoreaccurateresults,whenusedinconjunctionwithanSVM-classiﬁer.Finally,amethodforwebpageclassiﬁcationisproposedin[119].Thismethodisdesignedforusingintelligentagentsinwebpagecategoriza-tion.Theoverallapproachreliesonthedesignoftwofunctionswhichcorrespondtoscoringwebpagesandlinksrespectively.Anadvicelan-guageiscreated,andamethodisproposedformappingadvicetoneuralnetworks.Itishasbeenshownin[119]howthisgeneralpurposesystemmaybeusedinordertoﬁndhomepagesontheweb.9.Meta-AlgorithmsforTextClassiﬁcationMeta-algorithmsplayanimportantroleinclassiﬁcationstrategiesbe-causeoftheirabilitytoenhancetheaccuracyofexistingclassiﬁcationalgorithmsbycombiningthem,ormakingageneralchangeinthediﬀer-entalgorithmstoachieveaspeciﬁcgoal.Typicalexamplesofclassiﬁermeta-algorithmsincludebagging,stackingandboosting[42].Someofthesemethodschangetheunderlyingdistributionofthetrainingdata,otherscombineclassiﬁers,andyetotherschangethealgorithmsinordertosatisfyspeciﬁcclassiﬁcationcriteria.Wewilldiscussthesediﬀerentclassesofmethodsinthissection.9.1ClassiﬁerEnsembleLearningInthismethod,weusecombinationsofclassiﬁersinconjunctionwithavotingmechanisminordertoperformtheclassiﬁcation.Theideaisthatsincediﬀerentclassiﬁersaresusceptibletodiﬀerentkindsofover-traininganderrors,acombinationclassiﬁerislikelytoyieldmuchmorerobustresults.Thistechniqueisalsosometimesreferredtoasstackingorclassiﬁercommitteeconstruction.Ensemblelearninghasbeenusedquitefrequentlyintextcategoriza-tion.Mostmethodssimplyuseweightedcombinationsofclassiﬁerout-puts(eitherintermsofscoresorranks)inordertoprovidetheﬁnalclassiﬁcationresult.Forexample,theworkbyLarkeyandCroft[79]usedweightedlinearcombinationsoftheclassiﬁerscoresorranks.TheworkbyHull[60]usedlinearcombinationsofprobabilitiesforthesamegoal.Alinearcombinationofthenormalizedscoreswasusedforclassi-ﬁcation[137].Theworkin[87]usedclassiﬁerselectiontechniquesand210MININGTEXTDATAvotinginordertoprovidetheﬁnalclassiﬁcationresult.Someexamplesofsuchvotingandselectiontechniquesareasfollows:Inabinary-classapplication,theclasslabelwhichobtainsthemajorityvoteisreportedastheﬁnalresult.Foragiventestinstance,aspeciﬁcclassiﬁerisselected,dependingupontheperformanceoftheclassiﬁerwhichareclosesttothattestinstance.Aweightedcombinationoftheresultsfromthediﬀerentclassiﬁersareused,wheretheweightisregulatedbytheperformanceoftheclassiﬁeronvalidationinstanceswhicharemostsimilartothecurrenttestinstance.Thelasttwomethodsabovetrytoselecttheﬁnalclassiﬁcationinasmarterwaybydiscriminatingbetweentheperformancesoftheclas-siﬁersindiﬀerentscenarios.Theworkby[77]usedcategory-averagedfeaturesinordertoconstructadiﬀerentclassiﬁerforeachcategory.Themajorchallengeinensemblelearningistoprovidetheappropriatecombinationofclassiﬁersforaparticularscenario.Clearly,thiscombi-nationcansigniﬁcantlyvarywiththescenarioandthedataset.Inordertoachievethisgoal,themethodin[10]proposesamethodforproba-bilisticcombinationoftextclassiﬁers.Theworkintroducesanumberofvariablesknownasreliabilityvariablesinordertoregulatetheimpor-tanceofthediﬀerentclassiﬁers.Thesereliabilityvariablesarelearneddynamicallyforeachsituation,soastoprovidethebestclassiﬁcation.9.2DataCenteredMethods:BoostingandBaggingWhileensembletechniquesfocusoncombiningdiﬀerentclassiﬁers,data-centeredmethodssuchasboostingandbaggingtypicallyfocusontrainingthesameclassiﬁerondiﬀerentpartsofthetrainingdatainordertocreatediﬀerentmodels.Foragiventestinstance,acombinationoftheresultsobtainedfromtheuseofthesediﬀerentmodelsisreported.An-othermajordiﬀerencebetweenensemble-methodsandboostingmethodsisthatthetrainingmodelsinaboostingmethodarenotconstructedin-dependently,butareconstructedsequentially.Speciﬁcally,aftericlassi-ﬁersareconstructed,the(i+1)thclassiﬁerisconstructedonthosepartsofthetrainingdatawhichtheﬁrsticlassiﬁersareunabletoaccuratelyclassify.Theresultsofthesediﬀerentclassiﬁersarecombinedtogethercarefully,wheretheweightofeachclassiﬁeristypicallyafunctionofitserrorrate.Themostwellknownmeta-algorithmforboostingistheASurveyofTextClassiﬁcationAlgorithms211AdaBoostalgorithm[48].Suchboostingalgorithmshavebeenappliedtoavarietyofscenariossuchasdecisiontreelearners,rule-basedsystems,andBayesianclassiﬁers[49,61,73,100,116,118].Wenotethatboostingisalsoakindofensemblelearningmethodology,exceptthatwetrainthesamemodelondiﬀerentsubsetsofthedatainordertocreatetheensemble.Onemajorcriticismofboostingisthatinmanydatasets,someofthetrainingrecordsarenoisy,andaclassiﬁcationmodelshouldberesistanttoovertrainingonthedata.Sincetheboostingmodeltendstoweighttheerror-proneexamplesmoreheavilyinsuccessiverounds,thiscancausetheclassiﬁcationprocesstobemorepronetooverﬁtting.Thisisparticularlynoticeableinthecaseofnoisydatasets.Somerecentresultshavesuggestedthatallconvexboostingalgorithmsmayperformpoorlyinthepresenceofnoise[91].Theseresultstendtosuggestthatthechoiceofboostingalgorithmmaybecriticalforasuccessfuloutcome,dependingupontheunderlyingdataset.Baggingmethods[16]aregenerallydesignedtoreducethemodelover-ﬁttingerrorwhicharisesduringthelearningprocess.Theideainbag-gingistopickbootstrapsamples(sampleswithreplacement)fromtheunderlyingcollection,andtraintheclassiﬁersinthesesamples.Theclassiﬁcationresultsfromthesediﬀerentsamplesarethencombinedto-getherinordertoyieldtheﬁnalresult.Baggingmethodsaregenerallyusedinconjunctionwithdecisiontrees,thoughthesemethodscanbeusedinprinciplewithanykindofclassiﬁer.Themaincriticismofthebaggingmethodisthatitcansometimesleadtoareductioninaccuracybecauseofthesmallersizeofeachindividualtrainingsample.Baggingisusefulonlyifthemodelisunstabletosmalldetailsofthetrainingalgorithm,becauseitreducestheoverﬁttingerror.Anexampleofsuchanalgorithmwouldbethedecisiontreemodel,whichishighlysensitivetohowthehigherlevelsofthetreeareconstructedinahighdimen-sionalfeaturespacesuchastext.Baggingmethodshavenotbeenusedfrequentlyintextclassiﬁcation.9.3OptimizingSpeciﬁcMeasuresofAccuracyWenotethattheuseoftheabsoluteclassiﬁcationaccuracyisnottheonlymeasurewhichisrelevanttoclassiﬁcationalgorithms.Forex-ample,inskewed-classscenarios,asoftenariseinthecontextofappli-cationssuchasfrauddetection,andspamﬁltering,itismorecostlytomisclassifyexamplesofoneclassthananother.Forexample,whileitmaybetolerabletomisclassifyafewspamemails(therebyallowingthemintotheinbox),itismuchmoreundesirabletoincorrectlymark212MININGTEXTDATAalegitimateemailasspam.Cost-sensitiveclassiﬁcationproblemsalsonaturallyariseincasesinwhichoneclassismorerarethantheother,anditisthereforemoredesirabletoidentifytherareexamples.Insuchcases,itisdesirabletooptimizethecost-weightedaccuracyoftheclas-siﬁcationprocess.Wenotethatmanyofthebroadtechniqueswhichhavebeendesignedfornon-textualdata[40,42,45]arealsoapplicabletotextdata,becausethespeciﬁcfeaturerepresentationisnotmaterialtohowstandardalgorithmsformodiﬁedtothecost-sensitivecase.Agoodunderstandingofcost-sensitiveclassiﬁcationbothforthetextualandnon-textualcasemaybefoundin[40,45,3].Someexamplesofhowclassiﬁcationalgorithmsmaybemodiﬁedinstraightforwardwaystoincorporatecost-sensitivityareasfollows:Inadecision-tree,thesplitconditionatagivennodetriestomax-imizetheaccuracyofitschildrennodes.Inthecost-sensitivecase,thesplitisengineeredtomaximizethecost-sensitiveaccuracy.Inrule-basedclassiﬁers,therulesaretypicallyquantiﬁedandor-deredbymeasurescorrespondingtotheirpredictiveaccuracy.Inthecost-sensitivecase,therulesarequantiﬁedandorderedbytheircost-weightedaccuracy.InBayesianclassiﬁers,theposteriorprobabilitiesareweightedbythecostoftheclassforwhichthepredictionismade.Inlinearclassiﬁers,theoptimumhyperplaneseparatingtheclassesisdeterminedinacost-weightedsense.Suchcostscantypicallybeincorporatedintheunderlyingobjectivefunction.Forexample,theleast-squareerrorintheobjectivefunctionoftheLLSFmethodcanbeweightedbytheunderlyingcostsofthediﬀerentclasses.Inak-nearestneighborclassiﬁer,wereportthecost-weightedma-jorityclassamongtheknearestneighborsofthetestinstance.Wenotethattheuseofacost-sensitiveapproachisessentiallyachangeoftheobjectivefunctionofclassiﬁcation,whichcanalsobefor-mulatedasanoptimizationproblem.Whilethestandardclassiﬁcationproblemgenerallytriestooptimizeaccuracy,thecost-sensitiveversiontriestooptimizeacost-weightedobjectivefunction.Amoregeneralapproachwasproposedin[50]inwhichameta-algorithmwasproposedforoptimizingaspeciﬁcﬁgureofmeritsuchastheaccuracy,preci-sion,recall,orF1-measure.Thus,thisapproachgeneralizesthisclassofmethodstoanyarbitraryobjectivefunction,makingitessentiallyanobjective-centeredclassiﬁcationmethod.Ageneralizedprobabilisticde-scentalgorithm(withthedesiredobjectivefunction)isusedinconjunc-ASurveyofTextClassiﬁcationAlgorithms213tionwiththeclassiﬁerofinterestinordertoderivetheclasslabelsofthetestinstance.Theworkin[50]showstheadvantagesofusingthetechniqueoverastandardSVM-basedclassiﬁer.10.ConclusionsandSummaryTheclassiﬁcationproblemisoneofthemostfundamentalproblemsinthemachinelearninganddataminingliterature.Inthecontextoftextdata,theproblemcanalsobeconsideredsimilartothatofclas-siﬁcationofdiscreteset-valuedattributes,whenthefrequenciesofthewordsareignored.Thedomainsofthesesetsareratherlarge,asitcom-prisestheentirelexicon.Therefore,textminingtechniquesneedtobedesignedtoeﬀectivelymanagelargenumbersofelementswithvaryingfrequencies.Almostalltheknowntechniquesforclassiﬁcationsuchasdecisiontrees,rules,Bayesmethods,nearestneighborclassiﬁers,SVMclassiﬁers,andneuralnetworkshavebeenextendedtothecaseoftextdata.Recently,aconsiderableamountofemphasishasbeenplacedonlinearclassiﬁerssuchasneuralnetworksandSVMclassiﬁers,withthelatterbeingparticularlysuitedtothecharacteristicsoftextdata.Inre-centyears,theadvancementofwebandsocialnetworktechnologieshaveleadtoatremendousinterestintheclassiﬁcationoftextdocumentscon-taininglinksorothermeta-information.Recentresearchhasshownthattheincorporationoflinkageinformationintotheclassiﬁcationprocesscansigniﬁcantlyimprovethequalityoftheunderlyingresults.References[1]C.C.Aggarwal,S.C.Gates,P.S.Yu.OnUsingPartialSupervi-sionforTextCategorization,IEEETransactionsonKnowledgeandDataEngineering,16(2),245–255,2004.[2]C.C.Aggarwal,N.Li.OnNodeClassiﬁcationinDynamicContent-basedNetworks,SDMConference,2011.[3]I.Androutsopoulos,J.Koutsias,K.Chandrinos,G.Paliouras,C.Spyropoulos.AnEvaluationofNaiveBayesianAnti-SpamFiltering.WorkshoponMachineLearningintheNewInformationAge,inconjunctionwithECMLConference,2000.http://arxiv.org/PS_cache/cs/pdf/0006/0006013v1.pdf[4]R.Angelova,G.Weikum.Graph-basedtextclassiﬁcation:learnfromyourneighbors.ACMSIGIRConference,2006.[5]C.Apte,F.Damerau,S.Weiss.AutomatedLearningofDecisionRulesforTextCategorization,ACMTransactionsonInformationSystems,12(3),pp.233–251,1994.214MININGTEXTDATA[6]M.Aizerman,E.Braverman,L.Rozonoer.Theoreticalfoundationsofthepotentialfunctionmethodinpatternrecognitionlearning,AutomationandRemoteControl,25:pp.821–837,1964.[7]L.Baker,A.McCallum.DistributionalClusteringofWordsforTextClassiﬁcation,ACMSIGIRConference,1998.[8]R.Bekkerman,R.El-Yaniv,Y.Winter,N.Tishby.OnFeatureDis-tributionalClusteringforTextCategorization.ACMSIGIRCon-ference,2001.[9]S.Basu,A.Banerjee,R.J.Mooney.Semi-supervisedClusteringbySeeding.ICMLConference,2002.[10]P.Bennett,S.Dumais,E.Horvitz.ProbabilisticCombinationofTextClassiﬁersusingReliabilityIndicators:ModelsandResults.ACMSIGIRConference,2002.[11]P.Bennett,N.Nguyen.Reﬁnedexperts:improvingclassiﬁcationinlargetaxonomies.ACMSIGIRConference,2009.[12]S.Bhagat,G.Cormode,S.Muthukrishnan.NodeClassiﬁcationinSocialNetworks,BookChapterinSocialNetworkDataAnalytics,Ed.CharuAggarwal,Springer,2011.[13]A.Blum,T.Mitchell.Combininglabeledandunlabeleddatawithco-training.COLT,1998.[14]D.Boley,M.Gini,R.Gross,E.-H.Han,K.Hastings,G.Karypis,V.Kumar,B.Mobasher,J.Moore.Partitioning-basedclusteringforwebdocumentcategorization.DecisionSupportSystems,Vol.27,pp.329–341,1999.[15]L.Brieman,J.Friedman,R.Olshen,C.Stone.ClassiﬁcationandRegressionTrees,WadsworthAdvancedBooksandSoftware,CA,1984.[16]L.Breiman.BaggingPredictors.MachineLearning,24(2),pp.123–140,1996.[17]L.Cai,T.Hofmann.Textcategorizationbyboostingautomaticallyextractedconcepts.ACMSIGIRConference,2003.[18]S.Chakrabarti,S.Roy,M.Soundalgekar.FastandAccurateTextClassiﬁcationviaMultipleLinearDiscriminantProjections,VLDBJournal,12(2),pp.172–185,2003.[19]S.Chakrabarti,B.Dom.R.Agrawal,P.Raghavan.Usingtaxon-omy,discriminantsandsignaturesfornavigatingintextdatabases,VLDBConference,1997.[20]S.Chakrabarti,B.Dom,P.Indyk.Enhancedhypertextcategoriza-tionusinghyperlinks.ACMSIGMODConference,1998.ASurveyofTextClassiﬁcationAlgorithms215[21]S.Chakraborti,R.Mukras,R.Lothian,N.Wiratunga,S.Watt,D.Harper.SupervisedLatentSemanticIndexingusingAdaptiveSprinkling,IJCAI,2007.[22]D.Chickering,D.Heckerman,C.Meek.ABayesianapproachforlearningBayesiannetworkswithlocalstructure.ThirteenthCon-ferenceonUncertaintyinArtiﬁcialIntelligence,1997.[23]V.R.deCarvalho,W.Cohen.Onthecollectiveclassiﬁcationofemail”speechacts”,ACMSIGIRConference,2005.[24]V.Castelli,T.M.Cover.Ontheexponentialvalueoflabeledsam-ples.PatternRecognitionLetters,16(1),pp.105–111,1995.[25]W.Cohen,H.Hirsh.Joinsthatgeneralize:textclassiﬁcationusingWhirl.ACMKDDConference,1998.[26]W.Cohen,Y.Singer.Context-sensitivelearningmethodsfortextcategorization.ACMTransactionsonInformationSystems,17(2),pp.141–173,1999.[27]W.Cohen.Learningrulesthatclassifye-mail.AAAIConference,1996.[28]W.Cohen.Learningwithset-valuedfeatures.AAAIConference,1996.[29]W.Cooper.Someinconsistenciesandmisnomersinprobabilisticinformationretrieval.ACMTransactionsonInformationSystems,13(1),pp.100–111,1995.[30]C.Cortes,V.Vapnik.Support-vectornetworks.MachineLearning,20:pp.273–297,1995.[31]T.M.Cover,J.A.Thomas.Elementsofinformationtheory.NewYork:JohnWileyandSons,1991.[32]M.Craven,S.Slattery.Relationallearningwithstatisticalpredicateinvention:Bettermodelsforhypertext.MachineLearning,43:pp.97–119,2001.[33]M.Craven,D.DiPasquo,D.Freitag,A.McCallum,T.Mitchell,K.Nigam,S.Slattery.LearningtoExtractSymbolicKnowledgefromtheWorldwideWeb.AAAIConference,1998.[34]I.Dagan,Y.Karov,D.Roth.Mistake-drivenLearninginTextCat-egorization,ProceedingsofEMNLP,1997.[35]A.Dayanik,D.Lewis,D.Madigan,V.Menkov,A.Genkin.Con-structinginformativepriordistributionsfromdomainknowledgeintextclassiﬁcation.ACMSIGIRConference,2006.[36]A.P.Dempster,N.M.Laird,D.B.Rubin.Maximumlikelihoodfromincompletedataviatheemalgorithm.JournaloftheRoyalStatis-ticalSociety,SeriesB,39(1):pp.1–38,1977.216MININGTEXTDATA[37]F.Denis,A.Laurent.TextClassiﬁcationandCo-TrainingfromPositiveandUnlabeledExamples,ICML2003Workshop:TheContinuumfromLabeledtoUnlabeledData.http://www.grappa.univ-lille3.fr/ftp/reports/icmlws03.pdf.[38]S.Deerwester,S.Dumais,T.Landauer,G.Furnas,R.Harshman.IndexingbyLatentSemanticAnalysis.JASIS,41(6),pp.391–407,1990.[39]P.Domingos,M.J.Pazzani.OnthetheoptimalityofthesimpleBayesianclassiﬁerunderzero-oneloss.MachineLearning,29(2–3),pp.103–130,1997.[40]P.Domingos.MetaCost:AGeneralMethodformakingClassiﬁersCost-Sensitive.ACMKDDConference,1999.[41]H.Drucker,D.Wu,V.Vapnik.SupportVectorMachinesforSpamCategorization.IEEETransactionsonNeuralNetworks,10(5),pp.1048–1054,1999.[42]R.Duda,P.Hart,W.Stork.PatternClassiﬁcation,WileyInter-science,2000.[43]S.Dumais,J.Platt,D.Heckerman,M.Sahami.Inductivelearn-ingalgorithmsandrepresentationsfortextcategorization.CIKMConference,1998.[44]S.Dumais,H.Chen.HierarchicalClassiﬁcationofWebContent.ACMSIGIRConference,2000.[45]C.Elkan.Thefoundationsofcost-sensitivelearning,IJCAICon-ference,2001.[46]R.Fisher.TheUseofMultipleMeasurementsinTaxonomicProb-lems.AnnalsofEugenics,7,pp.179–188,1936.[47]R.El-Yaniv,O.Souroujon.IterativeDoubleClusteringforUnsu-pervisedandSemi-supervisedLearning.NIPSConference,2002.[48]Y.Freund,R.Schapire.Adecision-theoreticgeneralizationofon-linelearningandanapplicationtoboosting.InProc.SecondEu-ropeanConferenceonComputationalLearningTheory,pp.23–37,1995.[49]Y.Freund,R.Schapire,Y.Singer,M.Warmuth.Usingandcombin-ingpredictorsthatspecialize.Proceedingsofthe29thAnnualACMSymposiumonTheoryofComputing,pp.334–343,1997.[50]S.Gao,W.Wu,C.-H.Lee,T.-S.Chua.Amaximalﬁgure-of-meritlearningapproachtotextcategorization.SIGIRConference,2003.[51]R.Gilad-Bachrach,A.Navot,N.Tishby.Marginbasedfeaturese-lection–theoryandalgorithms.ICMLConference,2004.ASurveyofTextClassiﬁcationAlgorithms217[52]S.Gopal,Y.Yang.Multilabelclassiﬁcationwithmeta-levelfeatures.ACMSIGIRConference,2010.[53]L.Guthrie,E.Walker.DocumentClassiﬁcationbyMachine:TheoryandPractice.COLING,1994.[54]E.-H.Han,G.Karypis,V.Kumar.TextCategorizationusingWeighted-Adjustedk-nearestneighborclassiﬁcation,PAKDDCon-ference,2001.[55]E.-H.Han,G.Karypis.Centroid-basedDocumentClassiﬁcation:AnalysisandExperimentalResults,PKDDConference,2000.[56]D.Hardin,I.Tsamardinos,C.Aliferis.Atheoreticalcharacteriza-tionoflinearSVM-basedfeatureselection.ICMLConference,2004.[57]T.Hofmann.Probabilisticlatentsemanticindexing.ACMSIGIRConference,1999.[58]P.Howland,M.Jeon,H.Park.StructurePreservingDimensionRe-ductionforClusteredTextDatabasedontheGeneralizedSingularValueDecomposition.SIAMJournalofMatrixAnalysisandAppli-cations,25(1):pp.165–179,2003.[59]P.Howland,H.Park.Generalizingdiscriminantanalysisusingthegeneralizedsingularvaluedecomposition,IEEETransactionsonPatternAnalysisandMachineIntelligence,26(8),pp.995–1006,2004.[60]D.Hull,J.Pedersen,H.Schutze.Methodcombinationfordocumentﬁltering.ACMSIGIRConference,1996.[61]R.Iyer,D.Lewis,R.Schapire,Y.Singer,A.Singhal.Boostingfordocumentrouting.CIKMConference,2000.[62]M.James.ClassiﬁcationAlgorithms,WileyInterscience,1985.[63]D.Jensen,J.Neville,B.Gallagher.Whycollectiveinferenceim-provesrelationalclassiﬁcation.ACMKDDConference,2004.[64]T.Joachims.AProbabilisticAnalysisoftheRocchioAlgorithmwithTFIDFforTextCategorization.ICMLConference,1997.[65]T.Joachims.Textcategorizationwithsupportvectormachines:learningwithmanyrelevantfeatures.ECMLConference,1998.[66]T.Joachims.Transductiveinferencefortextclassiﬁcationusingsup-portvectormachines.ICMLConference,1999.[67]T.Joachims.AStatisticalLearningModelofTextClassiﬁcationforSupportVectorMachines.ACMSIGIRConference,2001.[68]D.Johnson,F.Oles,T.Zhang,T.Goetz.ADecisionTree-basedSymbolicRuleInductionSystemforTextCategorization,IBMSys-temsJournal,41(3),pp.428–437,2002.218MININGTEXTDATA[69]I.T.Jolliﬀee.PrincipalComponentAnalysis.Springer,2002.[70]T.Kalt,W.B.Croft.Anewprobabilisticmodeloftextclassiﬁcationandretrieval.TechnicalReportIR-78,UniversityofMassachusettsCenterforIntelligentInformationRetrieval,1996.http://ciir.cs.umass.edu/publications/index.shtml[71]G.Karypis,E.-H.Han.FastSupervisedDimensionalityReductionwithApplicationstoDocumentCategorizationandRetrieval,ACMCIKMConference,2000.[72]T.Kawatani.Topicdiﬀerencefactorextractionbetweentwodocu-mentsetsanditsapplicationtotextcategorization.ACMSIGIRConference,2002.[73]Y.-H.Kim,S.-Y.Hahn,B.-T.Zhang.TextﬁlteringbyboostingnaiveBayesclassiﬁers.ACMSIGIRConference,2000.[74]D.Koller,M.Sahami.Hierarchicallyclassifyingdocumentswithveryfewwords,ICMLConference,2007.[75]S.Lam,D.Lee.Featurereductionforneuralnetworkbasedtextcategorization.DASFAAConference,1999.[76]W.Lam,C.Y.Ho.Usingageneralizedinstancesetforautomatictextcategorization.ACMSIGIRConference,1998.[77]W.Lam,K.-Y.Lai.Ameta-learningapproachfortextcategoriza-tion.ACMSIGIRConference,2001.[78]K.Lang.Newsweeder:Learningtoﬁlternetnews.ICMLConfer-ence,1995.[79]L.S.Larkey,W.B.Croft.CombiningClassiﬁersintextcategoriza-tion.ACMSIGIRConference,1996.[80]D.Lewis,J.Catlett.Heterogeneousuncertaintysamplingforsuper-visedlearning.ICMLConference,1994.[81]D.Lewis,M.Ringuette.Acomparisonoftwolearningalgorithmsfortextcategorization.SDAIR,1994.[82]D.Lewis.Naive(Bayes)atforty:Theindependenceassumptionininformationretrieval.ECMLConference,1998.[83]D.Lewis.AnEvaluationofPhrasalandClusteredRepresentationsfortheTextCategorizationTask,ACMSIGIRConference,1992.[84]D.Lewis,W.Gale.Asequentialalgorithmfortrainingtextclassi-ﬁers,SIGIRConference,1994.[85]D.Lewis,K.Knowles.Threadingelectronicmail:Apreliminarystudy.InformationProcessingandManagement,33(2),pp.209–217,1997.ASurveyofTextClassiﬁcationAlgorithms219[86]H.Li,K.Yamanishi.Documentclassiﬁcationusingaﬁnitemix-turemodel.AnnualMeetingoftheAssociationforComputationalLinguistics,1997.[87]Y.Li,A.Jain.Classiﬁcationoftextdocuments.TheComputerJournal,41(8),pp.537–546,1998.[88]B.Liu,W.Hsu,Y.Ma.IntegratingClassiﬁcationandAssociationRuleMining.ACMKDDConference,1998.[89]B.Liu,L.Zhang.ASurveyofOpinionMiningandSentimentAnal-ysis.BookChapterinMiningTextData,Ed.C.Aggarwal,C.Zhai,Springer,2011.[90]N.Littlestone.Learningquicklywhenirrelevantattributesabound:Anewlinear-thresholdalgorithm.MachineLearning,2:pp.285–318,1988.[91]P.Long,R.Servedio.RandomClassiﬁcationNoisedefeatsallCon-vexPotentialBoosters.ICMLConference,2008.[92]S.A.Macskassy,F.Provost.ClassiﬁcationinNetworkedData:AToolkitandaUnivariateCaseStudy,JournalofMachineLearningResearch,Vol.8,pp.935–983,2007.[93]A.McCallum.Bow:Atoolkitforstatisticallanguagemodeling,textretrieval,classiﬁcationandclustering.http://www.cs.cmu.edu/~mccallum/bow,1996.[94]A.McCallum,K.Nigam.AComparisonofEventModelsforNaiveBayesTextClassiﬁcation.AAAIWorkshoponLearningforTextCategorization,1998.[95]A.McCallum,R.Rosenfeld,T.Mitchell,A.Ng.Improvingtextclassiﬁcationbyshrinkageinahierarchyofclasses.ICMLConfer-ence,1998.[96]McCallum,AndrewKachites.”MALLET:AMachineLearningforLanguageToolkit.”http://mallet.cs.umass.edu.2002.[97]T.M.Mitchell.MachineLearning.WCB/McGraw-Hill,1997.[98]T.M.Mitchell.Theroleofunlabeleddatainsupervisedlearning.ProceedingsoftheSixthInternationalColloquiumonCognitiveSci-ence,1999.[99]D.Mladenic,J.Brank,M.Grobelnik,N.Milic-Frayling.Featurese-lectionusinglinearclassiﬁerweights:interactionwithclassiﬁcationmodels.ACMSIGIRConference,2004.[100]K.Myers,M.Kearns,S.Singh,M.Walker.Aboostingapproachtotopicspottingonsubdialogues.ICMLConference,2000.220MININGTEXTDATA[101]H.T.Ng,W.Goh,K.Low.Featureselection,perceptronlearn-ing,andausabilitycasestudyfortextcategorization.ACMSIGIRConference,1997.[102]A.Y.Ng,M.I.Jordan.Ondiscriminativevs.generativeclassiﬁers:acomparisonoflogisticregressionandnaiveBayes.NIPS.pp.841-848,2001.[103]K.Nigam,A.McCallum,S.Thrun,T.Mitchell.Learningtoclas-sifytextfromlabeledandunlabeleddocuments.AAAIConference,1998.[104]H.-J.Oh,S.-H.Myaeng,M.-H.Lee.Apracticalhypertextcat-egorizationmethodusinglinksandincrementallyavailableclassinformation.ACMSIGIRConference,2000.[105]X.Qi,B.Davison.Classiﬁerswithoutborders:incorporatingﬁeldedtextfromneighboringwebpages.ACMSIGIRConference,2008.[106]J.R.Quinlan,InductionofDecisionTrees,MachineLearning,1(1),pp81–106,1986.[107]H.Raghavan,J.Allan.Aninteractivealgorithmforaskingandincorporatingfeaturefeedbackintosupportvectormachines.ACMSIGIRConference,2007.[108]S.E.Robertson,K.Sparck-Jones.Relevanceweightingofsearchterms.JournaloftheAmericanSocietyforInformationScience,27:pp.129–146,1976.[109]J.Rocchio.Relevancefeedbackinformationretrieval.TheSmartRetrievalSystem-ExperimentsinAutomaticDocumentProcessing,G.Salton,Ed.PrenticeHall,EnglewoodCliﬀs,NJ,pp313–323,1971.[110]M.Ruiz,P.Srinivasan.Hierarchicalneuralnetworksfortextcat-egorization.ACMSIGIRConference,1999.[111]F.Sebastiani.MachineLearninginAutomatedTextCategoriza-tion,ACMComputingSurveys,34(1),2002.[112]M.Sahami.LearninglimiteddependenceBayesianclassiﬁers,ACMKDDConference,1996.[113]M.Sahami,S.Dumais,D.Heckerman,E.Horvitz.ABayesianapproachtoﬁlteringjunke-mail.AAAIWorkshoponLearningforTextCategorization.Tech.Rep.WS-98-05,AAAIPress.http://robotics.stanford.edu/users/sahami/papers.html[114]T.Salles,L.Rocha,G.Pappa,G.Mourao,W.MeiraJr.,M.Goncalves.Temporally-awarealgorithmsfordocumentclassiﬁca-tion.ACMSIGIRConference,2010.ASurveyofTextClassiﬁcationAlgorithms221[115]G.Salton.AnIntroductiontoModernInformationRetrieval,McGrawHill,1983.[116]R.Schapire,Y.Singer.BOOSTEXTER:ABoosting-basedSystemforTextCategorization,MachineLearning,39(2/3),pp.135–168,2000.[117]H.Schutze,D.Hull,J.Pedersen.Acomparisonofclassiﬁersanddocumentrepresentationsfortheroutingproblem.ACMSIGIRConference,1995.[118]R.Shapire,Y.Singer,A.Singhal.BoostingandRocchioappliedtotextﬁltering.ACMSIGIRConference,1998.[119]J.Shavlik,T.Eliassi-Rad.Intelligentagentsforweb-basedtasks:Anadvice-takingapproach.AAAI-98WorkshoponLearningforTextCategorization.Tech.Rep.WS-98-05,AAAIPress,1998.http://www.cs.wisc.edu/~shavlik/mlrg/publications.html[120]V.Sindhwani,S.S.Keerthi.Largescalesemi-supervisedlinearSVMs.ACMSIGIRConference,2006.[121]N.Slonim,N.Tishby.Thepowerofwordclustersfortextclas-siﬁcation.EuropeanColloquiumonInformationRetrievalResearch(ECIR),2001.[122]N.Slonim,N.Friedman,N.Tishby.Unsuperviseddocumentclas-siﬁcationusingsequentialinformationmaximization.ACMSIGIRConference,2002.[123]J.-T.Sun,Z.Chen,H.-J.Zeng,Y.Lu,C.-Y.Shi,W.-Y.Ma.Su-pervisedLatentSemanticIndexingforDocumentCategorization.ICDMConference,2004.[124]V.Vapnik.Estimationsofdependenciesbasedonstatisticaldata,Springer,1982.[125]V.Vapnik.TheNatureofStatisticalLearningTheory,Springer,NewYork,1995.[126]A.Weigand,E.Weiner,J.Pedersen.Exploitinghierarchyintextcatagorization.InformationRetrieval,1(3),pp.193–216,1999.[127]S,M.Weiss,C.Apte,F.Damerau,D.Johnson,F.Oles,T.Goetz,T.Hampp.Maximizingtext-miningperformance.IEEEIntelligentSystems,14(4),pp.63–69,1999.[128]S.M.Weiss,N.Indurkhya.OptimizedRuleInduction,IEEEExp.,8(6),pp.61–69,1993.[129]E.Wiener,J.O.Pedersen,A.S.Weigend.ANeuralNetworkAp-proachtoTopicSpotting.SDAIR,pp.317–332,1995.222MININGTEXTDATA[130]G.-R.Xue,D.Xing,Q.Yang,Y.Yu.Deepclassiﬁcationinlarge-scaletexthierarchies.ACMSIGIRConference,2008.[131]J.Yan,N.Liu,B.Zhang,S.Yan,Z.Chen,Q.Cheng,W.Fan,W.-Y.Ma.OCFS:optimalorthogonalcentroidfeatureselectionfortextcategorization.ACMSIGIRConference,2005.[132]Y.Yang,L.Liu.Are-examinationoftextcategorizationmethods,ACMSIGIRConference,1999.[133]Y.Yang,J.O.Pederson.Acomparativestudyonfeatureselectionintextcategorization,ACMSIGIRConference,1995.[134]Y.Yang,C.G.Chute.Anexample-basedmappingmethodfortextcategorizationandretrieval.ACMTransactionsonInforma-tionSystems,12(3),1994.[135]Y.Yang.NoiseReductioninaStatisticalApproachtoTextCat-egorization,ACMSIGIRConference,1995.[136]Y.Yang.AStudyonThresholdingStrategiesforTextCategoriza-tion.ACMSIGIRConference,2001.[137]Y.Yang,T.Ault,T.Pierce.Combiningmultiplelearningstrate-giesforeﬀectivecross-validation.ICMLConference,2000.[138]J.Zhang,Y.Yang.Robustnessofregularizedlinearclassiﬁcationmethodsintextcategorization.ACMSIGIRConference,2003.[139]T.Zhang,A.Popescul,B.Dom.Linearpredictionmodelswithgraphregularizationforweb-pagecategorization,ACMKDDCon-ference,2006.[140]S.Zhu,K.Yu,Y.Chi,Y.Gong.Combiningcontentandlinkforclassiﬁcationusingmatrixfactorization.ACMSIGIRConference,2007.C.C. Aggarwal and C.X. Zhai (eds.), Mining Text Data, DOI 10.1007/978-1-4614-3223-4_7,

Chapter7TRANSFERLEARNINGFORTEXTMININGWeikePanHongKongUniversityofScienceandTechnologyClearwaterBay,Kowloon,HongKongweikep@cse.ust.hkErhengZhongHongKongUniversityofScienceandTechnologyClearwaterBay,Kowloon,HongKongezhong@cse.ust.hkQiangYangHongKongUniversityofScienceandTechnologyClearwaterBay,Kowloon,HongKongqyang@cse.ust.hkAbstractOvertheyears,transferlearninghasreceivedmuchattentioninmachinelearningresearchandpractice.Researchershavefoundthatamajorbottleneckassociatedwithmachinelearningandtextminingisthelackofhigh-qualityannotatedexamplestohelptrainamodel.Inresponse,transferlearningoﬀersanattractivesolutionforthisproblem.Varioustransferlearningmethodsaredesignedtoextracttheusefulknowledgefromdiﬀerentbutrelatedauxiliarydomains.Initsconnectiontotextmining,transferlearninghasfoundnovelandusefulapplications.Inthischapter,wewillreviewsomemostrecentdevelopmentsintransferlearningfortextmining,explainrelatedalgorithmsindetail,andprojectfuturedevelopmentsofthisﬁeld.Wefocusontwoimportanttopics:cross-domaintextdocumentclassiﬁcationandheterogeneoustransferlearningthatuseslabeledtextdocumentstohelpclassifyimages.Keywords:Transferlearning,textmining,classiﬁcation,clustering,learning-to-rank.© Springer Science+Business Media, LLC 2012 223 
 
224MININGTEXTDATA1.IntroductionTransferlearningreferstothemachinelearningframeworkinwhichoneextractsknowledgefromsomeauxiliarydomainstohelpboostthelearningperformanceinatargetdomain.Transferlearningasanewparadigmofmachinelearninghasachievedgreatsuccessinvariousar-easoverthelasttwodecades[17,67],e.g.textmining[8,26,23],speechrecognition[95,52],computervision(e.g.image[75]andvideo[100]analysis),andubiquitouscomputing[108,93].Fortextmining,transferlearningcanbefoundinmanyapplicationscenarios,e.g.,knowledgetransferfromWikipediadocuments(auxil-iary)toTwittertext(target),fromWWWwebpagestoFlickimages,fromEnglishdocumentstoChinesedocumentsinsearchengine,etc.Onefundamentalmotivationoftransferlearningintextminingistheso-calleddatasparsityprobleminatargetdomain,wheredatasparsitycanbedeﬁnedbyalackofusefullabelsorsuﬃcientdatainthetrainingset.Forexample,Twittermessagesareshortdocumentsthataregener-atedbyusers.Thesedocumentsareoftenunlabeled,whicharediﬃculttoclassify.Thus,itwouldbeusefulforustotransferthesupervisedknowledgefromanotherfullylabeledtextcorpustohelpclassifyTwit-termessages.Whendatasparsityhappens,overﬁttingcaneasilyhappenwhenwetrainamodel.Inthepast,manytraditionalmachinelearningmethodshavebeenproposedforaddressingthedatasparsityproblem,includingsemi-supervisedlearning[111,18],co-training[9]andactivelearning[91].However,inmanypracticalsituations,westillhavetolookelsewhereforadditionalknowledgeforlearninginourdomainofinterest.Wecantakethefollowingtwoviewsonknowledgetransfer,1Intheory,transferlearningcanbeconsideredasanewlearningparadigm,wheremostnon-transferlearningmethodsareconsid-eredasaspecialcasewhenlearninghappenswithinasingletargetdomainonly,e.g.,textclassiﬁcationinTwitter,and2Inapplications,transferlearningcanbeconsideredasanewcross-domainlearningtechnique,sinceitexplicitlyaddressesthevariousaspectsofdomaindiﬀerences,e.g.datadistribution,featureandlabelspace,noiseintheauxiliarydata,relevanceofauxiliaryandtargetdomains,etc.Forexample,wehavetoaddressmostoftheaboveissueswhenwetransferknowledgefromWikipediadocu-mentstoTwittertext.TransferLearningforTextMining225Machinelearningalgorithmssuchasclassiﬁcationandregression(e.g.discriminativelearning,ensemblelearning)havebeenwidelyadoptedinvarioustextminingapplications,e.g.textclassiﬁcation[42],senti-mentanalysis[68],namedentityrecognition(NER)[106],part-of-speech(POS)tagging[77],relationextraction(RE)[104],etc.Inthischapter,wewillsurveysomerecenttransferlearningextensionsinaforementionedmachinelearninganddataminingtechniquesandtheirapplicationsfortextmining.Theorganizationofthechapterisasfollows.Weﬁrstgiveanoverviewofthescopeoftext-miningproblemsthatweconsider,andmotivatetheneedfortransferlearningintextclassiﬁcation.Wethendescribesometypicalapproachesintransferlearning,suchthatwecansubsequentlycategorizevarioustext-miningapproachesunderthesetransfer-learningcategories.Thisisfollowedbyanoverviewoftransferlearningapproachesthatextractsknowledgefromlabeledtextdataforthebeneﬁtofimageclassiﬁcationandprocessing.Thislatterapproachisknownasheterogeneoustransferlearning(HTL).Finally,weconcludethechapterwithasummaryanddiscussionoffuturework.2.TransferLearninginTextClassiﬁcationWeﬁrstreviewtheproblemformulationincross-domaintextclas-siﬁcationproblems.Inthenextsection,weﬁrstlookatsometypicalbenchmarkdataexampleswherethecrossdomainclassiﬁcationmeth-odsareneeded.Wethenconsiderthenatureoftheseproblems,theirdiﬀerencesfromatraditionaltextclassiﬁcationproblem,aswellashowtoformulatetheseproblemsintoamachinelearningproblem.2.1CrossDomainTextClassiﬁcation2.1.1SupportVectorMachinesforTextClassiﬁcation.Textclassiﬁcation[42]aimstocategorizeadocumenttosomepredeﬁnedcategoriesY,whereadocumentisusuallyrepresentedintheformofbagofwordsX,denotedasavectorx∈Rd×1withduniquewords.Theentriesinthefeaturevectorxcanbe1/0indicatingwhetherthecorrespondingwordappearsornotorTF-IDF(termfrequencyinverse-documentfrequency).Thereareenormoususer-generatedcontentsinonlineproductsandservicesonsocialmediaforums,blogsandmicroblogs,socialnetworks,etc.Itisveryimportanttobeabletosummarizeconsumers’opinionsonexistingproductsandservices.Sentimentanalysis(oropinionmin-ing)[68]addressesthisproblem,byclassifyingthereviewsorsentimentsintopositiveandnegativecategories.Similartotextclassiﬁcation,re-226MININGTEXTDATAviewsorsentimentscanberepresentedasafeaturevectorx∈Rd×1,andthelabelspaceisY={±1}.Extensionoftextclassiﬁcationhasalsobeendoneinsequenceclas-siﬁcationareas.Forexample,POStagging[77]aimstoassignatagtoeachwordinatext,orequivalentlyclassifyeachwordinatexttosomespeciﬁedcategoriessuchasnorm,verb,adjective,etc.POStaggingisveryimportantforlanguagepre-processing,speechsynthesis,wordsensedisambiguation,informationretrieval,etc.POStaggingcanbeconsid-eredasastructurepredictionproblem,andcanbereducedtomultiplebinary-classiﬁcationproblems.Assupportvectormachines(SVM)[42]havebeenrecognizedasastate-of-the-artmodelintextmining,below,wewilluseSVMasarep-resentativebasemodelamongvariousdiscriminativemodelstoillustratehowthelabeleddatainauxiliarydomainscanbeusedtoachieveknowl-edgetransferfromauxiliarydomainstothetargetdomain.Weﬁrstconsiderthetextdatarepresentation.Intextmining,weassumethatthedataarerepresentedasabag-of-wordsX=Rd×1withthesamefeaturespaceforbothauxiliaryandtargetlearningdomains.Fornotationalsimplicity,weconsiderbinaryclassiﬁcationproblems,Y={±1},whichcanbeextendedtomulti-classclassiﬁcationviacommontricksofone-vs-oneorone-vs-restpre-processing.Wegenerallyassumethesamefeaturespaceandlabelspaceinbothauxiliaryandtargetdomains,butinSection3,wementionsomerecentworksonheterogeneousfeaturespaceand/orheterogeneouslabelspacelearning.WeuseXandYtodenotevariablesforfeaturespaceandlabelspace,respectively,andweusex,y,˜x,˜ytodenotethecorrespondinginstantiationsofvariablesintargetandauxiliarydomains,respectively.Foreachwordinatext,wecanextractafeaturevectorbasedonthecontextinformationthatisrepresentedasx∈Rd×1.Manytextminingproblemscanbemodeledthisway.InPOStagging,forexample,thelearningproblemisbasicallyaclassiﬁcationproblembyassigningalabelytox.InNamedEntityRecognition(NER)problems[106],theaimistoclassifyeachwordinatexttosomepre-deﬁnedcategories,e.g.location,time,organization,etc.Anotherinterestingproblemisrelationextraction[104],whereeachpairofentitiesinasentenceisrepresentedasafeaturevectorx,whichisassignedtoacertaintypeofrelation,e.g.family,user-owner,employer-executive,etc.Textclassiﬁcationcanbeaddressedbydiscriminativelearningmeth-ods,whichexplicitlymodeltheconditionaldistributionPr(Y|X).Wecanﬁndmanytextminingformulationsasvariantsofthisformulation,e.g.,maximumentropy(MaxEnt)[5],logisticregression(LR)[36],con-TransferLearningforTextMining227ditionalrandomﬁeld(CRF)[47].Withthisinmind,weconsiderthefollowingbasicSVMalgorithmfortextclassiﬁcation.BasicSVMforTextClassiﬁcationGiven(cid:9)labeleddatapoints{(xi,yi)}(cid:7)i=1withxi∈Rd×1andyi∈{±1}inthetargetdomain,wehavethefollowingoptimizationproblemforthelinearSVMwithsoftmargin[82],minw,ξ12||w||22+λ(cid:7)(cid:9)i=1ξi(7.1)s.t.yiwTxi≥1−ξi,ξi≥0,i=1,...,(cid:9)wherew∈Rd×1isthemodelparameter,ξ∈R(cid:7)×1aretheslackvari-ables,andλ>0isthetradeoﬀparametertobalancethemodelcom-plexity||w||22andlossfunction(cid:4)(cid:7)i=1ξi.SolvingtheconvexoptimizationprobleminEq.(7.1),wehaveadecisionfunctionf(x)=wTx=d(cid:9)k=1wkxk.(7.2)Inthissection,wewillconsiderhowtoextendthisformulationtoincludetransferlearningcapabilities.2.1.2CrossDomainTextClassiﬁcationProblems.Withtheabovebaselinealgorithminmind,wenowconsiderseveralproblemdomainswhereweshowexamplesofcrossdomaintextclassiﬁcation.Theseexamplesillustratessomeofthebenchmarkdataoftenusedintransferlearningexperiments.Theyalsohelpdemonstratewhytrans-ferlearningisneededwhenthedomaindiﬀerenceislargebetweentheauxiliaryandtargetlearningdomains.20NewsgroupsFirst,weconsiderthewell-known20-newsgroupdata.The20-newsgroup[48]isatextcollectionofapproximately20,000news-groupdocuments,whicharepartitionedacross20diﬀerentnewsgroupsnearlyevenly.Thisdatacollectionprovidesanidealbenchmarkforevaluatingandcomparingdiﬀerenttransferlearningalgorithmsfortextclassiﬁcation.Atypicalmethodistogeneratesixdiﬀerentdatasetsfromthe20-newsgroupdataforevaluatingcross-domainclassiﬁcationalgorithms.Foreachdataset,twotopcategories1arechosen,oneaspositiveandtheotherasnegative.Then,wecansplitthedatabasedon1Threetopcategories,misc,socandaltareremoved,becausetheyaretoosmall.228MININGTEXTDATADataSet˜DDcompvsscicomp.graphicscomp.sys.ibm.pc.hardwarecomp.os.ms-windows.misccomp.sys.mac.hardwaresci.cryptcomp.windows.xsci.electronicssci.medsci.spacerecvstalkrec.autosrec.sport.baseballrec.motorcyclesrec.sport.hockeytalk.politics.gunstalk.politics.mideasttalk.politics.misctalk.religion.miscrecvsscirec.autosrec.motorcyclesrec.sport.baseballrec.sport.hockeysci.medsci.cryptsci.spacesci.electronicsscivstalksci.electronicssci.cryptsci.medsci.spacetalk.politics.misctalk.politics.gunstalk.religion.misctalk.politics.mideastcompvsreccomp.graphicscomp.os.ms-windows.misccomp.sys.ibm.pc.hardwarecomp.windows.xcomp.sys.mac.hardwarerec.autosrec.motorcyclesrec.sport.baseballrec.sport.hockeycompvstalkcomp.graphicscomp.os.ms-windows.misccomp.sys.mac.hardwarecomp.sys.ibm.pc.hardwarecomp.windows.xtalk.politics.gunstalk.politics.mideasttalk.politics.misctalk.religion.miscTable7.1.Adescriptionof20-newsgroupdatasetsforcross-domainclassiﬁcation.sub-categories.Diﬀerentsub-categoriescanbeconsideredasdiﬀerentdomains,whilethetaskisdeﬁnedastopcategoryclassiﬁcation.Thesplittingstrategyensuresthedomainsoflabeledandunlabeleddatare-lated,sincetheyareunderthesametopcategories.Table7.1showsdetailsofthisdata.SRAASRAA[61]isaUseNetdatasetfordocumentclassiﬁcationthatdescribesdocumentsinSimulated/Real/Aviation/Autoclasses.73,218UseNetarticlesarecollectedfromfourdiscussiongroupsaboutsimu-latedautos(sim-auto),simulatedaviation(sim-aviation),realautos(real-auto)andrealaviation(real-aviation).Foratasktopredictlabelsofinstancesbetweenrealandsimulated,wecanusethedocumentsinreal-autoandsim-autoasauxiliarydomaindata,whilereal-aviationandsim-aviationastargetdomaindata.TransferLearningforTextMining229DataSet˜DDautovsaviationsim-auto&sim-aviationreal-auto&real-aviationrealvssimulatedreal-aviation&sim-aviationreal-auto&sim-autoTable7.2.ThedescriptionofSRAAdatasetsforcross-domainclassiﬁcation.DataSetKL(˜D||D)DocumentsSVM|˜X||X|˜D→DD+CVrealvssimulated1.1618,0008,0000.2660.032autovsaviation1.1268,0008,0000.2280.033recvstalk1.1023,6693,5610.2330.003recvssci1.0213,9613,9650.2120.007compvstalk0.9674,4823,6520.1030.005compvssci0.8743,9304,9000.3170.012compvsrec0.8664,9043,9490.1650.008scivstalk0.8543,3743,8280.2260.009orgsvsplaces0.3291,0791,0800.4540.085peoplevsplaces0.3071,2391,2100.2660.113orgsvspeople0.3031,0161,0460.2970.106Table7.3.Descriptionofthedatasetsforcross-domaintextclassiﬁcation,includingerrorsgivenbySVM.“˜D→D”meanstrainingontheauxiliarydomain˜DandtestingonthetargetdomainD;“D+CV”means10-foldcross-validationusingtargetdomaindataonly.Theperformancesareintesterrorrate.Thetableisquotedfrom[22].Then,thedatasetrealvssimulatedisgeneratedasshowninTable7.2.Asaresult,allthedataintheauxiliarydomaindatasetareaboutautos,whileallthedatainthetargetdomainsetareaboutaviation.TheautovsaviationdatasetisgeneratedinthesimilarwayasshowninTable7.2.Reuters-21578Reuters-21578[49]isawellknowntestcollectionsforevaluatingtextclassiﬁcationtechniques.Thisdatasetcontains5topcategories,amongwhichorgs,peopleandplacesarethreelargeones.Thereisalsoahierarchicalstructurewhichallowsustogeneratediﬀerentdatasetssuchasorgsvspeople,orgsvsplaces,andpeoplevsplacesforcross-domainclassiﬁcationinasimilarwayaswhatwehavedoneonthe20-newsgroupandSRAAcorpora.PropertiesoftheDataSetsTable7.3givesanoverviewofapplyingthebasicSVMalgorithmtotheabovedatasets.Theﬁrstthreecolumnsofthetableshowthestatisticalpropertiesofthedatasets.TheﬁrsttwodatasetsarefromSRAAcorpus.Thenextsixaregeneratedusing230MININGTEXTDATAFigure7.1.Document-wordco-occurrencedistributionontheautovsaviationdataset(quotedfrom[22]).20-newsgroupdataset.ThelastthreearefromReuters-21578testcol-lection.Toshowthedistributiondiﬀerencesbetweenthetrainingandtestingdata,KL-divergencevaluesarecalculatedbyKL(˜D||D)onallthedatasetandarepresentedinthesecondcolumninthetable,sortedindecreasingorderfromtopdown.NotethattheKullback-Leibler(KL)divergence[45]oftwodistributionsof{pi}(cid:7)i=1and{qi}(cid:7)i=1isdeﬁnedasKL({pi}(cid:7)i=1||{qi}(cid:7)i=1)=(cid:7)(cid:9)i=1piln(pi/qi)+(1−pi)ln((1−pi)/(1−qi))(7.3)Here˜DistheauxiliarydomaindataandDisthetargetdomaindata.ItcanbeseenthattheKL-divergencevaluesforallthedatasetsaremuchlargerthantheidentical-distributioncasewhichhasaKLvalueofnearlyzero.Thenextcolumntitled“Documents”showsthesizeofthedatasetsused.Underthecolumntitled“SVM”,weshowtwogroupsofclassiﬁcationresultsintwosub-columns.First,“˜D→D”denotesthetesterrorrateobtainedwhenaclassiﬁertrainedbasedontheauxiliarydomaindataset˜DisappliedtothetargetdomaindatasetD.Thecolumntitled“D+CV”denotesthebest-caseobtainedbythecorrespondingclassiﬁer,wherethebestcaseistoconducta10-foldcross-validationonthetargetdomaindatasetDusingthatclassiﬁer.Notethatinobtainingthebestcaseforeachclassiﬁer,thetrainingpartislabeleddatafromDandthetestpartisalsoD,accordingtodiﬀerentfolds,whichgivesthebestresultforthatclassiﬁer.Itcanbefoundthatthetesterrorrates,givenbySVM,inthecaseof“˜D→D”ismuchworsethanthoseinthecaseof“D+CV”.Thisindicatesthatforthesedatasets,itisnotsuitabletoapplytraditionalsupervisedclassiﬁcationalgorithms.TransferLearningforTextMining231Figure7.1showsthedocument-wordco-occurrencedistributionontheautovsaviationdataset.Inthisﬁgure,documents1to8000arefromtargetdomainD,whiledocuments8001to16000arefromauxil-iarydomain˜D.Thedocumentsareorderﬁrstbytheirdomains(˜DorD),andsecondbytheircategories(positiveornegative).Thewordsaresortedbyn+(w)/n−(w),wheren+(w)andn−(w)representthenumberofwordpositionswappearsinpositiveandnegativedocument,respec-tively.FromFigure7.1,itcanbefoundthatthedistributionsofauxil-iarydomainandtargetdomaindataaresomewhatdiﬀerent,butalmostconsistent.Thatis,ingeneral,theprobabilitiesofawordbelongstoacategoryintwodomainsdonotdiﬀerverymuch.2.2Instance-basedTransferOneofthemostintuitivemethodsistotransfertheknowledgebe-tweenthedomainsbyidentifyingasubsetofsourceinstancesandinsertthemintothetrainingsetofthetargetdomaindata.Wecanobservethatsomeinstancesinauxiliarydomainsarehelpfulfortrainingthetargetdomainmodel,whileothersmaydoharmtothetargetlearningtask.Thus,weneedtoselectthosethatareusefulandkickoutthosethatarenot.Oneeﬀectivewaytoachievethisistoperforminstanceweightingonthesourcedomaindataaccordingtotheirimportancetolearninginthetargetdomain.TakingSVMasanexample,supposethatwehave˜(cid:9)labeleddataintheauxiliarydomain,{(˜xi,˜yi)}˜(cid:7)i=1with˜xi∈Rd×1and˜yi∈{±1},whichcanbeincorporatedintothestandardSVMinEq.(7.1)asfollows[96,54],minw,ξ,˜ξ12||w||22+λ(cid:7)(cid:9)i=1ξi+λ˜(cid:7)(cid:9)i=1˜ρi˜ξi(7.4)s.t.yiwTxi≥1−ξi,ξi≥0,i=1,...,(cid:9)˜yiwT˜xi≥1−˜ξi,˜ξi≥0,i=1,...,˜(cid:9)where˜ρi∈Ristheweightonthedatapoint(˜xi,˜yi)intheauxiliarydomain,whichcanbeestimatedviasomeheuristics[54,40]oropti-mizationtechniques[55].WecanseethattheonlydiﬀerencebetweenthestandardSVMinEq.(7.1)andSVMwithinstance-basedtransferinEq.(7.4)isfromthelossfunctionλ(cid:4)˜(cid:7)i=1˜ρi˜ξianditscorrespondingconstraintsdeﬁnedonthelabeleddataintheauxiliarydomain.Theauxiliarydata{(˜xi,˜yi)}˜(cid:7)i=1canbethesupportvectorsofatrainedSVMintheauxiliarydomain[54,40]orthewholeauxiliarydataset[96,55].Notethattheapproachin[96]usesaslightlydiﬀerentbasemodeloflinearprogrammingSVM(LP-SVM)[59]insteadofthestandardSVM232MININGTEXTDATAinEq.(7.1).Similartechniquesarealsodevelopedinthecontextofin-crementallearning[80],wheresupportvectorsofalearnedSVMintheauxiliarydomainarecombinedwithlabeleddatainthetargetdomainwithdiﬀerentweight.Researchworkshavealsobeendoneinsampleselectionbias[35,103]with˜Pr(X)(cid:17)=Pr(X),˜Pr(Y|X)(cid:17)=Pr(Y|X),andcovariateshift[88]with˜Pr(X)(cid:17)=Pr(X),˜Pr(Y|X)=Pr(Y|X).Forexample,Bickeletal.[6]ex-plicitlyconsiderthediﬀerenceofconditionaldistributions,˜Pr(Y|X)(cid:17)=Pr(Y|X),andproposeanalternativegradientdescentalgorithmtoauto-maticallylearntheweightoftheinstancesbesidesthemodelparameterofLogisticregression.JiangandZhai[39]proposeageneralinstanceweightingframeworkfromadistributionviewconsideringdiﬀerencesfrombothmarginaldistributions,˜Pr(X)(cid:17)=Pr(X),andconditionaldis-tributions,˜Pr(Y|X)(cid:17)=Pr(Y|X).Xiangetal.proposedanalgorithmknownasBIG(BridgingInforma-tionGap)[97],whichisaframeworktomakeuseofawolrdwideknowl-edgebase(e.g.Wikipedia)asabridgetoachieveknowledgetransferfromanauxiliarydomainwithlabeleddatatoatargetdomainwithtestdata.Speciﬁcally,Xiangetal.[97]studytheinformationgapbetweenthetargetdomainandauxiliarydomain,andproposeamarginrelatedcriteriatosampleunlabeleddatafromWikipediatoﬁlltheinforma-tiongap,whichenablesmoreeﬀectiveknowledgetransfer.TransductiveSVM[41]isthentrainedusingtheimproveddatapooloflabeleddataintheauxiliarydomain,unlabeleddatafromWikipedia,andtestdatainthetargetdomain.Theproposedframeworkisstudiedincross-domaintextclassiﬁcation,sentimentanalysisandqueryclassiﬁcation[97].2.3Cross-DomainEnsembleLearningItiswellknownintextminingthatensemblemethodsareveryeﬀec-tiveingainingtopperformance.AdaBoost[31]andBagging[11]aretwoofthemostpopularensemblelearningalgorithmsinmachinelearning.Inthissection,weshowhowtouseAdaBoost[31]asarepresentativebasealgorithmtobeextendedfortransferlearning.TheAdaBoost[31]algorithm,asshowninFigure7.2,startswithauniformdistributionofinstanceweights.Itthengraduallyincreasestheweightsofmisclassiﬁedinstancesanddecreasestheweightsofcorrectlyclassiﬁedinstances,inordertoconcentratemoreon“hard-to-learn”in-stancestoimproveoverallclassiﬁcationperformance.AdaBoost[31]ﬁnallygeneratesasetofweightedweaklearners{(αt,wt)}Γt=1,whichTransferLearningforTextMining233Input:labeleddatainthetargetdomain{(xi,yi)}(cid:7)i=1Initialization:initializeinstanceweight{ρ1i}(cid:7)i=1Fort=1...ΓStep1.Trainamodelwtusing{(xi,yi,ρti)}(cid:7)i=1Step2.Calculatetheerror(cid:17)tofwton{(xi,yi,ρti)}(cid:7)i=1Step3.Calculatetheweightαtfrom(cid:17)tStep4.Updateinstanceweight{ρt+1i}(cid:7)i=1usingαt:decreaseρt+1iforcorrectpredictionsinthetargetdomainincreaseρt+1iforincorrectpredictionsinthetargetdomainOutput:learnedweightandweakmodels{(αt,wt)}Γt=1.Figure7.2.TheAdaBoostalgorithm[31].Input:labeleddatainthetargetdomain{(xi,yi)}(cid:7)i=1,labeleddataintheauxiliarydomain{(˜xi,˜yi)}˜(cid:7)i=1Initialization:initializeinstanceweight{ρ1i}(cid:7)i=1,{˜ρ1i}˜(cid:7)i=1Fort=1...ΓStep1.Trainamodelwtusing{(xi,yi,ρti)}(cid:7)i=1and{(˜xi,˜yi,˜ρti)}˜(cid:7)i=1,whichminimizestheweightederroronlyonlabeledtargetdata.Step2.Calculatetheerror(cid:17)tofwton{(xi,yi,ρti)}(cid:7)i=1Step3.Calculatetheweightαtfrom(cid:17)tStep4.Updateinstanceweight{ρt+1i}(cid:7)i=1and{˜ρt+1i}˜(cid:7)i=1usingαt:decrease˜ρt+1iforincorrectpredictionsintheauxiliarydomainincreaseρt+1iforincorrectpredictionsinthetargetdomainOutput:learnedweightandweakmodels{(αt,wt)}Γt=(cid:7)Γ/2(cid:8).Figure7.3.TheTrAdaBoostalgorithm[23].canbeusedtopredictthelabelofanincominginstancex,f(x)=Γ(cid:9)t=1αtwtTx.(7.5)TrAdaBoostInordertoleverageauxiliaryinstances,variousensem-blelearningbasedtransferlearningalgorithmsareproposed.TrAd-aBoost[23]isawell-knowninstance-basedtransferlearningalgorithm,whichisshowninFigure7.3.Theideabehindthisalgorithmistopickthoseauxilaryinstanceswhicharesimilartothetargetdomainandig-noreothers.Oneobservationisthatwecanintegratesomeunlabeleddatafromthetargetdomain,ifthereareany[23].Althoughthedetailed234MININGTEXTDATAimplementationsof“Steps1,2,3”inTrAdaBoost[23]arealldiﬀerentfromthatofAdaBoost[31],aninterestingpartofTrAdaBoost[23]isin“Step4”,whichhasadiﬀerentinstanceweightupdatestrategy.TrAd-aBoost[23]aimsattransferringthemostusefulinstancesfromtheaux-iliarydomain.Thusitdecreasestheweightofmisclassiﬁedinstancesintheauxiliarydomain.Furthermore,asintransferlearning,wecaremoreaboutthepredictionperformanceonlabeleddatainthetargetdomain,thus,TrAdaBoost[23]increasestheweightsofmisclassiﬁedinstancesinthetargetdomain.TransferBoost[28]extendsTrAdaBoost[23]byconsideringbothaninstancelevelandset-of-instanceslevelweightsofanauxiliarydata.Bydoingsoitallowsthemodeltobemorerobust.TrAdaBoost.R2[69]studiestheregressionproblembasedonTrAd-aBoost[23]andAdaBoost.R2[27].Itachievesknowledgetransferfromweightedinstancesfromtheauxiliarydomain.AnadditionalfeatureisthatTrAdaBoost.R2[69]proposesatwo-stageinstanceweightupdatestrategyinordertoavoidmodeloverﬁtting.MultiSourceTrAdaBoost[102]extendsTrAdaBoost[23]formultipleauxiliarydatasources,aimingatalleviatingnegativetransferthatmayhappenifweonlyhaveasingleauxiliarydatasource.MultiSourceTrAd-aBoost[102]replaces“Step1”intheTrAdaBoostalgorithminFigure7.3asfollows,“Step1.Trainamodelusing{(xi,yi,ρti)}(cid:7)i=1andlabeleddatafromoneofthenaauxiliarydatasources.Selectonemodelfromthosenatrainedmodelsthatminimizestheweightederroronlabeleddatainthetargetdomain.Theselectedmodelisdenotedaswt.”MultiSourceTrAdaBoost[102]combinestheinstanceupdatestrategyofTrAdaBoost[23]forauxiliarydataandthatofAdaBoost[31]forthetargetdata.TrAdaBoost[23]isfurtherextendedin[94]byaddinganadditionalfeatureselectionstep.In[94],theauthorsreplace“Step1”ofTrAd-aBoostinFigure7.3withthefollowingstep,inordertoselectthemostdiscriminativefeatureineachiteration:“Step1.Selectasingle-featureandtrainasingle-featuremodelwtusing{(xi,yi,ρti)}(cid:7)i=1and{(˜xi,˜yi,˜ρti)}˜(cid:7)i=1,whichminimizestheweightederroronthelabeleddatainthetargetdomain.”Thisfeatureselectionapproachbasedontransferlearningmodelsachievesverypromisingresultsinlunarcraterdiscoveryapplications,TransferLearningforTextMining235asreportedin[94],whichisquitegeneralandcanbeadaptedfortextclassiﬁcationandranking.2.4Feature-basedTransferLearningforDocumentClassiﬁcationFeature-basedtransferisanothermaintransferlearningparadigm,wherealgorithmsaredesignedfromtheperspectiveoffeaturespacetransformation.Examplesincludefeaturereplication[37,46],featureprojection[8,7,64],dimensionalityreduction[63,65,66,89,21],featurecorrelation[76,44,107],featuresubsetting[81],featureweighting[2],etc.FeatureReplicationThefeaturereplicationorfeatureaugmenta-tionapproach[37]isbasicallyapre-processingsteponthelabeleddata{(˜xi,˜yi)}˜(cid:7)i=1intheauxiliarydomainandlabeleddata{(xi,yi)}(cid:7)i=1inthetargetdomain,(˜xi,˜yi)→([˜xTi˜xTi0T]T,˜yi),i=1,...,˜(cid:9)(xi,yi)→([xTi0TxTi]T,yi),i=1,...,(cid:9)wherethefeaturedimensionalityisexpandedfromRd×1toR3d×1,andstandardsupervisedlearningmethodscanthenbeused,e.g.SVMinEq.(7.1).Asafollow-upwork,Kumaretal.[46]furthergeneralizetheideaoffeaturereplicationviaincorporatingunlabeleddata{xi}ni=(cid:7)+1inthetargetdomain,xi→([0TxT−xT]T,+1),i=(cid:9)+1,...,nxi→([0TxT−xT]T,−1),i=(cid:9)+1,...,nwheretheprocesseddatapointsareallwithlabelsnow.Therelationshipofthefeaturereplicationmethodandthemodel-basedtransferisdiscussedin[37]andsometheoreticalresultsofgen-eralizationboundaregivenin[46].Featurereplicationapproachhavebeensuccessfullyappliedincross-domainnamedentityrecognition[37],part-of-speechtagging[37]andsentimentanalysis[46].FeatureProjectionStructuredcorrespondencelearning(SCL)[8]introducestheconceptofpivotfeatures,whichpossesshighfrequencyandsimilarmeaninginbothauxiliaryandtargetdomains.Non-pivotfeaturescanbemappedtoeachotherviathepivotfeaturesfromtheunlabeleddataofbothauxiliaryandtargetdomains.LearninginSCL[8]236MININGTEXTDATAisbasedonthealternatingstructureoptimization(ASO)algorithm[1].Typically,SCL[8]goesthroughthefollowingsteps.First,itselectsnppivotfeatures.Then,foreachpivotfeature,SCLtrainsanSVMmodelinEq.(7.1)usingunlabeleddatainstancesfrombothdomainswithlabelsindicatingwhetherthepivotfeatureappearsinthedatainstance.InthisstepitobtainsnpmodelssuchthatW=[wj]npj=1∈Rd×np.Third,SCLappliesSingularValueDecomposition(SVD)tothemodelparametersW,[UΣVT]=svd(W),andittakesthetopkcolumnsofUastheprojectionmatrixθ∈Rd×k.Finally,itobtainsthefollowingtransformationforeachlabeleddatapointintheauxiliarydomain,(˜xi,˜yi)→([˜xTiλ(θT˜xi)T]T,˜yi),i=1,...,˜(cid:9)(7.6)Intheaboveequation,λ>0isatradeoﬀparameter.Thetransformeddatapointsisaugmentedwithkadditionalfeaturesencodedwithstruc-turalcorrespondenceinformationbetweenthefeaturesfromauxiliaryandtargetdomains.Withthetransformedlabeleddataintheauxiliarydomain,SCLcantrainadiscriminativemodel,e.g.SVMinEq.(7.1).Foranyfuturedatainstancex,itistransformedviax→[xTλ(θTx)T]TbeforexisclassiﬁedbythelearnedmodelaccordingtoEq.(7.2).Blitzeretal.[7]successfullyapplySCL[8]tocross-domainsentimentclassiﬁcation,andPrettenhoferandStein[70,71]extendSCL[8]withanadditionalcross-languagetranslatortoachieveknowledgetransferfromEnglishtoGerman,FrenchandJapanesefortextclassiﬁcationandsentimentanalysis.Panetal.[64]proposeaspectrallearningal-gorithmforcross-domainsentimentclassiﬁcationusingco-occurrenceinformationfromauxiliary-domain-speciﬁc,target-domain-speciﬁcanddomain-independentfeatures.Theythenaligndomain-speciﬁcfeaturesfrombothdomainsinalatentspaceviaalearnedprojectionmatrixθ∈Rk×d.Insomepracticalcases,thecross-domainsentimentandreviewclassiﬁcationperformanceof[64]isempiricallyshowntobesu-periortoSCL[8]andotherbaselines.DimensionalityReductionInordertobridgetwodomainstoenableknowledgetransfer,Panetal.[63]introducemaximummeandiscrepancy(MMD)[10]asadistributionmeasurementofunlabeleddatafromaux-iliaryandtargetdomains,||1˜(cid:9)˜(cid:7)(cid:9)i=1φ(˜xi)−1n−(cid:9)n(cid:9)i=(cid:7)+1φ(x)i||22(7.7)TransferLearningforTextMining237whichisusedtominimizethedistributiondistanceinalatentspace.TheMMDmeasurementisformulatedasakernellearningproblem[63],whichcanbesolvedbySDP(semi-deﬁniteprogramming)bylearningakernelmatrixK∈R(˜(cid:7)+n−(cid:7))×(˜(cid:7)+n−(cid:7)).PrincipalComponentAnalysis(PCA)isthenappliedonthelearnedkernelmatrixKtoobtainalow-dimensionalrepresentation,[UΣUT]=PCA(K),U∈R(˜(cid:7)+n−(cid:7))×k(7.8)Asaresultofthetransformation,theoriginaldatacannowberep-resentedwithareduceddimensionalityofRk×1inthecorrespondingrowsofU.StandardsuperviseddiscriminativemethodsuchasSVMinEq.(7.1)canbeusedtotrainamodelusingthetransformedlabeleddataintheauxiliarydomain.Notethatasatransductivelearningmethod,thealgorithmin[63]cannotbedirectlyusedtoclassifyout-of-sampletestdata,whichprob-lemisaddressedin[65,66]bylearningaprojectionmatrixtominimizetheMMD[10]criteria.Sietal.[89]introducetheBregmandivergencemeasurementasanadditionalregularizationtermintraditionaldimen-sionalityreductiontechniquestobringtwodomainstogetherinthela-tentspace.TheEigenTransferframework[21]introducesanovelapproachtointegrateco-occurrenceinformationofinstance-feature,instance-labelfrombothauxiliaryandtargetdomainsinasinglegraph.Normalizedcut[85]isthenadoptedtolearnalow-dimensionalrepresentationfromthegraphtoreplaceoriginaldatainbothtargetandauxiliarydomains.Finally,standardsuperviseddiscriminativemodel,e.g.SVMinEq.(7.1)istrainedusingthetransformedlabeleddataintheauxiliarydomain.AnadvantageofEigenTrasnferisitsabilitytounifyalmostallavailableinformationinauxiliaryandtargetdomains,allowingtheconsiderationofheterogenousfeatureandlabelspace.FeatureCorrelationTransferringfeaturecorrelationfromauxiliarydomainstoatargetdomainisintroducedin[76,44,107],whereafeature-featurecovariancematrixΣ0∈Rd×destimatedfromsomeaux-iliarydataistakenasanadditionalregularizationterm,λwTΣ−10w(7.9)Inthisequation,thefeature-featurecorrelationinformationisencodedinthecovariancematrixΣ0,whichcanbeestimatedfromlabeledorunlabeleddatainauxiliarydomains.Σ0willconstrainthemodelpa-rameterswiandwjoftwohigh-correlatedfeaturesiandjtobesimilar,238MININGTEXTDATAandconstrainthelow-correlatedfeaturestobedissimilar.Suchareg-ularizationtermisquitegeneralandcanbeconsideredinvariousregu-larizationbasedlearningframeworkstoincorporatethefeature-featurecorrelationknowledge.Featurecorrelationisquiteintuitive,andthusithasattractedseveralpracticalapplications.Forexample,Rainaetal.[76]transferthefeature-featurecorrelationknowledgefromanews-groupsdomaintoawebpagedomainfortextclassiﬁcation,andZhangetal.[107]studytextclassiﬁcationwithdiﬀerenttimeperiods.FeatureSubsettingFeatureselectionviafeaturesubsettinghasbeenproposedfornamedentityrecognitioninCRF[81],whichmakesuseoflabeleddatainauxiliarydomainsandtheunlabeleddatainthetargetdomain.Toillustratetheideamoreclearly,weconsiderasimpliﬁedcaseofbinaryclassiﬁcation,wherey∈{±1},insteadofsequencelabel-ing[81].Were-writetheoptimizationproblemasfollows,min˜w,˜ξ12||˜w||22+λ˜(cid:7)(cid:9)i=1˜ξi(7.10)s.t.˜wTφ(˜xi,˜yi)≥1−˜ξi,˜ξi≥0,i=1,...,˜(cid:9)d(cid:9)k=1|˜wk|γdist(˜Ek,Ek)≤(cid:17)Herewehave:Ek=1n−(cid:9)n(cid:9)i=(cid:7)+1(φk(xi,+1)Pr(+1|xi,˜w)+φk(xi,−1)Pr(−1|xi,˜w))Furthermore,˜Ek=1˜(cid:7)(cid:4)˜(cid:7)i=1φk(˜xi,˜yi)areexpectedvaluesofthekthfea-tureofthejointfeaturemappingfunctionφ(X,Y)inthetargetandauxiliarydata,respectively,andPr(+1|xi,˜w))andPr(−1|xi,˜w))aretheposteriorprobabilitiesofinstancexibelongingtoclasses+1and−1,respectively.Theparameterγisusedtocontrolthesparsityofthemodelparameter˜w,whichproducesasubsetofnon-zeros;thisiswhyitiscalledfeaturesubsetting.Thedistancedist(˜Ek,Ek)canbesquaredistance(˜Ek−Ek)2foroptimizationsimplicity[81],whichisusedtopun-ishhighlydistortedfeaturesinordertobringtwodomainscloser.Thetrainedmodel˜wwillhavebetterpredictionperformanceinthetargetdomain,especiallywhensomefeaturesdistortseriouslyintwodomains.FeatureWeightingArnoldetal.[2]proposeafeatureweighting(orrescaling)approachtobridgetwodomainswithlabeleddataintheTransferLearningforTextMining239auxiliarydomainandtestdatainthetargetdomain.Speciﬁcally,thekthfeatureofinstance˜xjintheauxiliarydomainisweightedasfollows,˜xj,k→˜xj,kEk(˜yj|XU,˜w)˜Ek(˜yj|˜DL)(7.11)whereEk(˜yj|XU,˜w)=1n−(cid:7)(cid:4)ni=(cid:7)+1xi,kPr(˜yj|xi,˜w)istheexpectedvalueofkthfeature(belongingtoclass˜yj)inthetargetdomainusingthetrainedMaxEntmodel˜wfromauxiliarydomain.Thevalue˜Ek(˜yj|˜DL)=1˜(cid:7)(cid:4)˜(cid:7)i=1˜xi,kδ(˜yj,˜yi)representstheexpectedvalueofkthfeature(belong-ingtoclass˜yj)intheauxiliarydomain.Theweighteddata(feature)intheauxiliarydomainthenhavethesameexpectedvaluesofjointdistri-butionaboutkthfeatureandclasslabely,˜Ek(y|˜DL)=Ek(y|XU,˜w),y∈Y.Asaresult,thetwodomainsarebroughtclosertogether.Notethatthelearningprocedurecanbeiteratedwith(a)learning˜wand(b)weightingthefeature,andthatisthereasonthemodeliscalledIFT(iterativefeaturetransformation)[2].SinceEk(˜yj|XU,˜w)isonlyanes-timatedvalue,[2]adoptsacommontricktopreservetheoriginalfeature,whichworksquitewellinNERproblems.Inparticular,˜xj,k→λ˜xj,k+(1−λ)˜xj,kEk(˜yj|XU,˜w)˜Ek(˜yj|˜DL)(7.12)where0≤λ≤1isatradeoﬀparameter.Inthesamespirit,otherfeature-basedtransfermethodshavealsobeenproposed,suchasdistanceminimization[4],featureclustering[22,57],kernelmapping[109],etc.3.HeterogeneousTransferLearningAbovewehavesurveyedtransferlearningtaskswhereboththesourceandtargetdomainsaretextdocumentsinEnglish.Recently,researchersintransferlearningareahavestartedtoconsidertransferlearningacrossheterogeneousfeatureand/orlabelspace,namelyheterogeneoustrans-ferlearning(HTL)[101].HTLcanberoughlycategorizedintotwobranches,(1)heterogeneousfeaturespace,e.g.textandimagespace[20,101,87,112,72],EnglishandChinesevocabularyspace[56,105],and(2)heterogeneouslabelspace,e.g.labelspaceofOpenDirectoryProject(ODP)2andquerycategoriesinKDDCUP20053[84,83],labelspace2http://dmoz.org/3http://www.sigkdd.org/kdd2005/kddcup.html240MININGTEXTDATAFigure7.4.Anintuitiveillustrationofheterogeneoustransferlearningviaclassiﬁca-tionoftheimagesofappleandbanana(quotedfrom[101]).inYahoo!Directory4andODP[62],“head”(frequent)categoriesand“tail”(infrequent)categoriesinlabel-frequencydistribution,anddocu-mentcategoriesinNewsgroupandcategoriesinWikipedia[98].InFigure7.4,weshowdiﬀerentkindsoftransferlearningandtheirrelationstoheterogeneoustransferlearning.Whenfeatures(orlabels)arediﬀerentbetweendiﬀerentdomains,asshownontheleftsideoftheﬁgure,wehaveheterogeneoustransferlearningwhentheinstancesindiﬀerentdomainslackadirectcorrespondence.Ingeneral,recentworksofheterogeneoustransferlearning(HTL)canbeclassiﬁedintothefollowingcategories:HTLforImageClassiﬁcationAnexampleisheterogeneoustransferlearningforimageclassiﬁcation[112]).InthisworkZhuetal.considerhowtouseunlabeledtextdocumentsthatweﬁndontheWebtohelpboosttheperformanceofimageclassiﬁcation,byexploitingtheirsemanticlevelsimilaritywhenthelabeledimagesareinshortsupply.HTLforImageClusteringAnexampleofthisdirectionisheteroge-neoustransferlearningforimageclustering,whereYangetal.pro-posedaheterogenoustransferlearningalgorithmforimageclus-teringbyleveringauxiliaryannotatedimages([101]).HTLAcrossDiﬀerentlabelSpaceAnexampleisthecross-categorylearningin[73].Inthiswork,itadaptsAdaboostwithlearningafeaturecorrelationmatrixtotransferknowledgefromfrequentcategoriestoinfrequentcategories.4http://dir.yahoo.com/TransferLearningforTextMining2413.1HeterogeneousFeatureSpaceDaietal.[20]proposeanovelapproachnamedtranslatedlearningviariskminimization(TLRisk)toachieveknowledgetransferfromtexttoimageforimageclassiﬁcation.Thekeyideaistobridgeheterogeneousfeaturespaceintwodomainsviatheco-occurrenceinformationofimage-featureandtext-feature(orfeature-leveltranslator[20])containedintheannotatedauxiliaryimages,e.g.annotatedimagesinFlickr.Theknowledgeinanauxiliarydomainisthentransferredalongthepath,auxiliary-label→auxiliary-feature→target-feature→target-labelTheTLRiskmodelisformulatedintheriskminimizationframeworkcombiningthefeaturetranslatorandnearestneighborlearning,andisempiricallystudiedforbothimageclassiﬁcationandcross-lingual(fromEnglishtoGerman)textclassiﬁcation.Yangetal.[101]proposedaprobabilisticapproachnamedannotation-basedprobabilisticlatentsemanticanalysis(aPLSA)toachieveknowl-edgetransferfromtexttoimageforimageclustering.Somemulti-viewauxiliarydataofimagesandtextisﬁrsttransformedtoanewrep-resentationofcorrelationsbetweenimage-featureandtext-feature.TheaPLSAmodel[101]thendiscoverslatenttopicsofimagefeaturesofbothmulti-viewdataandtargetimagedata,whicharesharedasabridgetobringtwodomainstogether.Zhuetal.[112]proposeamatrix-factorizationbasedapproachnamedheterogeneoustransferlearningforimageclassiﬁcation(HTLIC),inor-dertoachieveknowledgetransferfromtexttoimageforimageclassiﬁ-cation.Toenableclassiﬁcationforout-of-sampleimages,HTLICadoptscollectivematrixfactorization[90]tolearnanimage-featureprojectionmatrixfromtheauxiliarydataofdocumentsandthemulti-viewdata,whichisthenusedtoobtainanewrepresentationofthetargetimages.Finally,aclassiﬁer(e.g.supportvectormachine)istrainedusingthenewlyprojectedtargetimages.Givenasetofimagestoclassify,weoftenneedtohavehigh-qualitylabeledimagestotrainaclassiﬁcationmodel.However,obtainingthela-beledimagedataisdiﬃcultandcostly.In([112]),thefollowingquestionisaddressed:isitpossibleforustomakeuseofsomeauxiliarylabeledimagesandlargequantitiesofunlabeledtexttohelpusbuildaclassiﬁer?SupposethatwearegivenafewlabeledimageinstancesX={xi,yi}ni=1wherexi∈Rdisaninputvectorofimagefeaturesandyiisthecorre-spondinglabelofimagei.Weassumethatthelabeledimagesarenotsuﬃcienttobuildahighqualityimageclassiﬁer.Inaddition,weare242MININGTEXTDATAalsogivenasetofauxiliaryannotatedimagesI={zi,ti}li=1andasetoftextdocumentsD={di}ki=1,wherezi∈Rdisanimagerepresentedbyafeaturevectorasxi,ti∈Rhisitscorrespondingvectoroftags,andhisthenumberoftags.di∈Rmisadocumentrepresentedbyavectorofbag-of-words,andlandkarethenumbersofauxiliaryimagesanddocumentsrespectively.Thegoalistolearnanaccurateimageclassiﬁerf(·)fromX,IandDtomakepredictionsonX∗,f(X∗).WecanmakeuseofasetofauxiliaryimagesZ∈Rl×dwiththeircorrespondingtagsT∈Rl×hfromWebresourcessuchasFlickr.WecanalsoeasilyobtainasetofunlabeledtextdocumentsD∈Rk×mviaasearchengine.Tohelpbuildanimageclassiﬁer,weneedtoﬁrstbuildsomeconnectionbetweenimagefeaturesandtextfeatures.Todothis,weconstructatwo-layerbipartitegraphbasedonimages,tagsandtextdocuments.Thetoplayerofthebipartitegraphisusedtorepresenttherelationshipbetweenimagesandtags.Eachimagecanbeannotatedbysometags,andsomeimagesmayshareoneormultipletags.Iftwoimagesareannotatedbysomecommontags,theytendtoberelatedtoeachothersemantically.Similarly,iftwotagsco-occurinannotationsofsharedimages,theytendtoberelatedtoeachother.Thisimage-tagbipartitegraphisrepresentedbyatagmatrixT.Thebottomlayerbipartitegraphisusedtorepresenttherelationshipbetweentagsanddocuments.Ifatagoccursinatextdocument,thereisanedgeconnectingthetagandthedocument.Basedonthebipartitegraph,wecanthenlearnsemanticfeaturesforimagesbyexploitingtherelationshipbetweenimagesandtextfromtheauxiliarysources.WeﬁrstdeﬁneanewmatrixG=Z(cid:9)T∈Rd×htodenotethecorrelationbetweenlow-levelimagefeaturesandannotationswhichcanbereferredtoashigh-levelconcepts.WethenapplytheLatentSemanticAnalysis(LSA)asdescribedin([25]).Finally,weapplymatrixfactorizationtodecomposeGintolatentfactormatricesasG=UV(cid:9)1,whereU∈Rd×g,V1∈Rh×g,andgisthenumberoflatentfactors.Thenuicanbetreatedasalatentsemanticrepresentationoftheithimagelow-levelfeature,andv1jcanbetreatedasalatentsemanticrepresentationofjthtag.Zhuetal.[112]describeamethodtolearnthebestdecompositionviacollectivematrixfactorization,asfollows.minU,V,Wλ(cid:2)(cid:2)(cid:2)G−UV(cid:3)(cid:2)(cid:2)(cid:2)2F+(1−λ)(cid:2)(cid:2)(cid:2)F−WV(cid:3)(cid:2)(cid:2)(cid:2)2F+R(U,V,W),(7.13)where0≤λ≤1isatradeoﬀparametertocontrolthedecompositionerrorbetweenthetwomatrixfactorizations,||·||FdenotestheFrobe-niusnormofmatrix,andR(U,V,W)istheregularizationfunctiontocontrolthecomplexityofthelatentmatricesU,VandW.Theopti-TransferLearningforTextMining243mizationproblemisanunconstrainednon-convexoptimizationproblemwiththreematrixvariablesU,VandW,thusitonlyhaslocaloptimalsolutions.However,(7.13)isconvexwithrespecttoanyoneofthethreematriceswhileﬁxingtheothertwo.Thusacommontechniquetosolvethiskindofoptimizationproblemistoﬁxtwomatricesandoptimizetheleftoneiterativelyuntiltheresultsconverge.Qietal.[72]adoptSingularvaluethresholding(SVT)[14]andsupportvectormachinetolearnalow-rankfeature-levelcorrelationmatrix(ortranslator)usingmulti-viewdata(textandimages),andthenthelabelsoftextcanbepropagated(ortransferred)toimagesthroughthefeature-leveltranslator.Notethatbothtextandimagesarefromthemulti-viewdata,e.g.annotatedimagesinFlickr.Theproblemsettingof[72]isdiﬀerentfromthatof[112],wherein[112]themulti-viewdataisconsideredasabridgetotransferknowledgefromauxiliarydocumentstotargetimages,whilein[72]themulti-viewdataisconsideredasatwo-domaindatasourcesinwhichknowledgeistransferredfromtexttoimage.3.2HeterogeneousLabelSpaceHeterogeneoustransferlearningmaybeneededwhenthereislabelmismatchbetweentheauxiliaryandtargetlearningdomains.Theprob-lemhasattractedincreasingattentionintransferlearning,bothintextminingandimageunderstanding.OneoftheearliestworksinmatchinglabelsacrossdiﬀerentclassiﬁcationdomainsisontheKDDCUP2005dataset,whichtaskistoclassifyshort,ambiguousandunlabeledsearchqueriesfromasearchenginelogintoasetofpredeﬁnedcategories.In[84,83],Shenetal.consideredtheproblemofquicklyadaptingaquerycategorizationclassiﬁerwhenthetargetdomainlabeltaxonomychangesinthetargetlearningdomain.Theirapproachwastomaketheuseofalargeintermediatetaxonomytocompileacollectionofclassiﬁers,andthenadapttheseclassiﬁerstothenewtargetlabeltaxonomyinrealtime.Shietal.presentedanapproachtosolvingthelabelmismatchprob-lembyarisk-sensitivespectralpartition(RSP)algorithm[86].Amulti-tasklearningwithmutualinformation(MTL-MI)isdevelopedin[74]forlearningthelabelcorrespondence.Qietal.[73]usequadraticprogramming(QP)tolearnadiago-nalfeature-levelcorrelationmatrixonsingle-viewdata(e.g.imageorvideo),andthenusetheAdaBoostframeworktotransferknowledgefrom“head”(frequent)categoriesto“tail”(infrequent)categories,e.g.244MININGTEXTDATAfrommountainimagestocastleimages.Inboth[72]and[73],thedeci-sionfunctionforatargetinstanceisdeﬁnedasaweightedlinearcom-binationoflabelsofauxiliaryinstances,wheretheweightisrepresentedasthesimilarityofthetargetinstanceandanyauxiliaryinstancees-timatedvialearningafeature-levelcorrelationmatrix.Thediﬀerencebetween[72]and[73]isthattheformerworksonheterogeneousfeaturespace(e.g.textandimages)butsamelabelspace,whilethelatterfocusonsamefeaturespace(e.g.images)butheterogeneouslabelspace(e.g.semanticallyrelatedcategoriesofmountainandcastle).Rohrbachetal.[79]proposetoautomaticallyminesemanticrelation-shipsbetweenclasslabels(orequivalentlyclassattributes)fromlinguis-ticdata(e.g.wikepedia,WordNet,Yahooimage,Flickr),whichcanbeconsideredasalabel-leveltranslator.Thetrainedclassiﬁersofauxiliaryclassescanthenbereusedbytargetdomain(diﬀerent)classesthroughthelabel-leveltranslatorandBayesianrules.Theproposedapproachallowsdiﬀerentlabelspacebutassumingsamefeaturespace,andisem-piricallyveriﬁedforimageclassiﬁcation.Afollow-upwork[78]conductsextensiveandin-depthstudyoftransferlearningforimageclassiﬁcation.Xiangetal.[98]proposeanovelapproachnamedsource-selection-freetransferlearning(SSFTL)toachieveknowledgetransferfromsomelarge-scaleauxiliarydataset,e.g.Wikipedia,whichdoesnotrequirepractitionerstomanuallyselectsomeparticularpartofauxiliarydatatotransferfrom.Themainideaistobridgelarge-scaleauxiliarylabelspaceandtargetlabelspaceviasocialtaggingdata,e.g.Flick.Specif-ically,eachlabel(scalar)isrepresentedasavectorinalatentspace,wheretwovectorsaresimilarifthecorrespondinglabelsaresemanticallycorrelated.AnadditionaladvantageofSSFTListhatthetrainingpro-cedureofauxiliaryclassiﬁerscanbeimplementedoﬄine,whichmakesthewholelearningapproachveryeﬃcient.Therearealsosomeotherheterogeneoustransferlearningsettingsindiﬀerentdatadomainsandscenariose.g.targetdomainswithfewinstances[50],transferfromtexttovideo[51],etc.3.3SummaryHeterogeneoustransferlearningismainlybasedonfeature-leveltrans-latorandlabel-leveltranslator,whichbridgesheterogeneousfeaturespaceandheterogeneouslabelspaceoftwodomains.Thetechniquesofheterogeneoustransferlearningandtransferlearningmethodsinpre-vioussectionsarecomplementary,whichenablesknowledgetransferinamuchwiderapplicationscopewithverylittlelimitation.TransferLearningforTextMining245Table7.4.Learningparadigmsandtechniques.Thenotation“req.”meansthatthetestdataarerequiredduringmodeltraining,and“√”meansthecorrespondingdataareavailabletothelearner.˜DLand˜DUarelabeledandunlabeleddatainanauxiliarydomain.DL,DUandDTarelabeled,unlabeledandtestdatainthetargetdomain.Unsupervisedandsupervisedtransferlearningarecategorizedbytheavailabilityoflabeleddatainthetargetdomain.LearningParadigmAuxiliaryTargetLearningTechnique˜DL˜DUDLDUDTMLUnsupervisedN/Areq.Spectralclustering[58],etc.Transductive√req.TSVM[41],etc.Supervised√AdaBoost[31],etc.Semi-supervised√√SSL[111],etc.TLUnsupervised√req.STC[24],etc.√req.LWE[32],etc.√√SCL[8],etc.Supervised√√MTL[30],etc.√√√TrAdaBoost[23],etc.√√√√req.EigenTransfer[21],etc.√√STL[75],etc.HeterogeneousacrossdiﬀerentfeaturespaceTranslatedlearning[20]aPLSA[101]TTI[72]HTLIC[112],etc.acrossdiﬀerentlabelspaceRSP[86]CCTL[73]Semanticrelatedness[79]SSFTL[98],etc.4.DiscussionAbovewehaveseenthatthereareseveralimportantapplicationsoftransferlearning.Whatinsightscanbegainedfromtheseapplicationsandextensionsontransferlearning?Below,weconsiderafewsuchis-sues.What,HowandWhentoTransferAspointedoutbyPanandYang[67],therearethreefundamentalquestionsintransferlearning,namely“whattotransfer”,“howtotransfer”and“whentotransfer”.Wehaveansweredthe“whattotransfer”questionfromtwoperspec-tives,(1)instance-basedtransferand(2)feature-basedtransfer,wherethecorrespondingknowledgeareselectedandweightedinstancesand246MININGTEXTDATATable7.5.Applicationsintextmining.ApplicationTransferlearningworkTextclassiﬁcation[29,76,22,107,63,65,66,89,21,97,70,71,57],etc.Sentimentanalysis[46,7,71,97,64],etc.Namedentityrecognition[39,2,37,81],etc.Part-of-speechtagging[8,39,4,37],etc.Relationextraction[38],etc.learnedortransformedfeatures.The“howtotransfer”question[67]isquiterelatedto“whattotransfer”,andwehavesurveyedinstanceweighting,featureprojectionandothervarioustechniquesadoptedindiﬀerentworkstoachieveknowledgetransfer.The“whentotransfer”question[67]isrelatedtonegativetransfer,cross-domainvalidationandtransferbounds,wheresomeworksfocusonempiricalstudytoavoidnegativetransfer[28,102,16].Someresearchworksalsofocusontheo-reticaldevelopmentsoftransferlearning,suchas[4,53,23,60,109,46].Inaddition,researchershavealsoproposedcross-domaincross-validationstrategies[110,12]fortextminingandotherlearningtasks.LearningParadigmsandTechniquesTransferlearningcanbeconsideredasanewlearningparadigm.Oneperspectiveistoconsidertransferlearningasanover-archingframeworkthatincludesthetradi-tionallearningasaspecialcase,asshowninTable7.4.Herewecanseethattraditionalmachinelearning(ML)methodsdonotconsiderdatafromauxiliarydomains;insteadandtheystudythelearningprob-lemsunderthesamedatadistributionPr(X,Y).Incontrast,transferlearninggoesbeyondthelearningparadigmviatransferringknowledgefromauxiliarydomainswithdiﬀerentdistribution˜Pr(X,Y)(cid:17)=Pr(X,Y).TextMiningApplicationsAswesurveyedsofar,transferlearninghavebeenwildlyadoptedinvarioustextminingapplications;asummarycanbefoundinTable7.5.Notethatmanytransferlearningmethodssurveyedinprevioussectionshavebeenappliedtonon-textminingap-plicationsaswell;e.g.inspeechrecognition,inimageandvideoanalysis,etc.5.ConclusionsInthischapter,wehavefocusedontransferlearningapproachesfortextmining.Speciﬁcally,wehavereviewedtransferlearningtechniquesTransferLearningforTextMining247intextrelatedclassiﬁcationtasks,includingdiscriminativelearningandensemblelearning,andheterogeneoustransfer.Wehaveconsideredtheselearningapproachesfromtwoperspectives,namely,(1)instance-basedtransferand(2)feature-basedtransfer.Mostofthesurveyedtransferlearningmethodsareproposedorcanbeappliedintextminingapplica-tions,e.g.textclassiﬁcation,sentimentanalysis,POStagging,NERandrelationextraction.Inaddition,theintroducedheterogeneoustransfertechniquescanexploretheknowledgeintexttohelpthelearningtaskinotherdomain,suchasimageclassiﬁcation.Acurrentresearchissueishowtoapplytransferlearningtothelearning-to-rankframework[43,13,99],wheretherankingmodelinthetargetdomainmaybeneﬁtfromknowledgetransferredfromauxiliarydomains.Inthisarea,worksincludemodel-basedtransfer[34],instance-basedtransfer[19,33,15]andfeature-basedtransfer[92,19,3],whichextendthepairwiserankingalgorithmsofRankSVM[43],RankNet[13],orlist-wiserankingmodelofAdaRank[99].Weexpecttoseemuchre-searchprogressinthisnewdirection,e.g.generalizationsoflearningtoranktoheterogeneoussettings[101].Inthefuture,weexpecttoseemoreextensiveapplicationsoftransferlearningintextmining,wheretheconceptof“text”canbemoregeneral.Forexample,weexpecttoseetransferlearningmethodstobeappliedtoanalyzingmicrobloggingcontentsandstructure,inassociationwithsocialnetworkmining.Wealsoexpecttoseemorecross-domaintrans-ferlearningapproaches,forknowledgetransferbetweenverydiﬀerentdomains,e.g.,textandvideos,etc.References[1]RieKubotaAndoandTongZhang.Aframeworkforlearningpredictivestructuresfrommultipletasksandunlabeleddata.J.Mach.Learn.Res.,6:1817–1853,December2005.[2]AndrewArnold,RameshNallapati,andWilliamW.Cohen.Acomparativestudyofmethodsfortransductivetransferlearning.InProceedingsoftheSeventhIEEEInternationalConferenceonDataMiningWorkshops,ICDMW’07,pages77–82,Washington,DC,USA,2007.IEEEComputerSociety.[3]JingBai,KeZhou,GuirongXue,HongyuanZha,GordonSun,BelleTseng,ZhaohuiZheng,andYiChang.Multi-tasklearningforlearningtorankinwebsearch.InProceedingofthe18thACMconferenceonInformationandknowledgemanagement,CIKM’09,pages1549–1552,NewYork,NY,USA,2009.ACM.248MININGTEXTDATA[4]ShaiBen-David,JohnBlitzer,KobyCrammer,FernandoPereira,andArturDubrawski.Analysisofrepresentationsfordomainadaptation.InNIPS,2006.[5]AdamL.Berger,VincentJ.DellaPietra,andStephenA.DellaPietra.Amaximumentropyapproachtonaturallanguagepro-cessing.Comput.Linguist.,22:39–71,March1996.[6]SteﬀenBickel,MichaelBr¨uckner,andTobiasScheﬀer.Discrimina-tivelearningfordiﬀeringtrainingandtestdistributions.InPro-ceedingsofthe24thinternationalconferenceonMachinelearning,ICML’07,pages81–88,NewYork,NY,USA,2007.ACM.[7]JohnBlitzer,MarkDredze,andFernandoPereira.Biographies,bollywood,boom-boxesandblenders:Domainadaptationforsen-timentclassiﬁcation.InAssociationforComputationalLinguis-tics,Prague,CzechRepublic.[8]JohnBlitzer,RyanMcDonald,andFernandoPereira.Domainadaptationwithstructuralcorrespondencelearning.InProceedingsofthe2006ConferenceonEmpiricalMethodsinNaturalLanguageProcessing,EMNLP’06,pages120–128,Stroudsburg,PA,USA,2006.AssociationforComputationalLinguistics.[9]AvrimBlumandTomMitchell.Combininglabeledandunlabeleddatawithco-training.InProceedingsoftheeleventhannualconfer-enceonComputationallearningtheory,COLT’98,pages92–100,NewYork,NY,USA,1998.ACM.[10]KarstenM.Borgwardt,ArthurGretton,MalteJ.Rasch,Hans-PeterKriegel,BernhardSch¨olkopf,andAlexanderJ.Smola.Inte-gratingstructuredbiologicaldatabykernelmaximummeandis-crepancy.InProceedingsofthe14thInternationalConferenceonIntelligentSystemsforMolecularBiology,pages49–57,Fortaleza,Brazil,August2006.[11]LeoBreiman.Baggingpredictors.Mach.Learn.,24:123–140,Au-gust1996.[12]LorenzoBruzzoneandMattiaMarconcini.Domainadaptationproblems:Adasvmclassiﬁcationtechniqueandacircularvalida-tionstrategy.IEEETrans.PatternAnal.Mach.Intell.,32(5):770–787,2010.[13]ChrisBurges,TalShaked,ErinRenshaw,AriLazier,MattDeeds,NicoleHamilton,andGregHullender.Learningtorankusinggra-dientdescent.InProceedingsofthe22ndinternationalconferenceonMachinelearning,ICML’05,pages89–96,NewYork,NY,USA,2005.ACM.TransferLearningforTextMining249[14]Jian-FengCai,EmmanuelJ.Cand`es,andZuoweiShen.Asingularvaluethresholdingalgorithmformatrixcompletion.SIAMJ.onOptimization,20:1956–1982,March2010.[15]PengCaiandAoyingZhou.Anovelframeworkforrankingmodeladaptation.WebInformationSystemsandApplicationsConfer-ence,0:149–154,2010.[16]BinCao,SinnoJialinPan,YuZhang,Dit-YanYeung,andQiangYang.Adaptivetransferlearning.InAAAI,2010.[17]RichCaruana.Multitasklearning:Aknowledge-basedsourceofinductivebias.InICML,pages41–48,1993.[18]OlivierChapelle,BernhardSch¨olkopf,andAlexanderZien.Semi-SupervisedLearning(AdaptiveComputationandMachineLearn-ing).TheMITPress,2006.[19]DepinChen,YanXiong,JunYan,Gui-RongXue,GangWang,andZhengChen.Knowledgetransferforcrossdomainlearningtorank.Inf.Retr.,13:236–253,June2010.[20]WenyuanDai,YuqiangChen,Gui-RongXue,QiangYang,andYongYu.Translatedlearning:Transferlearningacrossdiﬀerentfeaturespaces.InNIPS,pages353–360,2008.[21]WenyuanDai,OuJin,Gui-RongXue,QiangYang,andYongYu.Eigentransfer:auniﬁedframeworkfortransferlearning.InPro-ceedingsofthe26thAnnualInternationalConferenceonMachineLearning,ICML’09,pages193–200,NewYork,NY,USA,2009.ACM.[22]WenyuanDai,Gui-RongXue,QiangYang,andYongYu.Co-clusteringbasedclassiﬁcationforout-of-domaindocuments.InProceedingsofthe13thACMSIGKDDinternationalconferenceonKnowledgediscoveryanddatamining,KDD’07,pages210–219,NewYork,NY,USA,2007.ACM.[23]WenyuanDai,QiangYang,Gui-RongXue,andYongYu.Boost-ingfortransferlearning.InProceedingsofthe24thinternationalconferenceonMachinelearning,ICML’07,pages193–200,NewYork,NY,USA,2007.ACM.[24]WenyuanDai,QiangYang,Gui-RongXue,andYongYu.Self-taughtclustering.InMachineLearning,ProceedingsoftheTwenty-FifthInternationalConference(ICML2008),Helsinki,Finland,June5-9,2008,volume307,pages200–207.ACM,2008.[25]ScottDeerwester,SusanT.Dumais,GeorgeW.Furnas,ThomasK.Landauer,andRichardHarshman.Indexingbylatent250MININGTEXTDATAsemanticanalysis.JournaloftheAmericanSocietyforInforma-tionScience,41:391–407,1990.[26]ChuongB.DoandAndrewY.Ng.Transferlearningfortextclassiﬁcation.InNIPS,2005.[27]HarrisDrucker.Improvingregressorsusingboostingtechniques.InProceedingsoftheFourteenthInternationalConferenceonMa-chineLearning,ICML’97,pages107–115,SanFrancisco,CA,USA,1997.MorganKaufmannPublishersInc.[28]EricEatonandMariedesJardins.Set-basedboostingforinstance-leveltransfer.InProceedingsofthe2009IEEEInternationalCon-ferenceonDataMiningWorkshops,ICDMW’09,pages422–428,Washington,DC,USA,2009.IEEEComputerSociety.[29]EricEaton,MarieDesjardins,andTerranLane.Modelingtransferrelationshipsbetweenlearningtasksforimprovedinductivetrans-fer.InProceedingsofthe2008EuropeanConferenceonMachineLearningandKnowledgeDiscoveryinDatabases-PartI,ECMLPKDD’08,pages317–332,Berlin,Heidelberg,2008.Springer-Verlag.[30]TheodorosEvgeniouandMassimilianoPontil.Regularizedmulti–tasklearning.InProceedingsofthetenthACMSIGKDDinterna-tionalconferenceonKnowledgediscoveryanddatamining,KDD’04,pages109–117,NewYork,NY,USA,2004.ACM.[31]YoavFreundandRobertE.Schapire.Adecision-theoreticgen-eralizationofon-linelearningandanapplicationtoboosting.J.Comput.Syst.Sci.,55(1):119–139,1997.[32]JingGao,WeiFan,JingJiang,andJiaweiHan.Knowledgetrans-ferviamultiplemodellocalstructuremapping.InProceedingofthe14thACMSIGKDDinternationalconferenceonKnowledgediscoveryanddatamining,KDD’08,pages283–291,NewYork,NY,USA,2008.ACM.[33]WeiGao,PengCai,Kam-FaiWong,andAoyingZhou.Learningtorankonlyusingtrainingdatafromrelateddomain.InProceedingofthe33rdinternationalACMSIGIRconferenceonResearchanddevelopmentininformationretrieval,SIGIR’10,pages162–169,NewYork,NY,USA,2010.ACM.[34]BoGeng,LinjunYang,ChaoXu,andXian-ShengHua.Rankingmodeladaptationfordomain-speciﬁcsearch.InProceedingofthe18thACMconferenceonInformationandknowledgemanagement,CIKM’09,pages197–206,NewYork,NY,USA,2009.ACM.TransferLearningforTextMining251[35]JamesJHeckman.Sampleselectionbiasasaspeciﬁcationerror.Econometrica,47(1):153–61,January1979.[36]DavidW.HosmerandStanleyLemeshow.Appliedlogisticregres-sion.Wiley-Interscience,2edition,2000.[37]HalDaum´eIII.Frustratinglyeasydomainadaptation.InACL,2007.[38]JingJiang.Multi-tasktransferlearningforweakly-supervisedre-lationextraction.InProceedingsoftheJointConferenceofthe47thAnnualMeetingoftheACLandthe4thInternationalJointConferenceonNaturalLanguageProcessingoftheAFNLP:Vol-ume2-Volume2,ACL’09,pages1012–1020,Stroudsburg,PA,USA,2009.AssociationforComputationalLinguistics.[39]JingJiangandChengXiangZhai.Instanceweightingfordomainadaptationinnlp.InACL,2007.[40]WeiJiang,EricZavesky,Shih-FuChang,andAlexanderC.Loui.Cross-domainlearningmethodsforhigh-levelvisualconceptclas-siﬁcation.InICIP,pages161–164,2008.[41]ThorstenJoachims.Transductiveinferencefortextclassiﬁcationusingsupportvectormachines.InProceedingsoftheSixteenthInternationalConferenceonMachineLearning,ICML’99,pages200–209,SanFrancisco,CA,USA,1999.MorganKaufmannPub-lishersInc.[42]ThorstenJoachims.LearningtoClassifyTextUsingSupportVec-torMachines:Methods,TheoryandAlgorithms.KluwerAcademicPublishers,Norwell,MA,USA,2002.[43]ThorstenJoachims.Optimizingsearchenginesusingclickthroughdata.InProceedingsoftheeighthACMSIGKDDinternationalconferenceonKnowledgediscoveryanddatamining,KDD’02,pages133–142,NewYork,NY,USA,2002.ACM.[44]EyalKrupkaandNaftaliTishby.Incorporatingpriorknowledgeonfeaturesintolearning.InProceedingsofthe11thInterna-tionalConferenceonArtiﬁcialIntelligenceandStatistics,SanJuan,PuertoRico,2007.[45]S.KullbackandR.A.Leibler.Oninformationandsuﬃciency.AnnalsofMathematicalStatistics,22(1):79–86,1951.[46]AbhishekKumar,AvishekSaha,andHalDaum´eIII.Aco-regularizationbasedsemi-superviseddomainadaptation.InPro-ceedingsoftheConferenceonNeuralInformationProcessingSys-tems(NIPS),Vancouver,Canada,2010.252MININGTEXTDATA[47]JohnD.Laﬀerty,AndrewMcCallum,andFernandoC.N.Pereira.Conditionalrandomﬁelds:Probabilisticmodelsforsegmentingandlabelingsequencedata.InProceedingsoftheEighteenthInter-nationalConferenceonMachineLearning,ICML’01,pages282–289,SanFrancisco,CA,USA,2001.MorganKaufmannPublishersInc.[48]KenLang.Newsweeder:Learningtoﬁlternetnews.InProceed-ingsoftheTwelfthInternationalConferenceonMachineLearning,1995.[49]DavidDolanLewis.Reuters-21578testcollection.http://www.daviddlewis.com/.[50]Fei-FeiLi,FergusRob,andPeronaPietro.One-shotlearningofob-jectcategories.IEEETrans.PatternAnal.Mach.Intell.,28:594–,April2006.[51]LiangdaLi,KeZhou,Gui-RongXue,HongyuanZha,andYongYu.Videosummarizationviatransferrablestructuredlearning.InProceedingsofthe20thinternationalconferenceonWorldwideweb,WWW’11,pages287–296,NewYork,NY,USA,2011.ACM.[52]XiaoLiandJeﬀBilmes.Regularizedadaptationofdiscriminativeclassiﬁers.InProc.IEEEIntl.Conf.onAcoustics,Speech,andSignalProcessing,Toulouse,France,May2006.[53]XiaoLiandJeﬀBilmes.Abayesiandivergencepriorforclassi-ﬁeradaptation.InEleventhInternationalConferenceonArtiﬁcialIntelligenceandStatistics(AISTATS-2007),March2007.[54]XiaoLi,JeﬀBilmes,andJohMalkin.MaximummarginlearningandadaptationofMLPclassifers.September2005.[55]XuejunLiao,YaXue,andLawrenceCarin.Logisticregressionwithanauxiliarydatasource.InProceedingsofthe22ndinternationalconferenceonMachinelearning,ICML’05,pages505–512,NewYork,NY,USA,2005.ACM.[56]XiaoLing,Gui-RongXue,WenyuanDai,YunJiang,QiangYang,andYongYu.Canchinesewebpagesbeclassiﬁedwithenglishdatasource?InWWW,pages969–978,2008.[57]MingshengLong,WeiCheng,XiaomingJin,JianminWang,andDouShen.Transferlearningviaclustercorrespondenceinference.InICDM,pages917–922,2010.[58]UlrikeLuxburg.Atutorialonspectralclustering.StatisticsandComputing,17:395–416,December2007.TransferLearningforTextMining253[59]OlviL.Mangasarian.Generalizedsupportvectormachines.Tech-nicalreport,ComputerSciencesDepartment,UniversityofWis-consin,1998.[60]YishayMansour,MehryarMohri,andAfshinRostamizadeh.Do-mainadaptationwithmultiplesources.InNIPS,2008.[61]AndrewKachitesMcCallum.Simulated/real/aviation/autousenetdata.http://www.cs.umass.edu/~mccallum/code-data.html.[62]TiberioCaetanoS.V.N.VishwanathanNoviQuadrianto,AlexSmolaandJamesPetterson.Multitasklearningwithoutlabelcorrespondences.InNIPS,2010.[63]SinnoJialinPan,JamesT.Kwok,andQiangYang.Transferlearn-ingviadimensionalityreduction.InAAAI,pages677–682,2008.[64]SinnoJialinPan,XiaochuanNi,Jian-TaoSun,QiangYang,andZhengChen.Cross-domainsentimentclassiﬁcationviaspectralfeaturealignment.InWWW,pages751–760,2010.[65]SinnoJialinPan,IvorW.Tsang,JamesT.Kwok,andQiangYang.Domainadaptationviatransfercomponentanalysis.InIJCAI,pages1187–1192,2009.[66]SinnoJialinPan,IvorW.Tsang,JamesT.Kwok,andQiangYang.Domainadaptationviatransfercomponentanalysis.IEEETrans-actionsonNeuralNetworks,22(2):199–210,2011.[67]SinnoJialinPanandQiangYang.Asurveyontransferlearn-ing.IEEETransactionsonKnowledgeandDataEngineering,22(10):1345–1359,October2010.[68]BoPangandLillianLee.Opinionminingandsentimentanalysis.Found.TrendsInf.Retr.,2:1–135,January2008.[69]DavidPardoeandPeterStone.Boostingforregressiontransfer.InICML,pages863–870,2010.[70]PeterPrettenhoferandBennoStein.Cross-languagetextclassi-ﬁcationusingstructuralcorrespondencelearning.InACL,pages1118–1127,2010.[71]PeterPrettenhoferandBennoStein.Cross-lingualadaptationus-ingstructuralcorrespondencelearning.ACMTIST,3(1),2012.[72]Guo-JunQi,CharuAggarwal,andThomasHuang.Towardsse-manticknowledgepropagationfromtextcorpustowebimages.InProceedingsofthe20thinternationalconferenceonWorldwideweb,WWW’11,pages297–306,NewYork,NY,USA,2011.ACM.[73]Guo-JunQi,CharuAggarwal,YongRui,QiTian,ShiyuChang,andThomasHuang.Towardscross-categoryknowledgepropaga-tionforlearningvisualconcepts.InCVPR,2011.254MININGTEXTDATA[74]NoviQuadrianto,AlexJ.Smola,TiberioS.Caetano,S.V.N.Vish-wanathan,andJamesPetterson.Multitasklearningwithoutlabelcorrespondences.InNIPS23,2010.[75]RajatRaina,AlexisBattle,HonglakLee,BenjaminPacker,andAndrewY.Ng.Self-taughtlearning:transferlearningfromunla-beleddata.InProceedingsofthe24thinternationalconferenceonMachinelearning,ICML’07,pages759–766,NewYork,NY,USA,2007.ACM.[76]RajatRaina,AndrewY.Ng,andDaphneKoller.Constructingin-formativepriorsusingtransferlearning.InProceedingsofthe23rdinternationalconferenceonMachinelearning,ICML’06,pages713–720,NewYork,NY,USA,2006.ACM.[77]AdwaitRatnaparkhi.Amaximumentropymodelforpart-of-speechtagging.InProceedingsoftheConferenceonEmpiricalMethodsinNaturalLanguageProcessing,April1996.[78]MarcusRohrbach,MichaelStark,andBerntSchiele.Evaluatingknowledgetransferandzero-shotlearninginalarge-scalesetting.InCVPR,2011.[79]MarcusRohrbach,MichaelStark,Gy¨orgySzarvas,IrynaGurevych,andBerntSchiele.Whathelpswhere-andwhy?seman-ticrelatednessforknowledgetransfer.InCVPR,pages910–917,2010.[80]StefanR¨uping.Incrementallearningwithsupportvectorma-chines.InProceedingsofthe2001IEEEInternationalConferenceonDataMining,ICDM’01,pages641–642,Washington,DC,USA,2001.IEEEComputerSociety.[81]SandeepkumarSatpalandSunitaSarawagi.Domainadaptationofconditionalprobabilitymodelsviafeaturesubsetting.InProceed-ingsofthe11thEuropeanconferenceonPrinciplesandPracticeofKnowledgeDiscoveryinDatabases,PKDD2007,pages224–235,Berlin,Heidelberg,2007.Springer-Verlag.[82]BernhardScholkopfandAlexanderJ.Smola.LearningwithKer-nels:SupportVectorMachines,Regularization,Optimization,andBeyond.MITPress,Cambridge,MA,USA,2001.[83]DouShen,RongPan,Jian-TaoSun,JeﬀreyJunfengPan,KanghengWu,JieYin,andQiangYang.Queryenrichmentforweb-queryclassiﬁcation.ACMTrans.Inf.Syst.,24:320–352,July2006.[84]DouShen,Jian-TaoSun,QiangYang,andZhengChen.Buildingbridgesforwebqueryclassiﬁcation.InProceedingsofthe29thTransferLearningforTextMining255annualinternationalACMSIGIRconferenceonResearchandde-velopmentininformationretrieval,SIGIR’06,pages131–138,NewYork,NY,USA,2006.ACM.[85]JianboShiandJitendraMalik.Normalizedcutsandimageseg-mentation.IEEETrans.PatternAnal.Mach.Intell.,22:888–905,August2000.[86]XiaoxiaoShi,WeiFan,QiangYang,andJiangtaoRen.Re-laxedtransferofdiﬀerentclassesviaspectralpartition.InECML/PKDD,2009.[87]XiaoxiaoShi,QiLiu,WeiFan,PhilipS.Yu,andRuixinZhu.Transferlearningonheterogenousfeaturespacesviaspectraltransformation.InICDM,pages1049–1054,2010.[88]HidetoshiShimodaira.Improvingpredictiveinferenceunderco-variateshiftbyweightingthelog-likelihoodfunction.JournalofStatisticalPlanningandInference,90(2):227–244,2000.[89]SiSi,DachengTao,andBoGeng.Bregmandivergence-basedregularizationfortransfersubspacelearning.IEEETrans.Knowl.DataEng.,22(7):929–942,2010.[90]AjitP.SinghandGeoﬀreyJ.Gordon.Relationallearningviacollectivematrixfactorization.InKDD,pages650–658,2008.[91]SimonTongandDaphneKoller.Supportvectormachineactivelearningwithapplicationstotextclassiﬁcation.J.Mach.Learn.Res.,2:45–66,March2002.[92]BoWang,JieTang,WeiFan,SongcanChen,ZiYang,andYanzhuLiu.Heterogeneouscrossdomainrankinginlatentspace.InPro-ceedingofthe18thACMconferenceonInformationandknowl-edgemanagement,CIKM’09,pages987–996,NewYork,NY,USA,2009.ACM.[93]Hua-YanWang,VincentWenchenZheng,JunhuiZhao,andQiangYang.Indoorlocalizationinmulti-ﬂoorenvironmentswithreducedeﬀort.InPerCom,pages244–252,2010.[94]YangMuLourencoBandeiraRicardoRicardoYouxiWuZhenyuLuTianyuCaoXindongWuWeiDing,TomaszF.Stepinski.Sub-kilometercraterdiscoverywithboostingandtransferlearning.ACMTIST,x(x),201x.[95]PhilipC.Woodland.Speakeradaptationforcontinuousden-sityhmms:areview.InISCATutorialandResearchWorkshop(ITRW)onAdaptationMethodsforSpeechRecognition,ITRW’01,pages29–30,August2001.256MININGTEXTDATA[96]PengchengWuandThomasG.Dietterich.Improvingsvmaccu-racybytrainingonauxiliarydatasources.InProceedingsofthetwenty-ﬁrstinternationalconferenceonMachinelearning,ICML’04,pages110–,NewYork,NY,USA,2004.ACM.[97]EvanWeiXiang,BinCao,DerekHaoHu,andQiangYang.Bridg-ingdomainsusingworldwideknowledgefortransferlearning.IEEETrans.Knowl.DataEng.,22(6):770–783,2010.[98]EvanWeiXiang,SinnoJialinPan,WeikPan,QiangYang,andJianSu.Source-freetransferlearning.InIJCAI,2011.[99]JunXuandHangLi.Adarank:aboostingalgorithmforinfor-mationretrieval.InProceedingsofthe30thannualinternationalACMSIGIRconferenceonResearchanddevelopmentininforma-tionretrieval,SIGIR’07,pages391–398,NewYork,NY,USA,2007.ACM.[100]JunYang,RongYan,andAlexanderG.Hauptmann.Cross-domainvideoconceptdetectionusingadaptivesvms.InProceed-ingsofthe15thinternationalconferenceonMultimedia,MULTI-MEDIA’07,pages188–197,NewYork,NY,USA,2007.ACM.[101]QiangYang,YuqiangChen,Gui-RongXue,WenyuanDai,andYongYu.Heterogeneoustransferlearningforimageclusteringviathesocialweb.InProceedingsoftheJointConferenceofthe47thAnnualMeetingoftheACLandthe4thInternationalJointCon-ferenceonNaturalLanguageProcessingoftheAFNLP:Volume1-Volume1,ACL’09,pages1–9,Stroudsburg,PA,USA,2009.AssociationforComputationalLinguistics.[102]YiYaoandGianfrancoDoretto.Boostingfortransferlearningwithmultiplesources.InCVPR,pages1855–1862,2010.[103]BiancaZadrozny.Learningandevaluatingclassiﬁersundersam-pleselectionbias.InProceedingsofthetwenty-ﬁrstinternationalconferenceonMachinelearning,ICML’04,pages114–,NewYork,NY,USA,2004.ACM.[104]DmitryZelenko,ChinatsuAone,andAnthonyRichardella.Kernelmethodsforrelationextraction.J.Mach.Learn.Res.,3:1083–1106,March2003.[105]DuoZhang,QiaozhuMei,andChengXiangZhai.Cross-linguallatenttopicextraction.InACL,pages1128–1137,2010.[106]TongZhangandDavidJohnson.Arobustriskminimizationbasednamedentityrecognitionsystem.InProceedingsoftheseventhconferenceonNaturallanguagelearningatHLT-NAACL2003-TransferLearningforTextMining257Volume4,CONLL’03,pages204–207,Stroudsburg,PA,USA,2003.AssociationforComputationalLinguistics.[107]YiZhang,JeﬀSchneider,andArturDubrawski.Learningthesemanticcorrelation:Analternativewaytogainfromunlabeledtext.InNIPS,pages1945–1952,2008.[108]VincentWenchenZheng,DerekHaoHu,andQiangYang.Cross-domainactivityrecognition.InProceedingsofthe11thinterna-tionalconferenceonUbiquitouscomputing,Ubicomp’09,pages61–70,NewYork,NY,USA,2009.ACM.[109]ErhengZhong,WeiFan,JingPeng,KunZhang,JiangtaoRen,DeepakTuraga,andOlivierVerscheure.Crossdomaindistribu-tionadaptationviakernelmapping.InProceedingsofthe15thACMSIGKDDinternationalconferenceonKnowledgediscoveryanddatamining,KDD’09,pages1027–1036,NewYork,NY,USA,2009.ACM.[110]ErhengZhong,WeiFan,QiangYang,OlivierVerscheure,andJiangtaoRen.Crossvalidationframeworktochooseamongstmod-elsanddatasetsfortransferlearning.InECML/PKDD(3),pages547–562,2010.[111]XiaojinZhu,AndrewB.Goldberg,RonaldBrachman,andThomasDietterich.IntroductiontoSemi-SupervisedLearning.MorganandClaypoolPublishers,2009.[112]YinZhu,YuqiangChen,ZhongqiLu,SinnoJialinPan,Gui-RongXue,YongYu,andQiangYang.Heterogeneoustransferlearningforimageclassiﬁcation.InAAAI,2011.    C.C. Aggarwal and C.X. Zhai (eds.), Mining Text Data, DOI 10.1007/978-1-4614-3223-4_8,

Chapter8PROBABILISTICMODELSFORTEXTMININGYizhouSunDepartmentofComputerScienceUniversityofIllinoisatUrbana-Champaignsun22@illinois.eduHongboDengDepartmentofComputerScienceUniversityofIllinoisatUrbana-Champaignhbdeng@illinois.eduJiaweiHanDepartmentofComputerScienceUniversityofIllinoisatUrbana-Champaignhanj@illinois.eduAbstractAnumberofprobabilisticmethodssuchasLDA,hiddenMarkovmod-els,Markovrandomﬁeldshaveariseninrecentyearsforprobabilisticanalysisoftextdata.Thischapterprovidesanoverviewofavarietyofprobabilisticmodelsfortextmining.Thechapterfocusesmoreonthefundamentalprobabilistictechniques,andalsocoverstheirvariousapplicationstodiﬀerenttextminingproblems.Someexamplesofsuchapplicationsincludetopicmodeling,languagemodeling,documentclas-siﬁcation,documentclustering,andinformationextraction.Keywords:Probabilisticmodels,mixturemodel,stochasticprocess,graphicalmodel © Springer Science+Business Media, LLC 2012  259 
 
260MININGTEXTDATA1.IntroductionProbabilisticmodelsarewidelyusedintextminingnowadays,andapplicationsrangefromtopicmodeling,languagemodeling,documentclassiﬁcationandclusteringtoinformationextraction.Forexample,thewellknowntopicmodelingmethodsPLSAandLDAarespecialapplicationsofmixturemodels.Aprobabilisticmodelisamodelthatusesprobabilitytheorytomodeltheuncertaintyinthedata.Forexample,termsintopicsaremodeledbymultinomialdistribution;andtheobservationsforarandomﬁeldaremodeledbyGibbsdistribution.Aprobabilisticmodeldescribesasetofpossibleprobabilitydistributionsforasetofobserveddata,andthegoalistousetheobserveddatatolearnthedistribution(usuallyassoci-atedwithparameters)intheprobabilisticmodelthatcanbestdescribethecurrentdata.Inthischapter,weintroduceseveralfrequentlyusedfundamentalprobabilisticmodelsandtheirapplicationsintextmining.Foreachprobabilisticmodel,wewillintroducetheirgeneralframeworkofmodeling,theprobabilisticexplanation,thestandardalgorithmstolearnthemodel,andtheirapplicationsintextmining.Themajorprobabilisticmodelscoveredinthischapterinclude:MixtureModels.Mixturemodelsareusedforclusteringdatapoints,whereeachcomponentisadistributionforthatcluster,andeachdatapointbelongstooneclusterwithacertainproba-bility.Finitemixturemodelsrequireusertospecifythenumberofclusters.Thetypicalapplicationsofmixturemodelintextminingincludetopicmodels,likePLSAandLDA.BayesianNonparametricModels.Beyesiannonparametricmodelsrefertoprobabilisticmodelswithinﬁnite-dimensionalparameters,whichusuallyhaveastochasticprocessthatisinﬁnite-dimensionalasthepriordistribution.Inﬁnitemixturemodelisonetypeofnon-parametricmodels,whichcandealwiththeproblemofselectingthenumberofclustersforclustering.Dirichletprocessmixturemodelbelongstoinﬁnitemixturemodel,andcanhelptodetectthenumberoftopicsintopicmodeling.BayesianNetworks.ABayesiannetworkisagraphicalmodelwithdirectedacycliclinksindicatingthedependencyrelationshipbe-tweenrandomvariables,whicharerepresentedasnodesinthenetwork.ABayesiannetworkcanbeusedtoinferencetheunob-servednodeinthenetwork,bylearningparametersviatrainingdatasets.ProbabilisticModelsforTextMining261HiddenMarkovModel.AhiddenMarkovmodel(HMM)isasim-plecaseofdynamicBayesiannetwork,wherethehiddenstatesareformingachainandonlysomepossiblevalueforeachstatecanbeobserved.OnegoalofHMMistoinferthehiddenstatesaccordingtotheobservedvaluesandtheirdependencyrelationships.AveryimportantapplicationofHMMispart-of-speechtagginginNLP.MarkovRandomFields.AMarkovrandomﬁeld(MRF)belongstoundirectedgraphicalmodel,wherethejointdensityofalltherandomvariablesinthenetworkismodeledasaproductionofpotentialfunctionsdeﬁnedoncliques.AnapplicationofMRFistomodelthedependencyrelationshipbetweenqueriesanddoc-uments,andthustoimprovetheperformanceofinformationre-trieval.ConditionalRandomFields.Aconditionalrandomﬁeld(CRF)isaspecialcaseofMarkovrandomﬁeld,buteachstateofnodeisconditionalonsomeobservedvalues.CRFscanbeconsideredasatypeofdiscriminativeclassiﬁers,astheydonotmodelthedistri-butionoverobservations.NameentityrecognitionininformationextractionisoneofCRF’sapplications.Thischapterisorganizedasfollows.InSection2,mixturemodelsthatarefrequentlyusedintopicmodelingandclusteringisintroduced,aswellasitsstandardlearningalgorithms.InSection3,wepresentsev-eralBayesiannonparametricmodels,wherestochasticprocessesareusedaspriorsandcanbeusedinmodelingtheuncertaintyofthenumberofclustersinmixturemodels.InSection4,severalwell-knowngraphicalmodelsthatusenodestorepresentrandomvariablesanduselinksinthegraphtomodelthedependencyrelationsbetweenvariablesarein-troduced.Section5introducesseveralsituationsthatconstraintswithdomainknowledgecanbeintegratedintoprobabilisticmodels.Section6isabriefintroductionofparallelcomputingofprobabilisticmodelsforlargescaledatasets.TheconcludingremarksaregiveninSection7.2.MixtureModelsMixturemodel[39]isaprobabilisticmodeloriginallyproposedtoad-dressthemulti-modalprobleminthedata,andnowisfrequentlyusedforthetaskofclusteringindatamining,machinelearningandstatis-tics.Generally,amixturemodeldeﬁnesthedistributionofarandomvariable,whichcontainsmultiplecomponentsandeachcomponentrep-resentsadiﬀerentdistributionfollowingthesamedistributionfamilybutwithdiﬀerentparameters.Thenumberofcomponentsarespeciﬁedby262MININGTEXTDATAusersinthissection,andthesemixturemodelsarecalledﬁnitemixturemodels.InﬁnitemixturemodelsthatdealwithhowtolearnthenumberofcomponentsinmixturemodelswillbecoveredinSection3.Tolearnthemodel,notonlytheprobabilitymembershipforeachobserveddatapointbutalsotheparametersetforeachcomponentneedtobelearned.Inthissection,weintroducethebasicframeworkofmixturemodels,theirvariationsandapplicationsintextminingarea,andthestandardlearningalgorithmsforthem.2.1GeneralMixtureModelFrameworkInamixturemodel,givenasetofdatapoints,e.g.,theheightofpeopleinaregion,theyaretreatedasaninstantiationofasetofran-domvariables,whicharefollowingthemixturemodel.Then,accordingtotheobserveddatapoints,theparametersinthemixturemodelcanbelearned.Forexample,wecanlearnthemeanandstandarddevi-ationforfemaleandmaleheightdistributions,ifwemodelheightofpeopleasamixturemodeloftwoGaussiandistributions.Formally,assumewehaveni.i.d.randomvariablesX1,X2,...,Xnwithobserva-tionsx1,x2,...,xn,followingthemixturemodelwithKcomponents.Leteachofthekthcomponentbeadistributionfollowingadistributionfamilywithparameters(θk)andhavetheformofF(x|θk),andletπk(πk≥0and(cid:4)kπk=1)betheweightforkthcomponentdenotingtheprobabilitythatanobservationisgeneratedfromthecomponent,thentheprobabilityofxicanbewrittenas:p(xi)=K(cid:9)k=1πkf(xi|θk)wheref(xi|θk)isthedensityormassfunctionforF(x|θk).Thejointprobabilityofalltheobservationsisthen:p(x1,x2,...,xn)=n(cid:2)i=1K(cid:9)k=1πkf(xi|θk)LetZi∈{1,2,...,K}bethehiddenclusterlabelforXi,theprob-abilityfunctioncanbeviewedasthesummationoveracompletejointdistributionofbothXiandZi:p(xi)=(cid:9)zip(xi,zi)=(cid:9)zip(xi|Zi=zi)p(zi)whereXi|Zi=zi∼F(xi|θzi)andZi∼MK(1;π1,...,πK),themultino-mialdistributionofKdimensionswith1observation.ZiisalsoreferredProbabilisticModelsforTextMining263tomissingvariableorauxiliaryvariable,whichidentiﬁestheclusterla-beloftheobservationxi.Fromgenerativeprocesspointofview,eachobserveddataxiisgeneratedby:1sampleitshiddenclusterlabelbyzi|π∼MK(1;π1,...,πK)2samplethedatapointincomponentzi:xi|zi,{θk}∼F(xi|θzi)Themostwell-knownmixturemodelistheGaussianmixturemodel,whereeachcomponentisaGaussiandistribution.Inthiscase,theparametersetforkthcomponentisθk=(μk,σ2k),whereμkandσ2karethemeanandvarianceoftheGaussiandistribution.Example:MixtureofUnigrams.Themostcommonchoiceofthecomponentdistributionfortermsintextminingismultinomialdistribution,whichcanbeconsideredasaunigramlanguagemodelanddeterminestheprobabilityofabagofterms.InNigametal.[50],adocumentdicomposedofabagofwordswi=(ci,1,ci,2,...,ci,m),wheremisthesizeofthevocabularyandci,jisthenumberoftermwjindocumentdi,isconsideredasamixtureofunigramlanguagemodels.Thatis,eachcomponentisamultinomialdistributionoverterms,withparametersβk,j,denotingtheprobabilityoftermwjinclusterk,i.e.,p(wj|βk),fork=1,...,Kandj=1,...,m.Thejointprobabilityofobservingthewholedocumentcollectionisthen:p(w1,w2,...,wn)=n(cid:2)i=1K(cid:9)k=1πkm(cid:2)j=1(βk,j)ci,jwhereπkistheproportionweightforclusterk.Notethat,inmixtureofunigrams,onedocumentismodeledasbeingsampledfromexactlyonecluster,whichisnottypicallytrue,sinceonedocumentusuallycoversseveraltopics.2.2VariationsandApplicationsBesidesthemixtureofunigrams,therearemanyotherapplicationsformixturemodelsintextmining,withsomevariationstothegeneralframework.Themostfrequentvariationtotheframeworkofgeneralmixturemodelsistoaddingallsortsofpriorstotheparameters,whicharesometimescalledBayesian(ﬁnite)mixturemodels[33].ThetopicmodelsPLSA[29,30]andLDA[11,28]areamongthemostfamousapplications,whichhavebeenintroducedinChapter5inadimensionreductionview.Inthissection,webrieﬂydescribethemintheviewofmixturemodels.Someotherapplicationsintextmining,suchas264MININGTEXTDATAcomparativetextmining,contextualtextmining,andtopicsentimentanalysis,areintroducedtoo.2.2.1TopicModels.PLSA.Probabilisticlatentsemanticanalysis(PLSA)[29]isalsoknownasprobabilisticlatentsemanticindexing(PLSI)[30].Dif-ferentfromthemixtureunigram,whereeachdocumentdiconnectstoonelatentvariableZi,inPLSA,eachobservedtermwjindicorrespondstoadiﬀerentlatentvariableZi,j.Theprobabilityofobservationtermwjindiisthendeﬁnedbythemixtureinthefollowing:p(wj|di)=K(cid:9)k=1p(k|di)p(wj|βk)wherep(k|di)=p(zi,j=k)isthemixingproportionofdiﬀerenttopicsfordi,βkistheparametersetformultinomialdistributionovertermsfortopick,andp(wj|βk)=βk,j.p(k|di)isusuallyde-notedbytheparameterθi,k,andZi,jisthenfollowingthediscretedistributionwithK-dvectorparameterθi=(θi,1,...,θi,K).Thejointprobabilityofobservingallthetermsindocumentdiis:p(di,wi)=p(di)m(cid:2)j=1p(wj|di)ci,jwherewiisthesamedeﬁnedasinthemixtureofunigramsandp(di)istheprobabilityofgeneratingdi.Andthejointprobabilityofobservingallthedocumentcorpusis(cid:20)ni=1p(di,wi).LDA.LatentDirichletallocation(LDA)[11]extendsPLSAbyfur-theraddingpriorstotheparameters.Thatis,Zi,j∼MK(1;θi)andθi∼Dir(α),whereMKistheK-dimensionalmultinomialdistribution,θiistheK-dparametervectordenotingthemix-ingportionofdiﬀerenttopicsfordocumentdi,Dir(α)denotesaDirichletdistributionwithK-dparametervectorα,whichistheconjugatepriorofmultinomialdistribution.Usually,anotherDirichletpriorβ∼Dir(η)[11,28]isaddedfurthertothemulti-nomialdistributionβoverterms,whichservesasasmoothingfunctionalityoverterms,whereηisam-dparametervectorandmisthesizeofthevocabulary.Theprobabilityofobservingallthetermsindocumentdiisthen:p(wi|α,β)= p(wi,θi|α,β)dθiProbabilisticModelsforTextMining265wherep(wi,θi|α,β)=p(wi|θi,β)p(θi|α)andp(wi|θi,β)=m(cid:2)j=1(K(cid:9)k=1p(zi,j=k|θi)p(wj|βk))ci,jTheprobabilityofobservingallthedocumentcorpusis:p(w1,...,wn|α,η)=n(cid:2)i=1 p(wi|α,β)p(β|η)dβNoticethat,comparedwithPLSA,LDAhasstrongergenerativepower,asitdescribeshowtogeneratethetopicdistributionθiforanunseendocumentdi.2.2.2OtherApplications.Now,webrieﬂyintroducesomeotherapplicationsofmixturemodelsintextmining.ComparativeTextMining.Comparativetextmining(CTM)isproposedin[71].Givenasetofcomparabletextcollections(e.g.,thereviewsfordiﬀerentbrandsoflaptops),thetaskofcompara-tivetextminingistodiscoveranylatentcommonthemesacrossallcollectionsaswellasspecialthemeswithinonecollection.Theideaistomodeleachdocumentasamixturemodeloftheback-groundtheme,commonthemescrossdiﬀerentcollection,andspe-ciﬁcthemeswithinitscollection,whereathemeisatopicdistri-butionoverterms,thesameasintopicmodels.ContextualTextMining.Contextualtextmining(CtxTM)ispro-posedin[43],whichextractstopicmodelsfromacollectionoftextwithcontextinformation(e.g.,timeandlocation)andmodelsthevariationsoftopicsoverdiﬀerentcontext.Theideaistomodeladocumentasamixturemodelofthemes,wherethethemecoverageinadocumentwouldbeamixtureofthedocument-speciﬁcthemecoverageandthecontext-speciﬁcthemecoverage.TopicSentimentAnalysis.TopicSentimentMixture(TSM)ispro-posedin[42],whichaimsatmodelingfacetsandopinionsinwe-blogs.Theideaistomodelablogarticleasamixturemodelofabackgroundlanguagemodel,asetoftopiclanguagemodels,andtwo(positiveandnegative)sentimentlanguagemodels.Therefore,notonlythetopicsbuttheirsentimentscanbedetectedsimulta-neouslyforacollectionofweblogs.266MININGTEXTDATA2.3TheLearningAlgorithmsInthissection,severalfrequentlyusedalgorithmsforlearningparam-etersinmixturemodelsareintroduced.2.3.1Overview.Thegeneralideaoflearningparametersinmixturemodels(andotherprobabilisticmodels)istoﬁndasetof“good”parametersθthatmaximizestheprobabilityofgeneratingtheobserveddata.Twoestimationcriterionsarefrequentlyused,oneismaximum-likelihoodestimation(MLE)andtheotherismaximum-a-posteriori-probability(MAP).Thelikelihood(orlikelihoodfunction)ofasetofparametersgiventheobserveddataisdeﬁnedastheprobabilityofalltheobservationsunderthoseparametervalues.Formally,letx1,...,xn(assumediid)betheobservations,lettheparametersetbeθ,thelikelihoodofθgiventhedatasetisdeﬁnedas:L(θ|x1,...,xn)=p(x1,x2,...,xn|θ)=n(cid:2)i=1p(xi|θ)Inthegeneralformofmixturemodels,theparametersetincludesboththecomponentdistributionparameterθkforeachcomponentk,andthemixingproportionofeachcomponentπk.MLEestimationisthentoﬁndtheparametervaluesthatmaximizesthelikelihoodfunction.Mostofthetime,log-likelihoodisoptimizedinstead,asitconvertsproductsintosummationsandmakesthecomputationeasier:logL(θ|x1,...,xn)=n(cid:9)i=1logp(xi|θ)Whenpriorsareincorporatedtothemixturemodels(suchasinLDA),theMAPestimationisusedinstead,whichistoﬁndasetofparametersθthatmaximizestheposteriordensityfunctionofθgiventheobserveddata:p(θ|x1,...,xn)∝p(x1,...,xn|θ)p(θ)wherep(θ)isthepriordistributionforθandmayinvolvesomefurtherhyper-parameters.SeveralfrequentlyusedalgorithmsofﬁndingMLEorMAPestima-tionsforparametersinmixturemodelsareintroducedbrieﬂyinthefollowing.2.3.2EMAlgorithm.Expectation-Maximum(EM)[7,22,21,12]algorithmisamethodforlearningMLEestimationsforprobabilisticProbabilisticModelsforTextMining267modelswithlatentvariables,whichisastandardlearningalgorithmformixturemodels.Formixturemodels,thelikelihoodfunctioncanbefurtherviewedasthemarginaloverthecompletelikelihoodinvolvinghiddenvariables:L(θ|x1,...,xn)=(cid:9)Zp(x1,...,xn,z1,...,zn|θ)=n(cid:2)i=1(cid:9)zip(xi,zi|θ)Thelog-likelihoodfunctionisthen:logL(θ|x1,...,xn)=n(cid:9)i=1log(cid:9)zip(xi|θ,zi)p(zi)whichisdiﬃculttomaximizedirectly,asthereissummationinsidethelogarithmoperation.EMalgorithmisaniterativealgorithminvolvingtwostepsthatmaximizestheabovelog-likelihood,whichcansolvethisproblem.ThetwostepsineachiterationareE-stepandM-steprespec-tively.InE-step(Expectationstep),atightlowerboundforthelog-likelihoodcalledQ-functioniscalculated,whichistheexpectationofthecompletelog-likelihoodfunctionwithrespecttotheconditionaldis-tributionofhiddenvariableZgiventheobservationsofthedataXandcurrentestimationofparametersθ(t):Q(θ|θ(t))=EZ|X,θ(t)[logL(θ;X,Z)]NoteL(θ;X,Z)isacompletelikelihoodfunctionasitusesboththeobserveddataXandthehiddenclusterlabelsZ.InM-step(Maximization-step),anewθ=θ(t+1)iscomputedwhichmaximizestheQ-functionthatisderivedinE-step:θ(t+1)=argmaxθQ(θ|θ(t))ItisguaranteedthatEMalgorithmconvergestoalocalmaximumofthelog-likelihoodfunction,sinceQ-functionisatightlowerboundandtheM-stepcanalwaysﬁndaθthatincreasesthelog-likelihood.ThelearningalgorithminPLSAisatypicalapplicationofEMalgorithm.Noticethat,inM-steptherecouldexistnoclosedformsolutionforθ(t+1)andrequiresiterativesolutionsviamethodssuchasgradientdescentorNewton’smethod(alsocalledNewton-Raphsonmethod)[34].ThereareseveralvariantsforEMalgorithmwhentheoriginalEMalgorithmisdiﬃculttocompute,andsomeofwhicharelistedinthefollowing:268MININGTEXTDATAGeneralizedEM.ForgeneralizedEM(GEM)[12],itrelaxestherequirementofﬁndingtheθthatmaximizesQ-functioninM-steptoﬁndingaθthatincreasesQ-functionsomehow.TheconvergencecanstillbeguaranteedusingGEM,anditisoftenusedwhenmaximizationinM-stepisdiﬃculttocompute.VariationalEM.VariationalEMisoneoftheapproximatealgo-rithmsusedinLDA[11].TheideaistoﬁndasetofvariationalparameterswithrespectivetothehiddenvariablesthatattemptstoobtainthetightestpossiblelowerboundinE-step,andtomax-imizethelowerboundinM-step.Thevariationalparametersarechoseninawaythatsimpliﬁestheoriginalprobabilisticmodelandarethuseasiertocalculate.2.3.3GibbsSampling.GibbssamplingisthesimplestformofMarkovchainMonteCarlo(MCMC)algorithm,whichisasampling-basedapproximationalgorithmformodelinference.ThebasicideaofGibbssamplingistogeneratesamplesthatconvergetothetargetdistri-bution,whichitselfisdiﬃculttoobtain,andtoestimatetheparametersusingthestatisticsofthedistributionaccordingtothesamples.In[28],aGibbssampling-basedinferencealgorithmisproposedforLDA.Thegoalistomaximizetheposteriordistributionofhiddenvari-ables(MAPestimation)giventheobservationsofthedocumentsp(Z|w),whichisaverycomplexdensityfunctionwithhyper-parametersαandηthatarespeciﬁedbyusers.Asitisdiﬃculttodirectlymaximizetheposterior,GibbssamplingisthenusedtoconstructaMarkovchainofZ,whichconvergestotheposteriordistributioninthelongrun.Thehid-denclusterzi,jfortermwi,j,i.e.,thetermwjindocumentdi,issampledaccordingtotheconditionaldistributionofzi,j,giventheobservationsofallthetermsaswellasthetheirhiddenclusterlabelsexceptforwi,jinthecorpus:p(zi,j|z−i,j,w)∝p(zi,j,wi,j|z−i,j,w−i,j)=p(wi,j|z,w−i,j)p(zi,j|z−i,j)whichturnsouttobeeasytocalculate,wherez−i,jdenotesthehiddenvariablesofallthetermsexceptforwi,jandw−i,jdenotestheallthetermsexceptwi,jinthecorpus.Notethattheconditionalprobabilityisalsoinvolvingthehyper-parametersαandη,whicharenotshownexplicitly.Afterthousandsofiterations(calledburningperiod),theMarkovchainisconsideredtobestableandconvergestothetargetposteriordistribution.Thentheparametersofθandβcanbeestimatedaccordingtothesampledhiddenclusterlabelsfromthechainaswellasthegivenobservationsandthehyper-parameters.Pleasereferto[28]andProbabilisticModelsforTextMining269[53]formoredetailsofGibbssamplinginLDA,andmorefundamentalintroductionsforGibbssamplingandotherMCMCalgorithmsin[3].3.StochasticProcessesinBayesianNonparametricModelsPriorsarefrequentlyusedinprobabilisticmodels.Forexample,inLDA,Dirichletpriorsareaddedfortopicdistributionsandtermdistri-butions,whicharebothmultinomialdistributions.Aspecialtypeofpri-orsthatarestochasticprocesses,whichemergesrecentlyintextrelatedprobabilisticmodels,isintroducedinthissection.Diﬀerentfromprevi-ousmethods,withtheintroductionofpriorsofstochasticprocesses,theparametersinsuchmodelsbecomeinﬁnite-dimensional.ThesemodelsbelongtothecategoryofBayesiannonparametricmodels[51].Diﬀerentfromthetraditionalpriorsasstaticdistributions,stochasticprocesspriorscanmodelmorecomplexstructuresfortheprobabilisticmodels,suchasthenumberofthecomponentsinthemixturemodel,thehierarchicalstructuresandevolutionstructurefortopicmodels,andthepowerlawdistributionfortermsinlanguagemodels.Forexample,itisalwaysadiﬃculttaskforuserstodeterminethenumberoftopicswhenapplyingtopicmodelsforacollectionofdocuments,andaDirichletprocesspriorcanmodelinﬁnitenumberoftopicsandﬁnallydeterminethebestnumberoftopics.3.1ChineseRestaurantProcessTheChineseRestaurantProcess(CRP)[33,9,67]isadiscrete-timestochasticprocess,whichdeﬁnesadistributiononthepartitionsoftheﬁrstnintegers,foreachdiscretetimeindexn.Asforeachn,CRPdeﬁnesthedistributionofthepartitionsoverthenintegers,itcanbeusedasthepriorforthesizesofclustersinthemixturemodel-basedclustering,andthusprovidesawaytoguidetheselectionofK,whichisthenumberofclusters,intheclusteringprocess.ChineserestaurantprocesscanbedescribedusingarandomprocessasametaphorofcostumerschoosingtablesinaChineserestaurant.Supposetherearecountablyinﬁnitetablesinarestaurant,andthenthcostumerwalksintherestaurantandsitsdownatsometablewiththefollowingprobabilities:1Theﬁrstcustomersitsattheﬁrsttable(withprobability1).2Thenthcustomereithersitsatanoccupiedtablekwithproba-bilitymkn−1+α,orsitsattheﬁrstunoccupiedtablewithprobability270MININGTEXTDATAαn−1+α,wheremkisthenumberofexistingcustomerssittingattablekandαisaparameteroftheprocess.Itiseasytoseethatthecustomerscanbeviewedasdatapointsintheclusteringprocess,andthetablescanbeviewedastheclusters.Letz1,z2,...,znbethetablelabelassociatedwitheachcustomer,letKnbethenumberoftablesintotal,andletmkbethenumberofcustomerssittinginthekthtable,theprobabilityofsuchanarrangement(apartitionofnintegersintoKngroups)isasfollows:p(z1,z2,...,zn)=p(z1)p(z2|z1)...p(zn|zn−1,...,z1)=αKn(cid:3)Knk=1(mk−1)!α(α+1)...(α+n−1)TheexpectednumberoftablesKngivenncustomersis:E(Kn|α)=n(cid:9)i=1αi−1+α≈αlog(1+nα)=O(αlogn)Insummary,CRPdeﬁnesadistributionoverpartitionsofthedatapoints,thatis,adistributionoverallpossibleclusteringstructureswithdiﬀerentnumberofclusters.Moreover,priordistributionscanalsobeprovidedoverclusterparameters,suchasaDirichletpriorovertermsinLDAforeachtopic.AstochasticprocesscalledDirichletprocesscombinesthetwotypesofpriors,andthusisfrequentlyusedasthepriorformixturemodels,whichisintroducedinthefollowingsection.3.2DirichletProcessWenowintroduceDirichletprocessandDirichletprocess-basedmix-turemodel,theinferencealgorithmsandapplicationsarealsobrieﬂymentioned.3.2.1OverviewofDirichletProcess.Dirichletprocess(DP)[33,67,68]isastochasticprocess,whichisadistributiondeﬁnedondistributions.Thatis,ifwedrawasamplefromaDP,itwouldbeadistributionovervaluesinsteadofasinglevalue.InadditiontoCRP,whichonlyconsidersthedistributionoverpartitionsofdatapoints,DPalsodeﬁnesthedatadistributionforeachcluster,withananalogyofthedishesservedforeachtableintheChineserestaurantmetaphor.For-mally,wesayastochasticprocessGisaDirichletprocesswithbasedis-tributionHandconcentrationparameterα,writtenasG∼DP(α,H),ifforanarbitraryﬁnitemeasurablepartitionA1,A2,...,Aroftheprob-abilityspaceofH,denotedasΘ,thefollowingholds:(G(A1),G(A2),...,G(Ar))∼Dir(αH(A1),αH(A2),...,αH(Ar))ProbabilisticModelsforTextMining271whereG(Ai)andH(Ai)arethemarginalprobabilityofGandHoverpartitionAi.Inotherwords,themarginaldistributionofGmustbeDirichletdistributed,andthisiswhyitiscalledDirichletprocess.Intu-itively,thebasedistributionHisthemeandistributionoftheDP,andtheconcentrationparameterαcanbeunderstoodasaninversevarianceoftheDP,namely,anlargerαmeansasmallervarianceandthusamoreconcentratedDParoundthemeanH.Noticethat,althoughthebasedistributionHcouldbeacontinuousdistribution,Gwillalwaysbeadiscretedistribution,withpointmassesatmostcountablyinﬁnite.Thiscanbeunderstoodbystudyingtherandomprocessofgeneratingdistributionsamplesφi’sfromG:φn|φn−1,...,φ1=%φ∗k,withprobabilitymkn−1+αnewdrawfromH,withprobabilityαn−1+αwhereφ∗krepresentsthekthuniquedistributionsampledfromH,indi-catingthedistributionforkthcluster,andφidenotesthedistributionfortheithsample,whichcouldbeadistributionfromexistingclustersoranewdistribution.Inadditiontotheabovedeﬁnition,aDPcanalsobedeﬁnedthroughastick-breakingconstruction[62].Ononehand,theproportionofeachclusterkamongalltheclusters,πk,isdeterminedbyastick-breakingprocess:βk∼Beta(1,α)andπk=βkk−1(cid:2)l=1(1−βl)Metaphorically,assumingwehaveastickwithlength1,weﬁrstbreakitatβ1thatfollowsaBetadistributionwithparameterα,andassignittoπ1;fortheremainingstickwithlength1−β1,werepeatthepro-cess,breakitatβ2∼Beta(1,α),andassignit(β2(1−β1))toπ2;werecursivelybreaktheremainingstickandgetπ3,π4andsoon.Thestick-breakingdistributionoverπissometimeswrittenasπ∼GEM(α),wherethelettersGEMstandfortheinitialsoftheinventors.Ontheotherhand,foreachclusterk,itsdistributionφ∗kissampledfromH.Gisthenamixturemodeloverthesedistributions,G∼(cid:4)kπkδφ∗k,whereδφ∗kdenotesapointmassatφ∗k.Further,hierarchicalDirichletprocess(HDP)[68]canbedeﬁned,wherethebasedistributionHfollowsanotherDP.HDPcanmodeltop-icsacrossdiﬀerentcollectionsofdocuments,whichsharesomecommontopicsacrossdiﬀerentcorporabutmayhavesomespecialtopicswithineachcorpus.272MININGTEXTDATA3.2.2DirichletProcessMixtureModel.ByusingDPaspriorsformixturemodels,wecangetDirichletprocessmixturemodel(DPM)[48,67,68],whichcanmodelthenumberofcomponentsinamixturemodel,andsometimesisalsocalledinﬁnitemixturemodel.Forexample,wecanmodelinﬁnitetopicsfortopicmodeling,inﬁnitecomponentsininﬁniteGaussianmixturemodel[57],andsoon.Insuchmixturemodels,tosampleadatavalue,itwillﬁrstsampleadistributionφiandthensampleavaluexiaccordingtothedistributionφi.Formally,letx1,x2,...,xnbenobserveddatapoints,andletθ1,θ2,...,θnbetheparametersforthedistributionsoflatentclustersassociatedwitheachdatapoint,wherethedistributionφiwithparameterθiisdrawni.i.dfromG,thegenerativemodelforxiisthen:xi|θi∼F(θi)θi|G∼GG|α,H∼DP(α,H)whereF(θi)isthedistributionforxiwiththeparameterθi.Noticethat,sinceGisadiscretedistribution,multipleθi’scansharethesamevalue.Fromthegenerativeprocesspointofview,theobserveddataxi’saregeneratedby:1Sampleπaccordingtoπ|α∼GEM(α),namely,thestick-breakingdistribution;2Sampletheparameterθ∗kforeachdistinctiveclusterkaccordingtoθk|H∼H;3Foreachxi,(a)ﬁrstsampleitshiddenclusterlabelzibyzi|π∼M(1;π),(b)thensamplethevalueaccordingtoxi|zi,{θ∗k}∼F(θ∗zi).whereF(θ∗k)isthedistributionofdataincomponentkwithparameterθ∗k.Thatis,eachxiisgeneratedfromamixturemodelwithcomponentparametersθ∗k’sandthemixingproportionπ.3.2.3TheLearningAlgorithms.AsDPMisanonpara-metricmodelwithinﬁnitenumberofparametersinthemodel,EMalgorithmcannotbedirectlyusedintheinferenceforDPM.Instead,MCMCapproaches[48]andvariationalinference[10]arestandardin-ferencemethodsforDPM.ThegeneralgoalforlearningDPMistolearnthehiddenclusterlabelszi’sandtheparametersθi’sforitsassociatedclustercomponentforallProbabilisticModelsforTextMining273theobserveddatapoints.ItturnsoutthatGibbssamplingisverycon-venienttoimplementforsuchmodelsespeciallywhenGistheconjugatepriorforthedatadistributionF,astheconditionaldistributionofbothθiandzicanbeeasilycomputedandthustheposteriordistributionoftheseparametersorhiddenclusterlabelscanbeeasilysimulatedbytheobtainedMarkovchain.Formoredetails,pleasereferto[48],whereseveralMCMC-basedalgorithmsareprovidedanddiscussed.ThemajordisadvantagesofMCMC-basedalgorithmsarethatthesamplingprocesscanbeveryslowandtheconvergenceisdiﬃculttodiagnose.ThereforeBleietal.[10]proposedanalternativeapproachcalledvariationalinferenceforDPMs,whichisaclassofdeterministicalgorithmsthatconvertinferenceproblemsintooptimizationproblems.ThebasicideaofvariationalinferencemethodsistorelaxtheoriginallikelihoodfunctionorposteriorprobabilityfunctionPintoasimplervariationaldistributionfunctionQμ,whichisindexedbynewfreevari-ablesμthatarecalledvariationalparameters.ThegoalistocomputethevariationalparametersμthatminimizestheKLdivergencebetweenthevariationdistributionandtheoriginaldistribution:μ∗=argminD(Qμ||P)whereDreferstosomedistanceordivergencefunction.AndthenQμ∗canbeusedtoapproximatethedesiredP.Pleasereferto[10]formoredetailsofvariationalinferenceforDPM.3.2.4ApplicationsinTextMining.Therearemanysuc-cessfulapplicationsintextminingbyusingDPMs,andweselectsomeofthemostrepresentativeonesinthefollowing.In[9],ahierarchicalLDAmodel(LDA)thatbasedonnestedChi-neserestaurantprocessisproposed,whichcandetecthierarchicaltopicmodelsinsteadoftopicmodelsinaﬂatstructurefromacollectionofdocuments.Inaddition,hLDAcandetectthenumberoftopicsauto-matically,whichisthenumberofnodesinthehierarchicaltreeoftopics.ComparedwithoriginalLDA,hLDAcandetecttopicswithhigherinter-pretabilityandhashigherpredictiveheld-outlikelihoodinthetestingset.In[73],atime-sensitiveDirichletprocessmixturemodelisproposedtodetectclustersfromacollectionofdocumentswithtimeinformation,forexample,detectingsubjectthreadsforemails.Insteadofconsideringeachdocumentequallyimportant,theweightsofhistorydocumentsarediscountedinthecluster.Atime-sensitiveDPM(tDPM)isthenbuiltbasedontheidea,whichcannotonlyoutputthenumberofclusters,274MININGTEXTDATAbutalsointroducethetemporaldependenciesbetweendocuments,withlessinﬂuencefromolderdocuments.EvolutionstructurecanalsobedetectedusingDPMs.AtemporalDirichletprocessmixturemodel(TDPM)[2]isproposedasaframe-worktomodeltheevolutionoftopics,suchasretain,dieoutoremergeovertime.In[1],aninﬁnitedynamictopicmodel(iDTM)isfurtherproposedtoalloweachdocumenttobegeneratedfrommultipletopics,bymodelingdocumentsineachtimeepochusingHDPinsteadofDP.AnevolutionalhierarchicalDirichletprocessapproach(EvoHDP)ispro-posedin[72]todetectevolutionarytopicsfrommultiplebutcorrelatedcorpora,whichcandiscoverdiﬀerentevolvingpatternsoftopics,in-cludingemergence,disappearance,evolutionwithinacorpusandacrossdiﬀerentcorpora.3.3Pitman-YorProcessPitman-Yorprocess[52,66],alsoknownastwo-parameterPoisson-Dirichletprocess,isageneralizationoverDP,whichcansuccessfullymodeldatawithpowerlaw[18]distributions.Forexample,ifwewanttomodelthedistributionofallthewordsinacorpus,Pitman-YorprocessisabetteroptionthanDP,whereeachwordcanbeviewedasatableandthenumberofoccurrencesofthewordcanbeviewedasthenumberofcustomerssittinginthetable,inarestaurantmetaphor.ComparedwithCP,Pitman-Yorprocesshasonemorediscountpa-rameter0≤d<1,inadditiontothestrengthparameterα>−d,whichiswrittenasG∼PY(d,α,H),whereHisthebasedistribution.Thiscanbeunderstoodbystudyingtherandomprocessofgeneratingdistributionsamplesφi’sfromG:φn|φn−1,...,φ1=%φ∗k,withprobabilitymk−dn−1+αnewdrawfromH,withprobabilityα+dKnn−1+αwhereφ∗kisthedistributionoftablek,mkisthenumberofcustomerssittingattablek,andKnisthenumberoftablessofar.Noticethatwhend=0,Pitman-YorprocessreducestoDP.TwosalientfeaturesofPitman-YorprocesscomparedwithCPare:(1)givenmoreoccupiedtables,thechancetohaveevenmoretablesishigher;(2)tableswithsmalloccupancynumberhavealowerchancetogetmorecustomers.ThisimpliesthatPitman-Yorprocesshasapowerlaw(e.g.,Zipf’slaw)behavior.TheexpectednumberoftablesisO(αnd),whichhasthepowerlawform.ComparedwiththeexpectednumberoftablesO(αlogn)forDP,Pitman-Yorprocessindicatesafastergrowingintheexpectednumberoftables.ProbabilisticModelsforTextMining275In[66],ahierarchialPitman-Yorn-gramlanguagemodelisproposed.Itturnsoutthattheproposedmodelhasthebestperformancecomparedwiththestate-of-the-artmethods,andhasdemonstratedthatBayesianapproachcanbecompetitivewiththebestsmoothingtechniquesinlan-guagesmodeling.3.4OthersTherearemanyotherstochasticprocessesthatcanbeusedinBayesiannonparametricmodels,suchasIndianbuﬀetprocess[27],Betaprocess[69],Gaussianprocess[58]forinﬁniteGaussianmixturemodel,Gaus-sianprocessregression,andsoon.Wenowbrieﬂyintroducetheminthefollowing,andthereaderscanrefertothereferencesformoredetails.Indianbuﬀetprocess.Inmixturemodels,onedatapointcanonlybelongtoonecluster,withtheprobabilitydeterminedbythemix-ingproportions.However,sometimesonedatapointcanhavemultiplefeatures.Forexample,apersoncanparticipateinanum-berofcommunities,allwithalargestrength.Indianbuﬀetpro-cessisastochasticprocessthatcandeﬁnetheinﬁnite-dimensionalfeaturesfordatapoints.Ithasametaphorofpeoplechoosing(in-ﬁnite)dishesarrangedinalineinIndianbuﬀetrestaurant,whichiswherethename“Indianbuﬀetprocess”isfrom.Betaprocess.Asmentionedin[69],abetaprocess(BP)playstherolefortheIndianbuﬀetprocessthattheDirichletprocessplaysfortheChineserestaurantprocess.Also,ahierarchicalbetaprocess(hBP)-basedmethodisproposedin[69]forthedocumentclassiﬁcationtask.Gaussianprocess.Intuitively,aGaussianprocess(GP)extendsamultivariateGaussiandistributiontotheonewithinﬁnitedi-mensionality,similartoDP’sroletoDirichletdistribution.AnyﬁnitesubsetoftherandomvariablesinaGPfollowsamultivari-ateGaussiandistribution.TheapplicationsforGPincludeGaus-sianprocessregression,Gaussianprocessclassiﬁcation,andsoon,whicharediscussedin[58].4.GraphicalModelsAGraphicalmodel[32,36]isaprobabilisticmodelforwhichagraphdenotestheconditionalindependencestructurebetweenrandomvari-ables.Graphicalmodelprovidesasimplewaytovisualizethestructureofaprobabilisticmodelandcanbeusedtodesignandmotivatenew276MININGTEXTDATAmodels.Inaprobabilisticgraphicalmodel,eachnoderepresentsaran-domvariable,andthelinksexpressprobabilisticrelationshipsbetweenthesevariables.Thegraphthencapturesthewayinwhichthejointdistributionoveralloftherandomvariablescanbedecomposedintoaproductoffactorseachdependingonlyonasubsetofthevariables.Therearetwobranchesofgraphicalrepresentationsofdistributionsthatarecommonlyused:directedandundirected.Inthischapter,wediscussthekeyaspectsofgraphicalmodelsandtheirapplicationsintextmining.4.1BayesianNetworksBayesiannetworks(BNs),alsoknownasbeliefnetworks(orBayesnetsforshort),belongtothedirectedgraphicalmodels,inwhichthelinksofthegraphshaveaparticulardirectionalityindicatedbyarrows.4.1.1Overview.Formally,BNsaredirectedacyclicgraphs(DAG)whosenodesrepresentrandomvariables,andedgesrepresentconditionaldependencies.Forexample,alinkfromxtoycanbeinfor-mallyinterpretedasindicatingthatx“causes”y.ConditionalIndependence.Thesimplestconditionalindepen-dencerelationshipencodedinaBNcanbestatedasfollows:anodeisconditionallyindependentofitsnon-descendantsgivenitsparents,wheretheparentrelationshipiswithrespecttosomeﬁxedtopologicalorderingofthenodes.ThisisalsocalledlocalMarkovproperty,de-notedbyXv⊥⊥XV\de(v)|Xpa(v)forallv∈V,wherede(v)isthesetofdescendantsofv.Forexample,asshowninFigure8.1(a),weobtainx1⊥⊥x3|x2.FactorizationDeﬁnition.InaBN,thejointprobabilityofallrandomvariablescanbefactoredintoaproductofdensityfunctionsforallofthenodesinthegraph,conditionalontheirparentvariables.Moreprecisely,foragraphwithnnodes(denotedasx1,...,xn),thejointdistributionisgivenby:p(x1,...,xn)=Πni=1p(xi|pai),(8.1)wherepaiisthesetofparentsofnodexi.Byusingthechainruleofprobability,theabovejointdistributioncanbewrittenasaproductofconditionaldistributions,giventhetopologicalorderoftheserandomvariables:p(x1,...,xn)=p(x1)p(x2|x1)...p(xn|xn−1,...,x1).(8.2)ProbabilisticModelsforTextMining277(a)(b)(c)Figure8.1.Examplesofdirectedacyclicgraphsdescribingthejointdistributions.Thediﬀerencebetweenthetwoexpressionsistheconditionalindepen-denceofthevariablesencodedinaBN,thatvariablesareconditionallyindependentoftheirnon-descendantsgiventhevaluesoftheirparentvariables.ConsiderthegraphshowninFigure8.1,wecangofromthisgraphtothecorrespondingrepresentationofthejointdistributionwrittenintermsoftheproductofasetofconditionalprobabilitydistributions,oneforeachnodeinthegraph.ThejointdistributionsforFigure8.1(a)-(c)arethereforep(x1,x2,x3)=p(x1|x2)p(x2)p(x3|x2),p(x1,x2,x3)=p(x1)p(x2|x1,x3)p(x3),andp(x1,x2,x3)=p(x1)p(x2|x1)p(x3|x2),re-spectively.4.1.2TheLearningAlgorithms.BecauseaBNisacom-pletemodelforthevariablesandtheirrelationships,acompletejointprobabilitydistribution(JPD)overallthevariablesisspeciﬁedforamodel.GiventheJPD,wecananswerallpossibleinferencequeriesbysummingout(marginalizing)overirrelevantvariables.However,theJPDhassizeO(2n),wherenisthenumberofnodes,andwehaveas-sumedeachnodecanhave2states.HencesummingovertheJPDtakesexponentialtime.ThemostcommonexactinferencemethodisVari-ableElimination[19].Thegeneralideaistoperformthesummationtoeliminatethenon-observednon-queryvariablesonebyonebydis-tributingthesumovertheproduct.Thereadercanreferto[19]formoredetails.Insteadofexactinference,ausefulapproximatealgorithmcalledBeliefpropagation[46]iscommonlyusedongeneralgraphsin-cludingBayesiannetwork,whichwillbeintroducedinSection4.3.4.1.3ApplicationsinTextMining.Bayesiannetworkshavebeenwidelyusedinmanyapplicationsintextmining,suchasspamﬁltering[61]andinformationretrieval[20].In[61],aBayesianapproachisproposedtoidentifyspamemailbymakinguseofanaiveBayesclassiﬁer.Theintuitionisthatparticularwordshaveparticularprobabilitiesofoccurringinspamemailsandinlegitimateemails.For278MININGTEXTDATA(a)RegularMarkovmodel(b)HiddenMarkovmodelFigure8.2.GraphicalstructuresfortheregularandhiddenMarkovmodel.instance,thewords“free”and“credit”willfrequentlyappearinspamemails,butwillseldomoccurinotheremails.Totraintheﬁlter,theusermustmanuallyindicatewhetheranemailisspamornotforatrainingset.Withsuchatrainingdataset,Bayesianspamﬁlterswilllearnaspamprobabilityforeachword,e.g.,ahighspamprobabilityforthewords“free”and“credit”,andarelativelylowspamprobabilityforwordssuchasthenamesoffriends.Then,theemail’sspamprobabilityiscomputedoverallwordsintheemail,andifthetotalexceedsacertainthreshold,theﬁlterwillmarktheemailasaspam.4.2HiddenMarkovModelsInaregularMarkovmodelasFigure8.2(a),thestatexiisdirectlyvisibletotheobserver,andthereforethestatetransitionprobabilitiesp(xi|xi−1)aretheonlyparameters.BasedontheMarkovproperty,thejointdistributionforasequenceofnobservationsunderthismodelisgivenbyp(x1,...,xn)=p(x1)n(cid:2)i=2p(xi|xi−1).(8.3)Thusifweusesuchamodeltopredictthenextobservationinase-quence,thedistributionofpredictionswilldependonthevalueoftheimmediatelyprecedingobservationandwillbeindependentofallearlierobservations,conditionalontheprecedingobservation.4.2.1Overview.AhiddenMarkovmodel(HMM)canbecon-sideredasthesimplestdynamicBayesiannetwork.InahiddenMarkovmodel,thestateyiisnotdirectlyvisible,andonlytheoutputxiisvisi-ble,whichisdependentonthestate.Thehiddenstatespaceisdiscrete,andisassumedtoconsistofoneofNpossiblevalues,whichisalsocalledlatentvariable.Theobservationscanbeeitherdiscreteorcon-tinuous,whicharetypicallygeneratedfromacategoricaldistributionoraGaussiandistribution.Generally,aHMMcanbeconsideredasaProbabilisticModelsforTextMining279generalizationofamixturemodelwherethehiddenvariablesarerelatedthroughaMarkovprocessratherthanindependentofeachother.Supposethelatentvariablesformaﬁrst-orderMarkovchainasshowninFigure8.2(b).Therandomvariableytisthehiddenstateattimet,andtherandomvariablextistheobservationattimet.Thearrowsintheﬁguredenoteconditionaldependencies.Fromthediagram,itisclearthatyt−1andyt+1areindependentgivenyt,sothatyt+1⊥⊥yt−1|yt.Thisisthekeyconditionalindependenceproperty,whichiscalledtheMarkovproperty.Similarly,thevalueoftheobservedvariablextonlydependsonthevalueofthehiddenvariableyt.Then,thejointdistributionforthismodelisgivenbyp(x1,...,xn,y1,...,yn)=p(y1)n(cid:2)t=2p(yt|yt−1)n(cid:2)t=1p(xt|yt),(8.4)wherep(yt|yt−1)isthestatetransitionprobability,andp(xt|yt)istheobservationprobability.4.2.2TheLearningAlgorithms.Givenasetofpossi-blestatesΩY={q1,...,qN}andasetofpossibleobservationsΩX={o1,...,oM}.TheparameterlearningtaskofHMMistoﬁndthebestsetofstatetransitionprobabilitiesA={aij},aij=p(yt+1=qj|yt=qi)andobservationprobabilitiesB={bi(k)},bi(k)=p(xt=ok|yt=qi)aswellastheinitialstatedistributionΠ={πi},πi=p(y0=qi)forasetofoutputsequences.LetΛ={A,B,Π}denotetheparametersforagivenHMMwithﬁxedΩYandΩX.ThetaskisusuallytoderivethemaximumlikelihoodestimationoftheparametersoftheHMMgiventhesetofoutputsequences.Usuallyalocalmaximumlikelihoodcanbede-rivedeﬃcientlyusingtheBaum-Welchalgorithm[5],whichmakesuseofforward-backwardalgorithm[55],andisaspecialcaseofthegeneralizedEMalgorithm[22].GiventheparametersofthemodelΛ,thereareseveraltypicalin-ferenceproblemsassociatedwithHMMs,asoutlinedbelow.Onecom-montaskistocomputetheprobabilityofaparticularoutputsequence,whichrequiressummationoverallpossiblestatesequences:Theprob-abilityofobservingasequenceXT1=o1,...,oToflengthTisgivenbyP(XT1|Λ)=(cid:4)YT1P(XT1|YT1,Λ)P(YT1|Λ),wherethesumrunsoverallpossiblehidden-nodesequencesYT1=y1,...,yT.Thisproblemcanbehandledeﬃcientlyusingtheforward-backwardalgorithm.Beforewedescribethealgorithm,letusdeﬁnetheforward(alpha)valuesandbackward(beta)valuesasfollows:αt(i)=P(x1=o1,...,xt=ot,yt=qi|Λ)andβt(i)=P(xt+1=ot+1,...,xT=oT|yt=280MININGTEXTDATAqi,Λ).Notetheforwardvaluesenableustosolvetheproblemthroughmarginalizing,thenweobtainP(XT1|Λ)=N(cid:9)i=1P(o1,...,oT,yT=qi|Λ)=N(cid:9)i=1αT(i).Theforwardvaluescanbecomputedeﬃcientlywiththeprincipleofdynamicprogramming:α1(i)=πibi(o1),αt+1(j)=&N(cid:9)i=1αt(i)aij’bj(ot+1).Similarly,thebackwardvaluescanbecomputedasβT(i)=1,βt(i)=N(cid:9)j=1aijbj(ot+1)βt+1(j).ThebackwardvalueswillbeusedintheBaum-Welchalgorithm.GiventheparametersofHMMandaparticularsequenceofobserva-tions,anotherinterestingtaskistocomputethemostlikelysequenceofstatesthatcouldhaveproducedtheobservedsequence.Wecanﬁndthemostlikelysequencebyevaluatingthejointprobabilityofboththestatesequenceandtheobservationsforeachcase.Forexample,inpart-of-speech(POS)tagging[37],weobserveatoken(word)sequenceXT1=o1,...,oT,andthegoalofPOStaggingistoﬁndastochasticopti-maltagsequenceYT1=y1y2...yTthatmaximizesP(Yn1,Xn1).Ingeneral,ﬁndingthemostlikelyexplanationforanobservationsequencecanbesolvedeﬃcientlyusingtheViterbialgorithm[24]bytherecurrencerelations:V1(i)=bi(o1)πi,Vt(j)=bi(ot)maxi(Vt−1(i)aij).HereVt(j)istheprobabilityofthemostprobablestatesequencerespon-siblefortheﬁrsttobservationsthathasqjasitsﬁnalstate.TheViterbipathcanberetrievedbysavingbackpointersthatrememberwhichstateyt=qjwasusedinthesecondequation.LetPtr(yt,qi)bethefunctionthatreturnsthevalueofyt−1usedtocomputeVt(i)asfollows:yT=argmaxqi∈ΩYVT(i),yt−1=Ptr(yt,qi).ProbabilisticModelsforTextMining281ThecomplexityofthisalgorithmisO(T×N2),whereTisthelengthofobservedsequenceandNisthenumberofpossiblestates.NowweneedamethodofadjustingtheparametersΛtomaximizethelikelihoodforagiventrainingset.TheBaum-Welchalgorithm[5]isusedtoﬁndtheunknownparametersofHMMs,whichisaparticularcaseofageneralizedEMalgorithms[22].Westartbychoosingarbitraryvaluesfortheparameters,thencomputetheexpectedfrequenciesgiventhemodelandtheobservations.Theexpectedfrequenciesareobtainedbyweightingtheobservedtransitionsbytheprobabilitiesspeciﬁedinthecurrentmodel.Theexpectedfrequenciesobtainedarethensubstitutedfortheoldparametersandweiterateuntilthereisnoimprovement.Oneachiterationweimprovetheprobabilityofbeingobservedfromthemodeluntilsomelimitingprobabilityisreached.Thisiterativeproce-dureisguaranteedtoconvergetoalocalmaximum[56].4.2.3ApplicationsinTextMining.HMMmodelshavebeenappliedtoawidevarietyofproblemsininformationextractionandnaturallanguageprocessing,whichhavebeenintroducedinChapter2,includingPOStagging[37]andnamedentityrecognition[6].TakingPOStagging[37]asanexample,eachwordislabeledwithatagindi-catingitsappropriatepartofspeech,resultinginannotatedtext,suchas:“[VBheat][NNwater][INin][DTa][JJlarge][NNvessel]”.GivenasequenceofwordsXn1,e.g.,“heatwaterinalargevessel”,thetaskistoassignasequenceoflabelsYn1,e.g.,“VBNNINDTJJNN”,forthewords.BasedonHMMmodels,wecandeterminethesequenceoflabelsbymaximizingajointprobabilitydistributionp(Xn1,Yn1).WiththesuccessofHMMsinPOStagging,itisnaturaltodevelopavariantofanHMMforthenameentityrecognitiontask[6].Intuitively,thelocalityofphenomenamayindicatenamesinthetext,suchastitleslike“Mr.”precedingaperson’sname.TheHMMclassiﬁermodelssuchkindsofdependencies,andperformssequenceclassiﬁcationbyassigningeachwordtooneofthenamedentitytypes.ThestatesintheHMMareorganizedintoregions,oneregionforeachtypeofnamedentity.Withineachoftheregions,astatisticalbi-gramlanguagemodelisusedtocom-putethelikelihoodofwordsoccurringwithinthatregion(namedentitytype).Thetransitionprobabilitiesarecomputedbydeletedinterpola-tion,andthedecodingisdonethroughtheViterbialgorithm.282MININGTEXTDATA4.3MarkovRandomFieldsNowweturntoanothermajorclassofgraphicalmodelsthatarede-scribedbyundirectedgraphsandthatagainspecifybothafactorizationandasetofconditionalindependencerelations.4.3.1Overview.AMarkovrandomﬁeld(MRF),alsoknownasanundirectedgraphicalmodel[35],hasasetofnodeseachofwhichcorrespondstoavariableorgroupofvariables,aswellasasetoflinkseachofwhichconnectsapairofnodes.Thelinksareundirected,thatistheydonotcarryarrows.ConditionalIndependence.Giventhreesetsofnodes,denotedA,B,andC,inanundirectedgraphG,ifAandBareseparatedinGafterremovingasetofnodesCfromG,thenAandBareconditionallyindependentgiventherandomvariablesC,denotedasA⊥⊥B|C.Theconditionalindependenceisdeterminedbysimplegraphseparation.Inotherwords,avariableisconditionallyindependentofallothervari-ablesgivenitsneighbors,denotedasXv⊥⊥XV\{v∪ne(v)}|Xne(v),wherene(v)isthesetofneighborsofv.Ingeneral,anMRFissimilartoaBayesiannetworkinitsrepresentationofdependencies,andtherearesomediﬀerences.Ononehand,anMRFcanrepresentcertaindepen-denciesthataBayesiannetworkcannot(suchascyclicdependencies);ontheotherhand,MRFcannotrepresentcertaindependenciesthataBayesiannetworkcan(suchasinduceddependencies).CliqueFactorization.AstheMarkovpropertiesofanarbitraryprobabilitydistributioncanbediﬃculttoestablish,acommonlyusedclassofMRFsarethosethatcanbefactorizedaccordingtothecliquesofthegraph.Acliqueisdeﬁnedasasubsetofthenodesinagraphsuchthatthereexistsalinkbetweenallpairsofnodesinthesubset.Inotherwords,thesetofnodesinacliqueisfullyconnected.Wecanthereforedeﬁnethefactorsinthedecompositionofthejointdistributiontobefunctionsofthevariablesinthecliques.LetusdenoteacliquebyCandthesetofvariablesinthatcliquesbyxC.ThenthejointdistributioniswrittenasaproductofpotentialfunctionsψC(xC)overthemaximalcliquesofthegraphp(x1,x2,...,xn)=1ZΠCψC(xC),wherethepartitionfunctionZisanormalizationconstantandisgivenbyZ=(cid:4)xΠCψC(xC).Incontrasttothefactorsinthejointdistri-butionforadirectedgraph,thepotentialsinanundirectedgraphdoProbabilisticModelsforTextMining283nothaveaspeciﬁcprobabilisticinterpretation.Therefore,howtomoti-vateachoiceofpotentialfunctionforaparticularapplicationseemstobeveryimportant.OnepopularpotentialfunctionisdeﬁnedasψC(xC)=exp(−(cid:17)(xC)),where(cid:17)(xC)=−lnψC(xC)isanenergyfunc-tion[45]derivedfromstatisticalphysics.Theunderlyingideaisthattheprobabilityofaphysicalstatedependsinverselyonitsenergy.Inthelogarithmicrepresentation,wehavep(x1,x2,...,xn)=1Zexp!−(cid:9)C(cid:17)(xC)".Thejointdistributionaboveisdeﬁnedastheproductofpotentials,andsothetotalenergyisobtainedbyaddingtheenergiesofeachofthemaximalcliques.Alog-linearmodelisaMarkovrandomﬁeldwithfeaturefunctionsfksuchthatthejointdistributioncanbewrittenasp(x1,x2,...,xn)=1Zexp!K(cid:9)k=1λkfk(xCk)",wherefk(xCk)isthefunctionoffeaturesforthecliqueCk,andλkistheweightvectoroffeatures.Thelog-linearmodelprovidesamuchmorecompactrepresentationformanydistributions,especiallywhenvariableshavelargedomainssuchastext.4.3.2TheLearningAlgorithms.InMRF,wemaycomputetheconditionaldistributionofasetofnodesgivenvaluesAtoanothersetofnodesBbysummingoverallpossibleassignmentstov/∈A,B,whichiscalledexactinference.However,theexactinferenceiscomputationallyintractableinthegeneralcase.Instead,approximationtechniquessuchasMCMCapproach[3]andloopybeliefpropagation[46,8]areoftenmorefeasibleinpractice.Inaddition,therearesomeparticularsubclassesofMRFsthatpermiteﬃcientmaximum-a-posterior(MAP)estimation,ormorelikelyassignment,inference,suchasassociatenetworks.Herewewillbrieﬂydescribebeliefpropagationalgorithm.Beliefpropagationisamessagepassingalgorithmforperformingin-ferenceongraphicalmodels,includingBayesiannetworksandMRFs.Itcalculatesthemarginaldistributionforeachunobservednode,con-ditionalonanyobservednodes.Generally,beliefpropagationoperatesonafactorgraph,whichisabipartitegraphcontainingnodescorre-spondingtovariablesVandfactorsU,withedgesbetweenvariablesandthefactorsinwhichtheyappear.AnyBayesiannetworkandMRFcanberepresentedasafactorgraph.Thealgorithmworksbypassing284MININGTEXTDATAFigure8.3.Graphicalstructurefortheconditionalrandomﬁeldmodel.realvaluedfunctioncalledmessagesalongtheedgesbetweenthenodes.TakingpairwiseMRFasanexample,letmij(xj)denotethemessagefromnodeitonodej,andahighvalueofmij(xj)meansthatnodei“believes”themarginalvalueP(xj)tobehigh.Usuallythealgorithmﬁrstinitializesallmessagestouniformorrandompositivevalues,andthenupdatesmessagefromitojbyconsideringallmessagesﬂowingintoi(exceptformessagefromj)asfollows:mij(xj)=(cid:9)xifij(xi,xj)(cid:2)k∈ne(i)\jmki(xi),wherefij(xi,xj)isthepotentialfunctionofthepairwiseclique.Afterenoughiterations,thisprocessislikelytoconvergetoaconsensus.Oncemessageshaveconverged,themarginalprobabilitiesofallthevariablescanbedeterminesbyp(xi)∝(cid:2)k∈ne(i)mki(xi).Thereadercanreferto[46]formoredetails.Themaincostisthemessageupdateequation,whichisO(N2)foreachpairofvariables(Nisthenumberofpossiblestates).4.3.3ApplicationsinTextMining.Recently,MRFhasbeenwidelyusedinmanytextminingtasks,suchastextcategoriza-tion[16]andinformationretrieval[44].In[44],MRFisusedtomodelthetermdependenciesusingthejointdistributionoverqueriesanddoc-uments.Themodelallowsforarbitrarytextfeaturestobeincorporatedasevidence.Inthismodel,anMRFisconstructedfromagraphG,whichconsistsofquerynodesqiandadocumentnodeD.Theauthorsexplorefullindependence,sequentialdependence,andfulldependencevariantsofthemodel.Then,anovelapproachisdevelopedtotrainthemodelthatdirectlymaximizesthemeanaverageprecision.Theresultsshowsigniﬁcantimprovementsarepossiblebymodelingdependencies,especiallyonthelargerwebcollections.ProbabilisticModelsforTextMining2854.4ConditionalRandomFieldsSofar,wehavedescribedtheMarkovnetworkrepresentationasajointdistribution.Inthissubsection,weintroduceonenotablevariantofanMRF,i.e.,conditionalrandomﬁeld(CRF)[38,65],whichisyetanotherpopularmodelforsequencelabelingandhasbeenwidelyusedininformationextractionasdescribedinChapter2.4.4.1Overview.ACRFisanundirectedgraphwhosenodescanbedividedintoexactlytwodisjointsets,theobservedvariablesXandtheoutputvariablesY,whichcanbeparameterizedasasetoffactorsinthesamewayasanordinaryMarkovnetwork.Theunderlyingideaisthatofdeﬁningaconditionalprobabilitydistributionp(Y|X)overlabelsequencesYgivenaparticularobservationsequenceX,ratherthanajointdistributionoverbothlabelandobservationsequencesp(Y,X).TheprimaryadvantageofCRFsoverHMMsistheirconditionalnature,resultingintherelaxationoftheindependenceassumptionsrequiredbyHMMsinordertoensuretractableinference.Consideringalinear-chainCRFwithY={y1,y2,...,yn}andX={x1,x2,...,xn}asshowninFigure8.3,aninputsequenceofobservedvariableXrepresentsasequenceofobservationsandYrepresentsasequenceofhiddenstatevariablesthatneedstobeinferredgiventheobservations.Theyi’sarestructuredtoformachain,withanedgebetweeneachyiandyi+1.Thedistributionrepresentedbythisnetworkhastheform:p(y1,y2,...,yn|x1,x2,...,xn)=1Z(X)exp!K(cid:9)k=1λkfk(yi,yi−1,xi)",whereZ(X)=(cid:4)yiexp(cid:3)(cid:4)Kk=1λkfk(yi,yi−1,xi)(cid:5).4.4.2TheLearningAlgorithms.Forgeneralgraphs,theproblemofexactinferenceinCRFsisintractable.Basically,theinfer-enceproblemforaCRFisthesameasforanMRF.Ifthegraphisachainoratree,asshowninFigure8.3,messagepassingalgorithmsyieldexactsolutions,whicharesimilartotheforward-backward[5,55]andViterbialgorithms[24]forthecaseofHMMs.Ifexactinferenceisnotpossible,generallytheinferenceproblemforaCRFcanbede-rivedusingapproximationtechniquessuchasMCMC[48,3],loopybeliefpropagation[46,8],andsoon.SimilartoHMMs,theparametersaretypicallylearnedbymaximizingthelikelihoodoftrainingdata.Itcanbesolvedusinganiterativetechniquesuchasiterativescaling[38]andgradient-descentmethods[63].286MININGTEXTDATA4.4.3ApplicationsinTextMining.CRFhasbeenappliedtoawidevarietyofproblemsinnaturallanguageprocessing,includ-ingPOStagging[38],shallowparsing[63],andnamedentityrecogni-tion[40],beinganalternativetotherelatedHMMs.BasedonHMMmodels,wecandeterminethesequenceoflabelsbymaximizingajointprobabilitydistributionp(X,Y).Incontrast,CRMsdeﬁneasinglelog-lineardistribution,i.e.,p(Y|X),overlabelsequencesgivenaparticularobservationsequence.TheprimaryadvantageofCRFsoverHMMsistheirconditionalnature,resultingintherelaxationoftheindependenceassumptionsrequiredbyHMMsinordertoensuretractableinference.Asexpected,CRFsoutperformHMMsonPOStaggingandanumberofreal-wordsequencelabelingtasks[38,40].4.5OtherModelsRecently,therearemanyextensionsofbasicgraphicalmodelsasmen-tionedabove.Herewejustbrieﬂyintroducethefollowingtwomod-els,probabilisticrelationalmodel(PRM)[25]andMarkovlogicnet-work(MLN)[59].AProbabilisticrelationalmodelisthecounterpartofaBayesiannetworkinstatisticalrelationallearning,whichconsistsofrelationalschema,dependencystructure,andlocalprobabilitymod-els.ComparedwithBN,PRMhassomeadvantagesanddisadvantages.PRMsallowthepropertiesofanobjecttodependprobabilisticallybothonotherpropertiesofthatobjectandonpropertiesofrelatedobjects,whileBNcanonlymodelrelationshipsbetweenatmostoneclassofin-stancesatatime.InPRM,allinstancesofthesameclassmustusethesamedependencymode,anditcannotdistinguishtwoinstancesofthesameclass.Incontrast,eachinstanceinBNhasitsowndependencymodel,butcannotgeneralizeoverinstances.Generally,PRMsaresig-niﬁcantlymoreexpressivethanstandardmodels,suchasBNs.Thewell-knownmethodsforlearningBNscanbeeasilyextendedtolearnthesemodels.AMarkovlogicnetwork[59]isaprobabilisticlogicwhichcombinesﬁrst-orderlogicandprobabilisticgraphicalmodelsinasinglerepresen-tation.Itisaﬁrst-orderknowledgebasewithaweightattachedtoeachformula,andcanbeviewedasatemplateforconstructingMarkovnet-works.Basically,probabilisticgraphicalmodelsenableustoeﬃcientlyhandleuncertainty.First-orderlogicenablesustocompactlyrepresentawidevarietyofknowledge.Fromthepointofviewofprobability,MLNsprovideacompactlanguagetospecifyverylargeMarkovnetworks,andtheabilitytoﬂexiblyandmodularlyincorporateawiderangeofdomainknowledgeintothem.Fromthepointofviewofﬁrst-orderlogic,MLNsProbabilisticModelsforTextMining287addtheabilitytohandleuncertainty,tolerateimperfectandcontradic-toryknowledge,andreducebrittleness.TheinferenceinMLNscanbeperformedusingstandardMarkovnetworkinferencetechniquesovertheminimalsubsetoftherelevantMarkovnetworkrequiredforansweringthequery.Thesetechniquesincludebeliefpropagation[46]andGibbssampling[23,3].5.ProbabilisticModelswithConstraintsInprobabilisticmodels,domainknowledgeisencodedintothemodelimplicitlyformostofthetime.Inthissection,weintroduceseveralsituationsthatdomainknowledgecanbemodeledasexplicitconstraintstotheoriginalprobabilisticmodels.BymerelyusingPLSAorLDA,wemayderivediﬀerenttopicmodelswhenthealgorithmsconvergetodiﬀerentlocalmaximums.Itwillbeveryusefulifuserscanexplicitlystatewhichtopicmodeltheyfavor.Asimplewaytohandlethisissueistolistthetermsthataredesiredbytheusersineachtopic.Forexample,if“sport”,“football”mustbecontainedinTopic1,userscanindicatearelatedtermdistributionaspriordistributionforTopic1.ThispriorcanbeintegratedintoPLSA.Anothersortofguidanceistospecifywhichtermsshouldhavesimilarprobabilitiesinonetopic(must-link)andwhichtermsshouldnothavesimilarprobabilitiesinanytopic(cannot-link).ThiskindofpriorcanbemodeledasDirichletforestprior,whichisdiscussedin[4].Intraditionaltopicmodels,documentsareconsideredindepedentwitheachother.However,inrealitytherecouldbecorrelationsamongdoc-uments.Forexample,linkedwebpagestendstobesimilarwitheachother,apapercitesanotherpaperindicatesthetwopapersaresome-howsimilar.NetPLSA[41]andiTopicModel[64]aretwoalgorithmsthatimprovetheoriginalPLSAbyconsiderthenetworkconstraintsamongthedocuments.NetPLSAtakesthenetworkconstraintsasanadditionalgraphregularizationtermthatforcestwolinkeddocumentsmuchsimi-lar,whileiTopicModelmodelsthenetworkconstraintsusingaMarkovrandomﬁeldandalsoconsidersthedirectionoflinksinthenetwork.ThesealgorithmscanstillbesolvedbyEMalgorithm.BylookingattheE-step,wecanseethattheconstraintscanbeintegratedintoE-step,withaniceinterpretation.In[26],itproposesaframeworkofposteriorregularizationforprob-abilisticmodels.Diﬀerentfromtraditionalpriorsthataredirectlyap-pliedontoparameters,posteriorregularizationframeworkallowsuserstospecifytheconstraintswhicharedependentondataspace.Forexam-ple,inanunsupervisedpart-of-speechtaggingtask,usersmayrequire288MININGTEXTDATAeachsentencehaveatleastoneverbaccordingtodomainknowledge,whichisdiﬃculttoencodeaspriorsformodelparametersonly.Inordertotakethedata-dependentconstraintsintoconsideration,aposteriorregularizationlikelihoodisproposed,whichintegratesboththemodellikelihoodandtheconstraints.Bystudyingseveraltaskswithdiﬀerentconstrainttypes,thenewmethodhasshownitsﬂexibilityandeﬀective-ness.AnotherlineofsystematicalstudyofintegratingprobabilisticmodelsandconstraintsareConstrainedConditionalModels(CCMs)[54,60,13,14].CCMisalearningandinferenceframeworkthataugmentsthelearningofconditionalmodelswithdeclarativeconstraints.TheobjectivefunctionofaCCMincludestwoparts,onepartinvolvesthefeaturesofatask,andtheotherinvolvesthepenaltieswhenconstraintsareviolated.Tokeepthesimplicityoftheprobabilisticmodel,complexglobalconstraintsareencodedasconstraintsinsteadoffeatures.Usually,theinferenceproblemgivenatrainedmodelcanbesolvedusingintegerlinearprogramming.Therearetwostrategiesforthetrainingstage,alocalmodelthatdecoupleslearningandinferenceandaglobalmodel(jointlearning)thatoptimizesthewholeobjectivefunction.Inpractice,thelocalmodelfortrainingisespeciallybeneﬁcialwhenjointlearningforglobalmodeliscomputationallyintractableorwhentrainingdataisnotavailableforjointlearning.Thatis,itismorepracticaltotrainsimplemodelsusinglimitedtrainingdatabutinferencewithboththetrainedmodelandtheglobalconstraintsatthedecisionstage.6.ParallelLearningAlgorithmsTheeﬃciencyofthelearningalgorithmsisalwaysanissue,especiallyforlargescaleofdatasets,whichisquitecommonfortextdata.Inordertodealwithsuchlargedatasets,algorithmswithlinearorevensub-lineartimecomplexityarerequired,forwhichparallellearningal-gorithmsprovideawaytospeeduporiginalalgorithmssigniﬁcantly.Wenowintroduceseveralsuchalgorithmsamongthem.ThetimecomplexityfororiginalEMlearningalgorithmforPLSAisaboutlineartothetotaldocument-wordoccurrencesinthecorpusandthenumberoftopics.Bypartitioningthedocument-wordoccur-rencetableintoblocks,thecalculationoftheconditionalprobabilityforeachtermineachdocumentcanbeparallelizedforblockswithnoconﬂicts.Thetrickypartistopartitiontheblockssuchthatthework-loadforeachprocessingunitisbalanced.Underthisidea,[31]proposesaparallelizedPLSAwith6times’speeduponaneight-processorma-chinecomparedwiththebaseline.In[15],aGraphicProcessingUnitProbabilisticModelsforTextMining289(GPU)insteadofamulti-coremachineisusedtoparallelizePLSA.GPUhasahundreds-of-corestructureandhighmemorybandwith.Itwasdesignedtohandlehigh-granularitygraphics-relatedapplicationswheremanyworkloadscanbesimultaneouslydispatchedtoprocessorelements,andnowgraduallybecomesageneralplatformforparallelcomputing.In[15],bothco-occurrencetable-basedpartitionanddocument-basedpartitionarestudiedfortheparallelization,whichturnouttogainasigniﬁcantspeedup.TherearealsosomeparallellearningalgorithmsforfastcomputingLDA.[47]proposesparallelversionofalgorithmsbasedonvariationalEMalgorithmforLDA.Twosettingsofimplementationsareconsidered,oneisinamultiprocessorarchitectureandtheotherisinadistributedenvironment.Inbothsettings,multiplethreadsormachinescalculateE-stepsimultaneouslyfordiﬀerentpartitionsofthedataset,andamainprogramoramastermachinewillaggregatealltheinformationandcalculateM-step.In[49],parallelalgorithmsforLDAarebasedonGibbssamplingalgorithm.Twoversionsofalgorithms,AD-LDAandHD-LDA,areproposed.AD-LDAisanapproximatealgorithmthatapplieslocalGibbssamplingoneachprocessorwithperiodicupdates.HD-LDAisanalgorithmwithatheoreticalguaranteetoconvergetoGibbssamplingusingonlyoneprocessor,whichreliesonahierarchi-calBayesianextensionofthestandardLDAmodel.Bothalgorithmshavesimilareﬀectivenessperformanceasthesingle-processorlearning,butwithasigniﬁcanttimespeedup.InPLDA[70],afurtherimprove-mentismadebyimplementingAD-LDAonMPI(MessagePassingIn-terface)andMapReduce,whereMPIisastandardizedandportablemessage-passingsystemforcommunicatingbetweenparallelcomputers,andMapReduceisasoftwareframeworkintroducedbyGoogletosup-portdistributedcomputingonclustersofcomputers.In[17],insteadofparallelizingonealgorithmatatime,itproposesabroadlyapplicableparallelingprogrammingmethod,whichiseasytoap-plytomanydiﬀerentlearningalgorithms.Inthepaper,itdemonstratestheeﬀectivenessoftheirmethodologyonavarietyoflearningalgorithmsbyusingMapReduceparadigm,whichincludelocallyweightedlinearre-gression(LWLR),k-means,logisticregression(LR),naiveBayes(NB),SVM,ICA,PCA,gaussiandiscriminantanalysis(GDA),EM,andback-propagation(NN).7.ConclusionsInthischapter,wehaveintroducedthemostfrequentlyusedproba-bilisticmodelsintextmining,whichincludemixturemodelswiththe290MININGTEXTDATAapplicationsofPLSAandLDA,thenonparametricmodelsthatusestochasticprocessesaspriorsandthuscanmodelinﬁnite-dimensionaldata,thewell-knowngraphicalmodelsincludingBayesiannetworks,HMM,Markovrandomﬁeldandconditionalrandomﬁeld.Insomescenarios,itwillbehelpfultomodeluserguidanceasconstraintstotheexistingprobabilisticmodels.ThegoaloflearningalgorithmsfortheseprobabilisticmodelsaretoﬁndMLE,MAPestimatorsforparametersinthesemodels.Mostofthetime,noclosedformsolutionscanbeprovided.IterativealgorithmssuchasEMalgorithmisapowerfultooltolearnmixturemodels.Inothercases,exactsolutionsarediﬃculttoobtain,andsamplingmethodsbasedonMCMC,beliefpropagationorvariationalinferencemethodsaretheoptions.Whendealingwithlargescaleoftextdata,parallelalgorithmscouldbetherightwaytogo.References[1]A.AhmedandE.Xing.Timeline:Adynamichierarchicaldirichletprocessmodelforrecoveringbirth/deathandevolutionoftopicsintextstream.UncertaintyinArtiﬁcialIntelligence,2010.[2]A.AhmedandE.P.Xing.Dynamicnon-parametricmixturemodelsandtherecurrentchineserestaurantprocess:withapplicationstoevolutionaryclustering.InSDM,pages219–230,2008.[3]C.Andrieu,N.DeFreitas,A.Doucet,andM.Jordan.Anintroduc-tiontomcmcformachinelearning.Machinelearning,50(1):5–43,2003.[4]D.Andrzejewski,X.Zhu,andM.Craven.Incorporatingdomainknowledgeintotopicmodelingviadirichletforestpriors.InPro-ceedingsofthe26thAnnualInternationalConferenceonMachineLearning,ICML’09,pages25–32,NewYork,NY,USA,2009.ACM.[5]L.Baum,T.Petrie,G.Soules,andN.Weiss.Amaximizationtech-niqueoccurringinthestatisticalanalysisofprobabilisticfunctionsofmarkovchains.Theannalsofmathematicalstatistics,41(1):164–171,1970.[6]D.Bikel,R.Schwartz,andR.Weischedel.Analgorithmthatlearnswhat’sinaname.Machinelearning,34(1):211–231,1999.[7]J.Bilmes.AgentletutorialoftheEMalgorithmanditsapplicationtoparameterestimationforGaussianmixtureandhiddenMarkovmodels.TechnicalReportTR-97-021,ICSI,1997.[8]C.Bishop.Patternrecognitionandmachinelearning.Springer,NewYork,2006.ProbabilisticModelsforTextMining291[9]D.M.Blei,T.L.Griﬃths,andM.I.Jordan.Thenestedchineserestaurantprocessandbayesiannonparametricinferenceoftopichierarchies.J.ACM,Aug2009.[10]D.M.BleiandM.I.Jordan.Variationalinferencefordirichletprocessmixtures.BayesianAnalysis,1:121–144,2005.[11]D.M.Blei,A.Ng,andM.Jordan.Latentdirichletallocation.JMLR,3:993–1022,2003.[12]S.Borman.Theexpectationmaximizationalgorithm:Ashorttu-torial.UnpublishedTechnicalreport,2004.Availableonlineathttp://www.seanborman.com/publications.[13]M.Chang,D.Goldwasser,D.Roth,andV.Srikumar.Discrimi-nativelearningoverconstrainedlatentrepresentations.InProc.oftheAnnualMeetingoftheNorthAmericanAssociationofCompu-tationalLinguistics(NAACL),6,2010.[14]M.-W.Chang,N.Rizzolo,andD.Roth.Integerlinearprogramminginnlp–constrainedconditionalmodels.Tutorial,NAACL,2010.[15]H.Chen.Parallelimplementationsofprobabilisticlatentsemanticanalysisongraphicprocessingunits.Computerscience,UniversityofIllinoisatUrbana–Champaign,2011.[16]S.Chhabra,W.Yerazunis,andC.Siefkes.Spamﬁlteringusingamarkovrandomﬁeldmodelwithvariableweightingschemas.InICDMConference,pages347–350,2004.[17]C.T.Chu,S.K.Kim,Y.A.Lin,Y.Yu,G.R.Bradski,A.Y.Ng,andK.Olukotun.Map-Reduceformachinelearningonmulticore.InNIPS,pages281–288,2006.[18]A.Clauset,C.R.Shalizi,andM.E.J.Newman.Power-lawdis-tributionsinempiricaldata.SIAMRev.,51:661–703,November2009.[19]F.Cozman.Generalizingvariableeliminationinbayesiannetworks.InWorkshoponProbabilisticReasoninginArtiﬁcialIntelligence,pages27–32,2000.[20]L.deCampos,J.Fern´andez-Luna,andJ.Huete.Bayesiannetworksandinformationretrieval:anintroductiontothespecialissue.In-formationprocessing&management,40(5):727–733,2004.[21]F.Dellaert.Theexpectationmaximizationalgorithm.Technicalreport,2002.[22]A.P.Dempster,N.M.Laird,andD.B.Rubin.Maximumlikelihoodfromincompletedataviatheemalgorithm.JournaloftheRoyalStatisticalSociety,SeriesB,39(1):1–38,1977.292MININGTEXTDATA[23]J.R.Finkel,T.Grenager,andC.D.Manning.Incorporatingnon-localinformationintoinformationextractionsystemsbygibbssam-pling.InACL,2005.[24]G.ForneyJr.Theviterbialgorithm.ProceedingsoftheIEEE,61(3):268–278,1973.[25]N.Friedman,L.Getoor,D.Koller,andA.Pfeﬀer.Learningprob-abilisticrelationalmodels.InInternationalJointConferenceonArtiﬁcialIntelligence,volume16,pages1300–1309,1999.[26]K.Ganchev,J.A.Gra¸ca,J.Gillenwater,andB.Taskar.Poste-riorregularizationforstructuredlatentvariablemodels.JournalofMachineLearningResearch,11:2001–2049,Aug.2010.[27]T.GriﬃthsandZ.Ghahramani.Inﬁnitelatentfeaturemodelsandtheindianbuﬀetprocess.InNIPS,pages475–482,2005.[28]T.L.GriﬃthsandM.Steyvers.Findingscientiﬁctopics.PNAS,101(suppl.1):5228–5235,2004.[29]T.Hofmann.Probabilisticlatentsemanticanalysis.InProceedingsofUncertaintyinArtiﬁcialIntelligence,UAI,1999.[30]T.Hofmann.Probabilisticlatentsemanticindexing.InACMSIGIRConference,pages50–57,1999.[31]C.Hong,W.Chen,W.Zheng,J.Shan,Y.Chen,andY.Zhang.Parallelizationandcharacterizationofprobabilisticlatentsemanticanalysis.InternationalConferenceonParallelProcessing,0:628–635,2008.[32]M.I.Jordan.Graphicalmodels.StatisticalScience,19(1):140–155,2004.[33]M.I.Jordan.Dirichletprocesses,chineserestaurantprocessesandallthat.TutorialpresentationattheNIPSConference,2005.[34]C.T.Kelley.Iterativemethodsforoptimization.FrontiersinAp-pliedMathematics,SIAM,1999.[35]R.Kindermann,J.Snell,andA.M.Society.Markovrandomﬁeldsandtheirapplications.AmericanMathematicalSocietyProvidence,RI,1980.[36]D.KollerandN.Friedman.Probabilisticgraphicalmodels.MITpress,2009.[37]J.Kupiec.Robustpart-of-speechtaggingusingahiddenmarkovmodel.ComputerSpeech&Language,6(3):225–242,1992.[38]J.D.Laﬀerty,A.McCallum,andF.C.N.Pereira.Conditionalrandomﬁelds:Probabilisticmodelsforsegmentingandlabelingse-quencedata.InICML,pages282–289,2001.ProbabilisticModelsforTextMining293[39]J.-M.Marin,K.L.Mengersen,andC.Robert.Bayesianmodellingandinferenceonmixturesofdistributions.InD.DeyandC.Rao,editors,HandbookofStatistics:Volume25.Elsevier,2005.[40]A.McCallumandW.Li.Earlyresultsfornamedentityrecognitionwithconditionalrandomﬁelds,featureinductionandweb-enhancedlexicons.InProceedingsoftheseventhconferenceonNaturallan-guagelearningatHLT-NAACL2003-Volume4,pages188–191.As-sociationforComputationalLinguistics,2003.[41]Q.Mei,D.Cai,D.Zhang,andC.Zhai.Topicmodelingwithnet-workregularization.InWWWConference,2008.[42]Q.Mei,X.Ling,M.Wondra,H.Su,andC.Zhai.Topicsenti-mentmixture:modelingfacetsandopinionsinweblogs.InWWWConference,pages171–180,2007.[43]Q.MeiandC.Zhai.Amixturemodelforcontextualtextmining.InACMKDDConference,pages649–655,2006.[44]D.MetzlerandW.Croft.Amarkovrandomﬁeldmodelfortermdependencies.InACMSIGIRConference,pages472–479,2005.[45]T.Minka.Expectationpropagationforapproximatebayesianin-ference.InUncertaintyinArtiﬁcialIntelligence,volume17,pages362–369,2001.[46]K.Murphy,Y.Weiss,andM.Jordan.Loopybeliefpropagationforapproximateinference:Anempiricalstudy.InProceedingsofUncertaintyinAI,volume9,pages467–475,1999.[47]R.Nallapati,W.Cohen,andJ.Laﬀerty.Parallelizedvariationalemforlatentdirichletallocation:Anexperimentalevaluationofspeedandscalability.InProceedingsoftheSeventhIEEEInternationalConferenceonDataMiningWorkshops,pages349–354,2007.[48]R.M.Neal.Markovchainsamplingmethodsfordirichletprocessmixturemodels.JournalofComputationalandGraphicalStatistics,9(2):249–265,2000.[49]D.Newman,A.Asuncion,P.Smyth,andM.Welling.Distributedinferenceforlatentdirichletallocation.InNIPSConference,2007.[50]K.Nigam,A.K.McCallum,S.Thrun,andT.Mitchell.Textclassi-ﬁcationfromlabeledandunlabeleddocumentsusingem.MachineLearning,39:103–134,May2000.[51]P.OrbanzandY.W.Teh.Bayesiannonparametricmodels.InEncyclopediaofMachineLearning,pages81–89.2010.[52]J.PitmanandM.Yor.TheTwo-ParameterPoisson-Dirichletdis-tributionderivedfromastablesubordinator.TheAnnalsofProb-ability,25(2):855–900,1997.294MININGTEXTDATA[53]I.Porteous,D.Newman,A.Ihler,A.Asuncion,P.Smyth,andM.Welling.Fastcollapsedgibbssamplingforlatentdirichletallo-cation.InACMKDDConference,pages569–577,2008.[54]V.Punyakanok,D.Roth,W.Yih,andD.Zimak.Learningandinferenceoverconstrainedoutput.InProc.oftheInternationalJointConferenceonArtiﬁcialIntelligence(IJCAI),pages1124–1129,2005.[55]L.Rabiner.Atutorialonhiddenmarkovmodelsandselectedappli-cationsinspeechrecognition.ProceedingsoftheIEEE,77(2):257–286,1989.[56]L.R.RabinerandB.H.Juang.AnintroductiontohiddenMarkovmodels.IEEEASSPMagazine,pages4–15,January1986.[57]C.E.Rasmussen.Theinﬁnitegaussianmixturemodel.InInAd-vancesinNeuralInformationProcessingSystems12,volume12,pages554–560,2000.[58]C.E.RasmussenandC.Williams.GaussianProcessesforMachineLearning.MITPress,2006.[59]M.RichardsonandP.Domingos.Markovlogicnetworks.MachineLearning,62(1):107–136,2006.[60]D.RothandW.Yih.Integerlinearprogramminginferenceforconditionalrandomﬁelds.InInternationalConferenceonMachineLearning(ICML),pages737–744,2005.[61]M.Sahami,S.Dumais,D.Heckerman,andE.Horvitz.Abayesianapproachtoﬁlteringjunke-mail.InAAAIWorkshoponLearningforTextCategorization,1998.[62]J.Sethuraman.Aconstructivedeﬁnitionofdirichletpriors.Statis-ticaSinica,4:639–650,1994.[63]F.ShaandF.Pereira.Shallowparsingwithconditionalrandomﬁelds.InProceedingsofthe2003ConferenceoftheNorthAmer-icanChapteroftheAssociationforComputationalLinguisticsonHumanLanguageTechnology-Volume1,pages134–141,2003.[64]Y.Sun,J.Han,J.Gao,andY.Yu.itopicmodel:Informationnetwork-integratedtopicmodeling.InICDM,pages493–502,2009.[65]C.SuttonandA.McCallum.Anintroductiontoconditionalran-domﬁeldsforrelationallearning.Introductiontostatisticalrela-tionallearning,pages95–130,2006.[66]Y.W.Teh.Ahierarchicalbayesianlanguagemodelbasedonpitman-yorprocesses.InProceedingsofthe21stInternationalCon-ferenceonComputationalLinguisticsandthe44thannualmeetingProbabilisticModelsforTextMining295oftheAssociationforComputationalLinguistics,ACL-44,pages985–992,2006.[67]Y.W.Teh.Dirichletprocesses.InEncyclopediaofMachineLearn-ing.Springer,2010.[68]Y.W.Teh,M.I.Jordan,M.J.Beal,andD.M.Blei.HierarchicalDirichletprocesses.JournaloftheAmericanStatisticalAssociation,101(476):1566–1581,2006.[69]R.ThibauxandM.I.Jordan.Hierarchicalbetaprocessesandtheindianbuﬀetprocess.JournalofMachineLearningResearch–Pro-ceedingsTrack,2:564–571,2007.[70]Y.Wang,H.Bai,M.Stanton,W.-Y.Chen,andE.Y.Chang.Plda:Parallellatentdirichletallocationforlarge-scaleapplications.InProceedingsofthe5thInternationalConferenceonAlgorithmicAs-pectsinInformationandManagement,pages301–314,2009.[71]C.Zhai,A.Velivelli,andB.Yu.Across-collectionmixturemodelforcomparativetextmining.InACMKDDConference,pages743–748,2004.[72]J.Zhang,Y.Song,C.Zhang,andS.Liu.Evolutionaryhierarchicaldirichletprocessesformultiplecorrelatedtime-varyingcorpora.InACMKDDConference,pages1079–1088,NewYork,NY,USA,2010.ACM.[73]X.Zhu,Z.Ghahramani,andJ.Laﬀerty.Time-sensitivedirichletprocessmixturemodels.Technicalreport,CarnegieMellonUniver-sity,2005.    C.C. Aggarwal and C.X. Zhai (eds.), Mining Text Data, DOI 10.1007/978-1-4614-3223-4_9,

Chapter9MININGTEXTSTREAMSCharuC.AggarwalIBMT.J.WatsonResearchCenterHawthorne,NY10532,USAcharu@us.ibm.comAbstractThelargeamountoftextdatawhicharecontinuouslyproducedovertimeinavarietyoflargescaleapplicationssuchassocialnetworksre-sultsinmassivestreamsofdata.Typicallymassivetextstreamsarecreatedbyverylargescaleinteractionsofindividuals,orbystructuredcreationsofparticularkindsofcontentbydedicatedorganizations.Anexampleinthelattercategorywouldbethemassivetextstreamscre-atedbynews-wireservices.Suchtextstreamsprovideunprecedentedchallengestodataminingalgorithmsfromaneﬃciencyperspective.Inthischapter,wereviewtextstreamminingalgorithmsforawidevarietyofproblemsindataminingsuchasclustering,classiﬁcationandtopicmodeling.Wealsodiscussanumberoffuturechallengesinthisareaofresearch.Keywords:TextMining,DataStreams1.IntroductionTextstreamshavebecomeubiquitousinrecentyearsbecauseofawidevarietyofapplicationsinsocialnetworks,newscollection,andotherformsofactivitywhichresultinthecontinuouscreationofmas-sivestreams.Somespeciﬁcexamplesofapplicationswhichcreatetextstreamsareasfollows:Insocialnetworks,userscontinuouslycommunicatewithonean-otherwiththeuseoftextmessages.Thisresultsinmassivevol-umesoftextstreamswhichcanbeleveragedforavarietyofminingandsearchpurposesinthesocialnetwork.Thisisbecausethetext© Springer Science+Business Media, LLC 2012 297 
 
298MININGTEXTDATAmessagesarereﬂectiveofuserinterests.Asimilarobservationap-pliestochatandemailnetworks.Manynewsaggregatorservices1mayreceivelargevolumesofnewsarticlescontinuouslyovertime.Sucharticlesareoftenlongerandmorewellstructuredthanthekindsofmessageswhichareseeninsocial,chat,oremailnetworks.Manywebcrawlersmaycollectalargevolumeofdocumentsfromnetworksinasmalltimeframe.Inmanycases,suchdocumentsarerestrictedtothosewhichhavebeenmodiﬁedinasmalltimeframe.Thisnaturallyresultsinastreamofmodiﬁeddocuments.Textstreamscreateahugechallengefromtheperspectiveofawidevarietyofminingapplications,becauseofthemassivevolumeofthedatawhichmustbeprocessedinonlinefashion.Datastreamshavebeenstudiedextensivelyinrecentyearsnotjustinthetextdomain,butalsointhecontextofawidevarietyofmulti-dimensionalapplicationssuchasnumericalandcategoricaldata.Adetaileddiscussionofminingalgorithmsforstreamdatamaybefoundin[1].Whilemanyofthetechniquesproposedformulti-dimensionaldata[1]canbegeneralizedtotextdataatthehighlevel,thedetailscanbequitediﬀerentbecauseoftheverydiﬀerentformatandlackofstructureoftextdata.Sincestreamminingtechniquesaregenerallydependentuponsummarization,itfollowsthatmethodsforonlinesummarizationneedtobedesignedwhichworkwellfortheunstructurednatureoftextdata.Inthecaseofmulti-dimensionalandtime-seriesdata,suchsumma-rizationoftentakestheformofmethodssuchashistograms,wavelets,andsketcheswhichcanbeusedinordertocreateastructuredsum-maryoftheunderlyingdata[1].However,theunstructurednatureoftextmakestheuseofsuchsummariesquitechallenging.Whilesketcheshavebeenusedtosomeeﬀectinthetextdomain[23],ithasgenerallybeendiﬃculttogeneralizewaveletandhistogrammethodstothetextdomain.Aswewillseelaterinthissection,thesummarizationmethodsdesignedfortextstreamingproblemsmayvaryalot,andmayoftenneedtobetailoredtotheproblemathand.Oneofthegoalsofthischapteristoprovideabroadspectrumofthediﬀerentmethodswhichareusedfortextmining,whichcanprovideanoverviewofthetoolswhichcanbemosteﬀectivelyusedforthetextstreamscenario.Wewillalsopresentthefuturechallengesandresearchdirectionsassociatedwithtextstreammining.1AnexamplewouldbetheGoogleNewsservice.MiningTextStreams299Thischapterisorganizedasfollows.Insection2,wewillpresentavarietyofthewellknownalgorithmsforclusteringtextstreams.Thisincludespopularmethodsfortopicdetectionandtrackingintextstream.Thisisbecausetheprocessofeventdetectioniscloselyrelatedtotheclusteringproblem.Themethodsforclassiﬁcationoftextstreamsarereviewedinsection3.Section4presentsmethodsforevolutionanalysisoftextstream.Theconclusionsandsummaryarepresentedinsection5.2.ClusteringTextStreamsTheproblemofclusteringtextstreamshasbeenwidelystudiedinthecontextofnumericaldata[1,4,12].OtherpopularmethodswhichhavebeenstudiedinthemachinelearningliteratureincludetheCOBWEBandCLASSITmethods[20,25].TheCOBWEBalgorithmassumesnom-inalattributes,whereastheCLASSITalgorithmassumesreal-valuedat-tributes.Manyofthesemethods[4,12]areextensionsofthek-meansmethodasextendedtothestreamscenario.Thistrendhasalsobeenappliedtothecaseoftextstreams.Oneoftheearliestmethodsforstreamingtextclusteringisdiscussedin[54].ThistechniqueisreferredtoastheOnlineSphericalk-MeansAlgorithm(OSKM),whichreﬂectsthebroadapproachusedbythemethodology.Thistechniquesdividesuptheincomingstreamintosmallsegments,eachofwhichcanbeprocessedeﬀectivelyinmainmemory.Asetofk-meansiterationsareappliedtoeachsuchdatasegmentinordertoclusterthem.Theadvantageofusingasegment-wiseapproachforclusteringisthatsinceeachsegmentcanbeheldinmainmemory,wecanprocesseachdatapointmultipletimesaslongasitisheldinmainmemory.Inaddition,thecentroidsfromtheprevioussegmentareusedinthenextiterationforclusteringpurposes.Adecayfactorisintroducedinordertoage-outtheolddocuments,sothatthenewdocumentsareconsideredmoreimportantfromacluster-ingperspective.Thisapproachhasbeenshowntobeextremelyeﬀectiveinclusteringmassivetextstreamsin[54].Themethodin[54]isdesignedasaﬂatclusteringalgorithm,inwhichthereisasingleleveltotheclusteringprocess.Inmanyapplications,itisusefultodesignhierarchicalclusteringalgorithmsinwhichdiﬀerentlevelsoftheclusteringcanbeexplored.Inthecontextoftextdata,thisimpliesthatdiﬀerentlevelsoftopicsandsubtopicscanbeexploredwiththeuseofahierarchicalclusteringprocess.Adistributionalmodel-ingmethodforhierarchicalclusteringofstreamingdocumentshasbeenproposedin[37].ThemethodextendstheCOBWEBandCLASSITalgorithms[20,25]tothecaseoftextdata.Theworkin[37]studiesthe300MININGTEXTDATAdiﬀerentkindsofdistributionalassumptionsofwordsindocuments.Wenotethatthesedistributionalassumptionsarerequiredtoadaptthesealgorithmstothecaseoftextdata.Theapproachessentiallychangesthedistributionalassumptionsothatthemethodcanworkeﬀectivelyfortextdata.Adiﬀerentmethodforclusteringmassivetextandcategoricaldatastreamsisdiscussedin[3].Themethoddiscussedin[3]usesanapproachwhichexaminestherelationshipbetweenoutliers,emergingtrends,andclustersintheunderlyingdata.Oldclustersmaybecomeinactive,andeventuallygetreplacedbynewclusters.Similarly,whennewlyarrivingdatapointsdonotnaturallyﬁtinanyparticularcluster,theseneedtobeinitiallyclassiﬁedasoutliers.However,astimeprogresses,thesenewpointsmaycreateadistinctivepatternofactivitywhichcanberecognizedasanewcluster.Thetemporallocalityofthedatastreamismanifestedbythesenewclusters.Forexample,theﬁrstwebpagebelongingtoaparticularcategoryinacrawlmayberecognizedasanoutlier,butmaylaterformaclusterofdocumentsofitsown.Ontheotherhand,thenewoutliersmaynotnecessarilyresultintheformationofnewclusters.Suchoutliersaretrueshort-termabnormalitiesinthedatasincetheydonotresultintheemergenceofsustainablepatterns.Theapproachdiscussedin[3]recognizesnewclustersbyﬁrstrecognizingthemasoutliers.Thisapproachworkswiththeuseofasummarizationmethodology,whichismotivatedbythemicro-clusteringapproachproposedin[4].Whiletheconceptofmicro-clusteringwasdesignedfornumericaldata,itcanalsobeextendedtothecaseoftextandcategoricaldatastreams.Thismethodologyessentiallycreatessummariesfromthedatapointswhichareusedinordertoestimatetheassignmentofincomingdatapointstoclusters.Theconceptofmicro-clustersisgeneralizedtothatofcondenseddropletsin[3].Inordertoensuregreaterimportanceofmorerecentdata,atime-sensitiveweightageisassignedtoeachdatapoint.Itisassumedthateachdatapointhasatime-dependentweightdeﬁnedbythefunctionf(t).Thefunctionf(t)isalsoreferredtoasthefadingfunction.Thefadingfunctionf(t)isanon-monotonicdecreasingfunctionwhichdecaysuniformlywithtimet.Inordertoformalizethisconcept,wewilldeﬁnethehalf-lifeofapointinthedatastream.Definition9.1Thehalflifet0ofapointisdeﬁnedasthetimeatwhichf(t0)=(1/2)f(0).Conceptually,theaimofdeﬁningahalflifeistoquantifytherateofdecayoftheimportanceofeachdatapointinthestreamclusteringMiningTextStreams301process.Thedecay-rateisdeﬁnedastheinverseofthehalflifeofthedatastream.Wedenotethedecayratebyλ=1/t0.Wedenotetheweightfunctionofeachpointinthedatastreambyf(t)=2−λ·t.Fromtheperspectiveoftheclusteringprocess,theweightofeachdatapointisf(t).Itiseasytoseethatthisdecayfunctioncreatesahalflifeof1/λ.Itisalsoevidentthatbychangingthevalueofλ,itispossibletochangetherateatwhichtheimportanceofthehistoricalinformationinthedatastreamdecays.Thehigherthevalueofλ,thelowertheimportanceofthehistoricalinformationcomparedtomorerecentdata.Formorestabledatastreams,itisdesirabletopickasmallervalueofλ,whereasforrapidlyevolvingdatastreams,itisdesirabletopickalargervalueofλ.Whenaclusteriscreatedduringthestreamingprocessbyanewlyarrivingdatapoint,itisallowedtoremainasatrend-settingoutlierforatleastonehalf-life.Duringthatperiod,ifatleastonemoredatapointarrives,thentheclusterbecomesanactiveandmaturecluster.Ontheotherhand,ifnonewpointsarriveduringahalf-life,thenthetrend-settingoutlierisrecognizedasatrueanomalyinthedatastream.Atthispoint,thisanomalyisremovedfromthelistofcurrentclusters.Werefertotheprocessofremovalasclusterdeath.Thus,anewclustercontainingonedatapointdieswhenthe(weighted)numberofpointsintheclusteris0.5.Thesamecriterionisusedtodeﬁnethedeathofmatureclusters.Anecessaryconditionforthiscriteriontobemetisthattheinactivityperiodintheclusterhasexceededthehalflife1/λ.Thegreaterthenumberofpointsinthecluster,thegreaterthelevelbywhichtheinactivityperiodwouldneedtoexceeditshalflifeinordertomeetthecriterion.Thisisanaturalsolution,sinceitisintuitivelydesirabletohavestrongerrequirements(alongerinactivityperiod)forthedeathofaclustercontainingalargernumberofpoints.Next,wedescribetheprocessofcreationofacondensed-dropletfromtheunderlyingtextstream.Animportantpointtorememberisthatatextdatasetcanbetreatedasasparsenumericdataset.Thisisbecausemostdocumentscontainonlyasmallfractionofthevocabularywithnon-zerofrequency.ForaclusterofdocumentsCattimet,wedenotethecorrespondingcondenseddropletbyD(t,C).Definition9.2AclusterdropletD(t,C)forasetoftextdatapointsCattimetisdeﬁnedtoasatuple(DF2,DF1,n,w(t),l).Eachtuplecomponentisdeﬁnedasfollows:ThevectorDF2contains3·wb·(wb−1)/2entries.HerewbisthenumberofdistinctwordsintheclusterC.Foreachpairofdimensions,wemaintainalistofthepairsofwordidswithnon-302MININGTEXTDATAzerocounts.Wealsomaintainedthesumoftheweightedcountsforsuchwordpairs.ThevectorDF1contains2·wbentries.Wemaintaintheidentitiesofthewordswithnon-zerocounts.Inaddition,wemaintainthesumoftheweightedcountsforeachwordoccurringinthecluster.Theentryncontainsthenumberofdatapointsinthecluster.Theentryw(t)containsthesumoftheweightsofthedatapointsattimet.Wenotethatthevaluew(t)isafunctionofthetimetanddecayswithtimeunlessnewdatapointsareaddedtothedropletD(t).Theentrylcontainsthetimestampofthelasttimethatadatapointwasaddedtothecluster.Theconceptofclusterdroplethassomeinterestingpropertiesthatwillbeusefulduringthemaintenanceprocess.Thesepropertiesrelatetotheadditivityanddecaybehavioroftheclusterdroplet.Observation2.1ConsidertheclusterdropletsD(t,C1)=(DF21,DF11,n1,w(t)1,l1)andD(t,C2)=(DF22,DF12,n2,w(t)2,l2).ThentheclusterdropletD(t,C1∪C2)isdeﬁnedbythetuple(DF21+DF22,DF11+DF12,n1+n2,w(t)1+w(t)2,max{l1,l2}).Theclusterdropletfortheunionoftwoclustersisthesumofindivid-ualentries.Theonlyexceptionisthelastentrywhichisthemaximaofthetwolast-updatetimes.Wenotethattheadditivitypropertyprovidesconsiderableconveniencefordatastreamprocessingsincetheentriescanbeupdatedeﬃcientlyusingsimpleadditiveoperations.Thesecondobservationrelatestotherateofdecayofthecondenseddroplets.Sincetheweightsofeachdatapointdecaywiththepassageoftime,thecorrespondingentriesalsodecayatthesamerate.Corre-spondingly,wemakethefollowingobservation:Observation2.2ConsidertheclusterdropletD(t,C)=(DF2,DF1,n,w(t),l).ThentheentriesofofthesameclusterdropletCatatimet(cid:2)>taregivenbyD(t(cid:2),C)=(DF2·2−λ·(t(cid:2)−t),DF1·2−λ·(t(cid:2)−t),n,w(t)·2−λ·(t(cid:2)−t),l).Thesecondobservationiscriticalinregulatingtherateatwhichtheclus-terdropletsareupdatedduringtheclusteringprocess.Sinceallclusterdropletsdecayatessentiallythesamerate(unlessnewdatapointsareadded),itfollowsthatitisnotnecessarytoupdatethedecaystatisticsMiningTextStreams303ateachtimestamp.Rather,eachclusterdropletcanbeupdatedlazily,whenevernewdatapointsareaddedtoit.Theoverallalgorithmproceedsasfollows.Atthebeginningofalgo-rithmicexecution,westartwithanemptysetofclusters.Asnewdatapointsarrive,unitclusterscontainingindividualdatapointsarecreated.Onceamaximumnumberkofsuchclustershavebeencreated,wecanbegintheprocessofonlineclustermaintenance.Thus,weinitiallystartoﬀwithatrivialsetofkclusters.Theseclustersareupdatedovertimewiththearrivalofnewdatapoints.WhenanewdatapointXarrives,itssimilaritytoeachclusterdropletiscomputed.Inthecaseoftextdatasets,thecosinesimilaritymeasure[17,40]betweenDF1andXisused.ThesimilarityvalueS(X,Cj)iscomputedfromtheincomingdocumentXtoeveryclusterCj.TheclusterwiththemaximumvalueofS(X,Cj)ischosenastherelevantclusterfordatainsertion.LetusassumethatthisclusterisCmindex.Weuseathresholddenotedbythreshinordertodeterminewhethertheincomingdatapointisanoutlier.IfthevalueofS(X,Cmindex)islargerthanthethresholdthresh,thenthepointXisassignedtotheclusterCmindex.Otherwise,wecheckifsomeinactiveclusterexistsinthecurrentsetofclusterdroplets.Ifnosuchinactiveclusterexists,thenthedatapointXisaddedtoCmindex.Ontheotherhand,whenaninactiveclusterdoesexist,anewclusteriscreatedcontainingthesolitarydatapointX.Thisnewlycreatedclusterreplacestheinactivecluster.Wenotethatthisnewclusterisapotentialtrueoutlierorthebeginningofanewtrendofdatapoints.Furtherunderstandingofthisnewclustermayonlybeobtainedwiththeprogressofthedatastream.IntheeventthatXisinsertedintotheclusterCmindex,weneedtoperformtwosteps:Weupdatethestatisticstoreﬂectthedecayofthedatapointsatthecurrentmomentintime.ThisupdatingisperformedusingthecomputationdiscussedinObservation2.2.Thus,therelevantupdatesareperformedina“lazy”fashion.Inotherwords,thestatisticsforaclusterdonotdecay,untilanewpointisaddedtoit.Letthecorrespondingtimestampofthemomentofadditionbet.Thelastupdatetimelisavailablefromtheclusterdropletstatistics.WemultiplytheentriesinthevectorsDC2,DC1andw(t)bythefactor2−λ·(t−l)inordertoupdatethecorrespondingstatistics.Wenotethatthelazyupdatemechanismresultsinstaledecaycharacteristicsformostoftheclusters.Thisdoesnothoweveraﬀecttheafore-discussedcomputationofthesimilaritymeasures.304MININGTEXTDATAInthesecondstep,weaddthestatisticsforeachnewlyarrivingdatapointtothestatisticsforCmindexbyusingthecomputationdiscussedinObservation2.2.Intheeventthatthenewlyarrivingdatapointdoesnotnaturallyﬁtinanyoftheclusterdropletsandaninactiveclusterdoesexist,thenwereplacethemostinactiveclusterbyanewclustercontainingthesolitarydatapointX.Inparticular,thereplacedclusteristheleastrecentlyupdatedclusteramongallinactiveclusters.Thisprocessiscontinuouslyperformedoverthelifeofthedatastream,asnewdocumentsarriveovertime.Theworkin[3]alsopresentsavarietyofotherapplicationsofthestreamclusteringtechniquesuchasevolutionandcorrelationanalysis.Adiﬀerentwayofutilizingthetemporalevolutionoftextdocumentsintheclusteringprocessisdescribedin[26].Speciﬁcally,theworkin[26]usesburstyfeaturesasmarkersofnewtopicoccurrencesinthedatastream.Thisisbecausethesemanticsofanup-and-comingtopicareoftenreﬂectedinthefrequentpresenceofafewdistinctivewordsinthetextstream.Aspeciﬁcexampleillustratestheburstyfeaturesintwotopicscorrespondingtothetwotopicsof“USMid-TermElections”and“NewtGingrichresignsfromHouse”respectively.Thecorrespondingburstyfeatures[26]whichoccurredfrequentlyinthenewsstreamduringtheperiodforthesetopicswereasfollows:USMid-termElections(Nov.3,1998burst):election,voters,Gingrich,president,Newt,...NewtGingrichresignsfromhouse(Nov6,1998burst):House,Gingrich,Newt,president,Washington...Itisevidentthatatagivenperiodintime,thenatureofrelevanttopicscouldleadtoburstsinspeciﬁcfeaturesofthedatastream.Clearly,suchfeaturesareextremelyimportantfromaclusteringperspective.There-fore,themethoddiscussedin[26]usesanewrepresentation,whichisre-ferredtoastheburstyfeaturerepresentationforminingtextstreams.Inthisrepresentation,atime-varyingweightisassociatedwiththefeaturesdependinguponitsburstiness.Thisalsoreﬂectsthevaryingimportanceofthefeaturetotheclusteringprocess.Thus,itisimportanttoremem-berthataparticulardocumentrepresentationisdependentupontheparticularinstantintimeatwhichitisconstructed.Anotherissuewhichishandledeﬀectivelyinthisapproachisanim-plicitreductionindimensionalityoftheunderlyingcollection.Textisinherentlyahighdimensionaldatadomain,andthepre-selectionofsomeofthefeaturesonthebasisoftheirburstinesscanbeanaturalwaytoMiningTextStreams305reducethedimensionalityofdocumentrepresentation.Thiscanhelpinboththeeﬀectivenessandeﬃciencyoftheunderlyingalgorithm.Theﬁrststepintheprocessistoidentifytheburstyfeaturesinthedatastream.Inordertoachievethisgoal,theapproachusesKlein-berg’s2-stateﬁniteautomatonmodel[27].Oncethesefeatureshavebeenidentiﬁed,theburstyfeaturesareassociatedwithweightswhichdependupontheirlevelofburstiness.Subsequently,aburstyfeaturerepresentationisdeﬁnedinordertoreﬂecttheunderlyingweightofthefeature.Boththeidentiﬁcationandtheweightoftheburstyfeaturearedependentuponitsunderlyingfrequency.Astandardk-meansapproachisappliedtothenewrepresentationinordertoconstructtheclustering.Itwasshownin[26]thattheapproachofusingburstinessimprovestheclusterquality.Oncecriticismoftheworkin[26]isthatitismostlyfocussedontheissueofimprovingeﬀectivenesswiththeuseoftempo-ralcharacteristicsofthedatastream,anddoesnotaddresstheissueofeﬃcientclusteringoftheunderlyingdatastream.Ingeneral,itisevidentthatfeatureextractionisimportantforallclusteringalgorithms.Whiletheworkin[26]focussesonusingtem-poralcharacteristicsofthestreamforfeatureextraction,theworkin[32]focussesonusingphraseextractionforeﬀectivefeatureselection.Thisworkisalsorelatedtotheconceptoftopic-modeling,whichwillbediscussedsomewhatlater.Thisisbecausethediﬀerenttopicsinacollectioncanberelatedtotheclustersinacollection.Theworkin[32]usestopic-modelingtechniquesforclustering.Thecoreideaintheworkof[32]isthatindividualwordsarenotveryeﬀectiveforaclusteringalgorithmbecausetheymissthecontextinwhichthewordisused.Forexample,theword“star”mayeitherrefertoacelestialbodyortoanentertainer.Ontheotherhand,whenthephrase“ﬁxedstar”isused,itbecomesevidentthattheword“star”referstoacelestialbody.Thephraseswhichareextractedfromthecollectionarealsoreferredtoastopicsignatures.Theuseofsuchphrasalclariﬁcationforimprovingthequalityoftheclusteringisreferredtoassemanticsmoothingbecauseitreducesthenoisewhichisassociatedwithsemanticambiguity.Therefore,akeypartoftheapproachistoextractphrasesfromtheunderlyingdatastream.Afterphraseextraction,thetrainingprocessdeterminesatranslationprobabilityofthephrasetotermsinthevocabulary.Forexample,theword“planet”mayhavehighprobabilityofassociationwiththephrase“ﬁxedstar”,becausebothrefertocelestialbodies.Therefore,foragivendocument,arationalprobabilitycountmayalsobeassignedtoallterms.Foreachdocument,itisassumedthatalltermsinitaregeneratedeitherbyatopic-signaturemodel,orabackgroundcollectionmodel.306MININGTEXTDATATheapproachin[32]worksbymodelingthesoftprobabilityp(w|Cj)forwordwandclusterCj.Theprobabilityp(w|Cj)ismodeledasalinearcombinationoftwofactors;(a)Amaximumlikelihoodmodelwhichcom-putestheprobabilitiesofgeneratingspeciﬁcwordsforeachcluster(b)Anindirect(translated)word-membershipprobabilitywhichﬁrstdeter-minesthemaximumlikelihoodprobabilityforeachtopic-signature,andthenmultiplyingwiththeconditionalprobabilityofeachword,giventhetopic-signature.Wenotethatwecanusep(w|Cj)inordertoestimatep(d|Cj)byusingtheproductoftheconstituentwordsinthedocument.Forthispurpose,weusethefrequencyf(w,d)ofwordwindocumentd.p(d|Cj)=(cid:2)w∈dp(w|Cj)f(w,d)(9.1)Wenotethatinthestaticcase,itisalsopossibletoaddabackgroundmodelinordertoimprovetherobustnessoftheestimationprocess.Thisishowevernotpossibleinadatastreambecauseofthefactthattheback-groundcollectionmodelmayrequiremultiplepassesinordertobuildeﬀectively.Theworkin[32]maintainstheseprobabilitiesinonlinefash-ionwiththeuseofaclusterproﬁle,thatweightstheprobabilitieswiththeuseofafadingfunction.Wenotethattheconceptofclusterpro-ﬁleisanalogoustotheconceptofcondenseddropletintroducedin[3].Thekeyalgorithm(denotedbyOCTS)istomaintainadynamicsetofclustersintowhichdocumentsareprogressivelyassignedwiththeuseofsimilaritycomputations.Ithasbeenshownin[32]howtheclusterpro-ﬁlecanbeusedinordertoeﬃcientlycomputep(d|Cj)foreachincomingdocument.Thisvalueisthenusedinordertodeterminethesimilarityofthedocumentstothediﬀerentclusters.Thisisusedinordertoas-signthedocumentstotheirclosestcluster.Wenotethatthemethodsin[3,32]shareanumberofsimilaritiesintermsof(a)maintenanceofclusterproﬁles,and(b)useofclusterproﬁles(orcondenseddroplets)tocomputesimilarityandassignmentofdocumentstomostsimilarclus-ters.(c)Therulesusedtodecidewhenanewsingletonclustershouldbecreated,oroneoftheolderclustersshouldbereplaced.Themaindiﬀerencebetweenthetwoalgorithmsisthetechniquewhichisusedinordertocomputeclustersimilarity.TheOCTSalgorithmusestheprobabilisticcomputationp(d|Cj)tocomputeclustersimilarity,whichtakesthephrasalinformationintoaccountduringthecomputationprocess.OneobservationaboutOCTSisthatitmayallowforverysimilarclusterstoco-existinthecurrentset.Thisreducesthespaceavailablefordistinctclusterproﬁles.AsecondalgorithmcalledOCTSMisalsoproposedin[32],whichallowsformergingofverysimilarclusters.Beforeeachassignment,itcheckswhetherpairsofsimilarclusterscanMiningTextStreams307bemergedonthebasisofsimilarity.Ifthisisthecase,thenweallowthemergingofthesimilarclustersandtheircorrespondingclusterproﬁles.Detailedexperimentalresultsonthediﬀerentclusteringalgorithmsandtheireﬀectivenessarepresentedin[32].Anothermethod[42]usesacombinationofaspectralpartitioningandprobabilisticmodelingmethodfornoveltydetectionandtopictracking.ThisapproachusesaHITS-likespectraltechniquewithinaprobabilisticframework.Theprobabilisticpartisanunsupervisedboostingmethod,whichisclosertosemi-parametricmaximumlikelihoodmethods.Acloselyrelatedareatoclusteringisthatoftopicmodeling,whichisaproblemcloselyrelatedtothatofclustering.Intheproblemoftopicmodeling,weperformasoftclusteringofthedatainwhicheachdocu-menthasamembershipprobabilitytooneofauniverseoftopicsratherthanadeterministicmembership.Avarietyofmixturemodelingtech-niquescanbeusedinordertodeterminethetopicsfromtheunderlyingdata.Recently,themethodhasalsobeenextendedtothedynamiccasewhichishelpfulfortopicmodelingoftextstreams[10].Acloselyrelatedtopicisthatoftopicdetectionandtracking,whichisdiscussedbelow.Recently,avarietyofmethodsformaintainingtopicmodelsinastreamingscenariohavebeenproposedin[49].Theworkevaluatesanumberofdiﬀerentmethodsforadaptingtopicmodelstothestreamingscenario.TheseincludemethodssuchasGibbssamplingandvaria-tionalinference.Inaddition,amethodisalsoproposed,whichisbasedontextclassiﬁcation.Thelatterhastheadvantageofrequiringonlyasinglematrixmultiplication,andisthereforemuchmoreeﬃcient.AmethodcalledSparseLDAisproposed,whichisaneﬀectivemethodforevaluatingGibbssamplingdistributions.Theresultsin[49]showthatthismethodis20timesfasterthantraditionalLDA.Insomeapplications,itisdesirabletohaveclustersofapproximatelybalancedsize,inwhichaparticularclusterisnotsigniﬁcantlylargerthantheothers.Acompetitiveonlinelearningfordeterminingsuchbalancedclustershavebeenproposedin[9].Theessentialapproachin[9]istodesignamodelinwhichitisharderfornewdatapointstojoinlargerclusters.Thisisachievedbypenalizingtheimbalanceintotheobjectivefunctioncriterion.Itwasshownin[9]thatsuchanapproachcandeterminewellbalancedclusters.2.1TopicDetectionandTrackinginTextStreamsAcloselyrelatedproblemtoclusteringisthatoftopicdetectionandtracking[5,11,24,46,47,51].Inthisproblem,wecreateunsupervised308MININGTEXTDATAclustersfromatextstream,andthendeterminethesetsofclusterswhichmatchrealevents.Theserealeventsmaycorrespondtodocumentswhichareidentiﬁedbyahuman.Sincetheproblemofonlinetopicdetectioniscloselyrelatedtothatofclustering,wewilldiscussthisproblemasasubsectionofourbroaderdiscussiononclustering,thoughnotallmethodsfortopicdetectionuseclusteringtechniques.Inthissubsection,wewilldiscussallthemethodsfortopicdetection,whethertheyuseclusteringornot.Theearliestworkontopicdetectionandtrackingwasperformedin[5,47].TheworkaroseoutofaDARPAinitiative[55]whichformallydeﬁnedthisproblemandproposedtheinitialsetofalgorithmsforthetask.Aninterestingtechniquein[47]designsmethodswhichcanbeusedforbothretrospectiveandonlinetopictrackinganddetection.Inretrospectiveeventdetection,wecreategroupsfromacorpusofdocu-ments(orstories),andeachgroupcorrespondstoanevent.Theonlineversionisapplicabletothecaseofdatastreams,andinthiscase,wepro-cessdocumentssequentiallyinordertodeterminewhetheranincomingdocumentcorrespondstoanewevent.Anonlineclusteringalgorithmcanalsobeusedinordertotrackthediﬀerenteventsinthedataintheformofclusters.ForeachincomingdocumentXwecomputeitssimi-laritytothelastmdocumentsYt−1...Yt−m.ThescorefortheincomingdocumentXiscomputedasfollows:score(X)=maxi∈{t−m...t−1}(1−sim(X,Yi))(9.2)Adocumentisconsiderednovel,whenitsscoreisaboveapre-deﬁnedthreshold.Inaddition,adecay-weightedversionisdesignedinwhichtheweightofdocumentsdependsuponitsrecency.Theideahereisthatadocumentisconsideredtobeaneweventwhenthelastoccurrenceofasimilardocumentdidnotoccurrecently“enough”.Inthiscase,thecorrespondingscoreisdesignedasfollows:score(X)=maxi∈{t−m...t−1}(1−(m+i−t+1)m·sim(X,Yi))(9.3)WenotethateachYineednotnecessarilyrepresentasingledocument,butmayalsorepresentaclusteroralargergrouping.Wealsonotethatthemethodfordetectinganeweventcanbecombinedwithaclustertrackingtask.Thisisbecausethedeterminationofaneweventisindicativeofanewevent(orsingletoncluster)inthedata.Theworkin[5]addressedtheproblemofneweventdetectionbyexam-iningtherelationshipofacurrentdocumenttothepreviousdocumentsinthedata.ThekeyideaistousefeatureextractionandselectiontechniquesinordertodesignaqueryrepresentationofthedocumentMiningTextStreams309content.Wedeterminethequery’sinitialthresholdbycomparingthedocumentcontentwiththequery,andsetitasthetriggeringthreshold.Then,wedetermineifthedocumenttriggersanyqueriesfromthepre-viousdocumentsinthecollection.Ifnoqueriesaretriggered,thenthedocumentisdeemedtobeanewevent.Otherwise,thisdocumentisnotanewevent.Onegeneralobservationabouttheonlinetopicdetectionandtrack-ingproblem[6,48]isthatthisproblemisquitehardingeneral,andtheperformanceofﬁrsteventdetectioncandegradeunderavarietyofscenarios.Inordertoimprovetheeﬀectivenessofﬁrsteventdetection,theworkin[48]proposestousethetrainingdataofoldeventsinordertolearnusefulstatisticsforthepredictionofnewevents.Thebroadapproachin[48]containsthefollowingcomponents:Thedocumentsareclassiﬁedintobroadtopics,eachofwhichcon-sistsofmultipleevents.Namedentitiesareidentiﬁed,optimizingtheirweightrelativetonormalwordsforeachtopic,andcomputingastopwordlistforeachtopic.Measuringthenoveltyofanewdocumentconditionedonthesystem-predictedtopicforthatdocument.Clearlysuchanapproachhasthetradeoﬀthatitrequirespriorknowl-edgeaboutthecollectionintheformoftrainingdata,butprovidesbetteraccuracy.Moredetailsontheapproachmaybefoundin[48].Amethodproposedin[11]isquitesimilartothatproposedin[47],ex-ceptthatitproposesanumberofimprovementsinhowthetf–idfmodelisincrementallymaintainedforcomputationofsimilarity.Forexample,asource-speciﬁctf–idfmodelismaintainedinwhichthestatisticsarespeciﬁctoeachnewssource.Similarly,theapproachnormalizesforthefactthatdocumentswhichcomefromthesamesourcetendtohaveahighersimilaritybecauseofthevocabularyconventionswhichareoftenusedinthesimilaritycomputation.Inordertoachievethisgoal,theapproachcomputestheaveragesimilaritybetweenthedocumentsfromaparticularpairofsourcesandsubtractsthisaveragevaluewhilecom-putingthesimilaritybetweenapairofdocumentsforthepurposeofneweventdetection.Anumberofothertechniquesforimprovingthequalityofeventdetection(suchasusinginverseeventfrequencies)arediscussedin[11].Amethodforonlinetopicdetectionandtrackingispresentedin[51]asanapplicationofstreamclustering.Thisworkusesaprob-abilisticLDAmodelinordertocreateanonlinemodelforestimatingthegrowingnumberofclusters.Thegeneralapproachinthisworkis310MININGTEXTDATAsimilartotheconceptsalreadyproposedin[47].Themainnoveltyoftheworkisthedesignofanonlineapproachforprobabilisticclustering.Anothermethodforfastandparameter-freeburstyeventdetectionisproposedin[24].Thisapproachfocussesonﬁndingburstyfeatureswhichcharacterizethepresenceofanevent.Inordertoachievethisgoal,thetechniquein[24]proposesafeature-pivotclustering,whichgroupsfeaturesonthebasisofburstyco-occurrence.Theapproachisdesignedtobeparameter-free,whichgivesitanadvantageinanumberofscenarios.Theproblemofeventdetectionhasalsobeenstudiedwiththeuseofkeywordgraphsin[39].Theworkin[39]buildsakeywordsgraphfromatextstreaminwhichanodecorrespondstoakeyword,andanedgeisaddedtothekeywordgraphswhenapairofwordsoccurtogetherinthedocument.Eventsarecharacterizedascommunitiesofkeywordsinthisnetwork.Thisbroadapproachisusedinthecontextofawindow-basedtechniqueforthecaseofsocialstreams.Inthecontextofsocialnetworkstreams,anaturalquestionarises,astowhetheronecanuseanyofthesocialdimensionsoftheunderlyingstreaminordertoimprovetheunderlyingeventdetectionprocess.Suchanapproachhasbeenproposedin[53],inwhicheventsaredeterminedbycombiningtextclustering,socialnetworkstructureclustering,andtemporalsegmentation.Inaddition,amulti-dimensionalvisualizationtoolisprovided,whichdiscusseswaysofvisualizingtherelationshipsbetweentheeventsalongthethreedimensions.Inthiscase,aneventisdeﬁnedasasetoftextdocumentswhicharesemanticallycoherent,andarestructurallywellconnectedbothintermsofsocialnetworkstructureandtime.Thesethreediﬀerentcharacteristicsareusedinthefollowingways:First,thecontentisusedinordertocreateahierarchyoftopicsfromthesocialtextstream.Whilethetopicalpatternsareusefulfordistinguishingcontent,thetemporalsegmentationisusedinordertodistinguishdiﬀer-entevents.Theassumptionisthatthecommunicationbetweendiﬀerentpartieshappenduringashortcontiguoustimeperiod.Sinceitisassumedthattheeventsoccurbetweenconnectedenti-ties,weusetheconnectivitybetweenthediﬀerenteventsinordertofurthersegmenttheevents.Anedgebetweenapairofnodescorrespondstoacommunicationbetweenthesocialentities.Mul-tipleedgesareallowedbetweenpairsofnodes.Thisstructureisusedinordertodeterminetheevent-dependentcommunities.MiningTextStreams311Anothermethod[36]hasbeenproposedinthecontextoftheTwit-tersocialnetworkdataset.Inthispaper,alocalitysensitivehashingmethod(LSH)isusedinordertokeeptrackofthediﬀerentdocuments.TheideainLSH[14]istouseahashingschemeinwhichtheprobabil-ityofhashingtwodocumentsintothesamebucketisproportionaltothecosineoftheanglebetweenthetwodocuments.Foragivenquerydocument,wecheckallthedocumentsinthesamebucket,andthenperformthesimilaritycalculationexplicitlywithalldocumentsinthesamebucket.Theclosestdocumentisreturnedasthenearestneighbor.Wenotethattheproblemofﬁrst-storydetectioncanbeconsideredanapplicationofrepeatednearestneighborqueryinginwhichanincomingdocumentiscomparedtothepreviouslyseendocumentsfromthedatastream.WhileLSHcanbeuseddirectlyinconjunctionwithanear-estneighborsearchforﬁrststorydetection,suchanapproachtypicallyleadstopoorresults.ThisisbecauseLSHworkseﬀectivelyonlyifthetruenearestneighborisclosetothequerypoint.Otherwise,suchanapproachisunabletoﬁndthetruenearestneighbor.Therefore,theapproachin[36]usesthestrategyofusingLSHonlyfordeclaringadoc-umenttobesuﬃcientlynewonanaggregatebasis.Forsuchcases,thedocumentiscomparedagainstaﬁxednumberofthemostrecentdoc-uments.Intheeventthatthecorrespondingdistanceisaboveagiventhreshold,wecandeclaretheunderlyingstoryasnovel.Themainad-vantageofthistechniqueovermanyoftheaforementionedtechniquesisthatofspeed,whichisespeciallyimportant,whendealingwithsocialstreamsofveryhighvolume.ThisspeedisachievedbecauseoftheuseoftheLSHtechnique,thoughthereissomelossinaccuracybecauseoftheapproximationprocess.Thistechniquewascompared[36]againsttheUMasssystem[7],anditwasfoundthatmorethananorderofmagnitudeimprovementinspeedwasobtainedwithonlyaminorlossinaccuracy.Mostoftheworkintextstreamminingandtopicdetectionisper-formedinthecontextofasinglenewsstream.Inmanycases,wehavemultipletextstreams[44],whichareindexedbythesamesetoftimepoints(calledcoordinatedtextstreams).Forexample,whenamajoreventhappens,allthenewsarticlespublishedbydiﬀerentagenciesindiﬀerentlanguagescoverthesameeventinthatperiod.Thisisre-ferredtoasacorrelatedburstytopicpatterninthediﬀerentnewsarticlestreams.Insomecases,whenthecorrelatedstreamsaremulti-lingual,theymayevenhavecompletelydiﬀerentvocabulary.Thediscoveryofburstytopicpatternscandeterminetheinterestingeventsandassocia-tionsbetweendiﬀerentstreams.Suchanapproachcanalsodetermine312MININGTEXTDATAinterestinglocalandstream-speciﬁcpatternsbyfactoringouttheglobalnoisewhichiscommontothediﬀerentstreams.Inordertoachievethisgoal,thetechniquein[44]alignsthetextsam-plesfromdiﬀerentstreamsonthebasisofthesharedtime-stamps.Thisisusedinordertodiscovertopicsfrommultiplestreamssimultaneouslywithasingleprobabilisticmixturemodel.Theapproachofconstruct-ingindependenttopicmodelsfromdiﬀerentstreamsisthatthetopicmodelsfromthediﬀerentstreamsmaynotmatcheachotherverywell,oratleast,createachallengeinmatchingthediﬀerenttopicmodels,ifitisdoneattheendoftheprocessofmodelconstruction.Therefore,itisimportanttomakethemixturemodelsforthediﬀerentstreamscommunicatewithoneanotherduringthemodelingprocess,sothatasinglemixturemodelisconstructedacrossthediﬀerentstreams.Inor-dertoachievethisgoal,thestreamsamplesatagivenpointaremergedtogether,whilekeepingthestreamidentities.Inordertoachievethis,wealignthetopicmodelsfromdiﬀerentstreamswhilekeepingtheiridentities.Whilethetopicmodelsfromdiﬀerentstreamsareseparate,theglobalmixturemodelisdesignedfortheoveralltextstreamsam-ple.Suchamixturemodeliscoordinated,becauseitwouldemphasizetopicswhichtendtooccuracrossmultiplestreams.Oncethecoordi-natedmixturemodelisobtained,thetopicalmodelsforthediﬀerentstreamscanbeextractedbyﬁttingthemixturemodeltothediﬀerentstreams.Asthetopicmodelsforthediﬀerentstreamsatealignedwithoneanother,wecanobtainedacorrelatedburstytopicpattern,whenthecorrespondingtopicisburstyduringthesameperiod.Akeyaspectofthisapproachisthatitdoesnotrequirethediﬀerentstreamstosharevocabulary.Ratheritisassumedthetopicsinvolvedinacorrelatedburstytopicpatterntendtohavethesamedistributionacrossstreams,andthiscanbeusedinordertomatchtopicsfromdiﬀerentstreams.Moredetailsontheapproachmaybefoundin[44].3.ClassiﬁcationofTextStreamsTheproblemofclassiﬁcationofdatastreamshasbeenwidelystudiedbythedataminingcommunityinthecontextofdiﬀerentkindsofdata[1,2,43,50].Manyofthemethodsforclassifyingnumericaldatacanbeeasilyextendedtothecaseoftextdata,justasthenumericalclusteringmethodin[4]hasbeenextendedtoatextclusteringmethodin[3].Inparticular,theclassiﬁcationmethodof[2]canbeextendedtothetextdomain,byadaptingtheconceptofnumericalmicro-clusterstocondenseddropletsasdiscussedin[3].Withtheuseofthecondenseddropletdatastructure,itispossibletoextendallthemethodsdiscussedMiningTextStreams313in[2]tothetextstreamscenario.Similarly,thecoreideain[43]usesanensemblebasedapproachonchunksofthedatastream.Thisbroadapproachisessentiallyameta-algorithmwhichisnottoodependentuponthespeciﬁcsoftheunderlyingdataformat.Therefore,thebroadmethodcanalsobeeasilyextendedtothecaseoftextstreams.TheproblemoftextstreamclassiﬁcationarisesinthecontextofanumberofdiﬀerentIRtasks.Themostimportantoftheseisnewsﬁltering[30],inwhichitisdesirabletoautomaticallyassignincomingdocumentstopre-deﬁnedcategories.Asecondapplicationisthatofemailspamﬁltering[8],inwhichitisdesirabletodeterminewhetherincomingemailmessagesarespamornot.Wenotethattheproblemoftextstreamclassiﬁcationcanariseintwodiﬀerentcontexts,dependinguponwhetherthetrainingorthetestdataarrivesintheformofastream:Intheﬁrstcase,thetrainingdatamaybeavailableforbatchlearn-ing,butthetestdatamayarriveintheformofastream.Inthesecondcase,boththetrainingandthetestdatamayarriveintheformofastream.Thepatternsinthetrainingdatamaycontinuouslychangeovertime,asaresultofwhichthemodelsneedtobeupdateddynamically.Theﬁrstscenarioisusuallyeasytohandle,becausemostclassiﬁermodelsarecompactandclassifyindividualtestinstanceseﬃciently.Ontheotherhand,inthesecondscenario,thetrainingmodelneedstobeconstantlyupdatedinordertoaccountforchangesinthepatternsoftheunderlyingtrainingdata.Theeasiestapproachtosuchaproblemistoincorporatetemporaldecayfactorsintomodelconstructionalgo-rithms,soastoageouttheolddata.Thisensuresthatthenew(andmoretimelydata)isweightedmoresigniﬁcantlyintheclassiﬁcationmodel.Aninterestingtechniquealongthisdirectionhasbeenproposedin[38],inwhichatemporalweightingfactorisintroducedinordertomodifytheclassiﬁcationalgorithms.Speciﬁcally,theapproachhasbeenappliedtotheNaiveBayes,Rocchio,andk-nearestneighborclassiﬁca-tionalgorithms.Ithasbeenshownthattheincorporationoftemporalweightingfactorsisusefulinimprovingtheclassiﬁcationaccuracy,whentheunderlyingdataisevolvingovertime.Anumberofmethodshavealsobeendesignedspeciﬁcallyforthecaseoftextstreams.Inparticular,themethoddiscussedin[23]studiesmethodsforclassifyingtextstreamsinwhichtheclassiﬁcationmodelmayevolveovertime.Thisproblemhasbeenstudiedextensivelyintheliteratureinthecontextofmulti-dimensionaldatastreams[2,43].Forexample,inaspamﬁlteringapplication,ausermaygenerallydelete314MININGTEXTDATAthespamemailsforaparticulartopic,suchasthosecorrespondingtopoliticaladvertisements.However,inaparticularperiodsuchasthepresidentialelections,theusermaybeinterestedintheemailsforthattopic,itmaynotbeappropriatetocontinuetoclassifythatemailasspam.Theworkin[23]looksattheparticularproblemofclassiﬁcationinthecontextofuser-interests.Inthisproblem,thelabelofadocumentisconsideredeitherinterestingornon-interesting.Inordertoachievethisgoal,theworkin[23]maintainstheinterestingandnon-interestingtopicsinatextstreamtogetherwiththeevolutionofthethemeoftheinterestingtopics.Adocumentcollectionisclassiﬁedintomultipletop-ics,eachofwhichislabeledeitherinterestingornon-interestingatagivenpoint.Aconceptreferstothemainthemeofinterestingtopics.Aconceptdriftreferstothefactthatthemainthemeoftheinterestingtopichaschanged.Themaingoalsoftheworkaretomaximizetheaccuracyofclassi-ﬁcationandminimizethecostofre-classiﬁcation.Inordertoachievethisgoal,themethodin[23]designsmethodsfordetectingbothconceptdriftaswellasmodeladaptation.Theformerreferstothechangeinthethemeofuser-interests,whereasthelatterreferstothedetectionofbrandnewconcepts.Inordertodetectconceptdrifts,themethodin[23]measurestheclassiﬁcationerror-ratesinthedatastreamintermsoftrueandfalsepositives.Whenthestreamevolves,theseerrorrateswillincrease,ifthechangeintheconceptsarenotdetection.Inordertodeterminethechangeinconcepts,techniquesfromstatisticalqualitycontrolareused,inwhichwedeterminethemeanμandstandarddevia-tionσoftheerrorrates,anddeterminewhetherthiserrorrateremainswithinaparticulartolerancewhichis[μ−k·σ,μ+k·σ].Herethetoleranceisregulatedbytheparameterk.Whentheerrorratechanges,wedeterminewhentheconceptsshouldbedroppedorincluded.Inad-dition,thedriftrateismeasuredinordertodeterminetherateatwhichtheconceptsshouldbechangedforclassiﬁcationpurposes.Inaddition,methodsfordynamicconstructionandremovalofsketchesarediscussedin[23].Anotherrelatedworkisthatofone-classclassiﬁcationoftextstreams[52],inwhichonlytrainingdataforthepositiveclassisavailable,butthereisnotrainingdataavailableforthenegativeclass.Thisisquitecommoninmanyrealapplicationsinwhichiteasytoﬁndrepresenta-tivedocumentsforaparticulartopic,butitishardtoﬁndtherepre-sentativedocumentsinordertomodelthebackgroundcollection.Themethodworksbydesigninganensembleofclassiﬁersinwhichsomeoftheclassiﬁerscorrespondstoarecentmodel,whereasotherscorrespondMiningTextStreams315toalong-termmodel.Thisisdoneinordertoincorporatethefactthattheclassiﬁcationshouldbeperformedwithacombinationofshort-termandlong-termtrends.Arule-basedtechnique,whichcanlearnclassiﬁersincrementallyfromdatastreamsisthesleeping-expertssystems[15,21].Onecharacteristicofthisrule-basedsystemisthatitusesthepositionofthewordsingeneratingtheclassiﬁcationrules.Typically,therulescorrespondtosetsofwordswhichareplacedclosetogetherinagiventextdocument.Thesesetsofwordsarerelatedtoaclasslabel.Foragiventestdocument,itisdeterminedwhetherthesesetsofwordsoccurinthedocument,andareusedforclassiﬁcation.Thissystemessentiallylearnsasetofrules(orsleepingexperts),whichcanbeupdatedincrementallybythesystem.Whilethetechniquewasproposedpriortotheadventofdatastreamtechnology,itsonlinenatureensuresthatitcanbeeﬀectivelyusedforthestreamscenario.Oneoftheclassesofmethodswhichcanbeeasilyadaptedtostreamclassiﬁcationisthebroadcategoryofneuralnetworks[41,45].Thisisbecauseneuralnetworksareessentiallydesignedasaclassiﬁcationmodelwithanetworkofperceptronsandcorrespondingweightsasso-ciatedwiththeterm-classpairs.Suchanincrementalupdateprocesscanbenaturallyadaptedtothestreamingcontext.Theseweightsareincrementallylearnedasnewexamplesarrive.Theﬁrstneuralnetworkmethodsforonlinelearningwereproposedin[41,45].Inthesemethods,theclassiﬁerstartsoﬀbysettingalltheweightsintheneuralnetworktothesamevalue.Theincomingtrainingexampleisclassiﬁedwiththeneuralnetwork.Intheeventthattheresultoftheclassiﬁcationprocessiscorrect,thentheweightsarenotmodiﬁed.Ontheotherhand,iftheclassiﬁcationisincorrect,thentheweightsforthetermsareeitherin-creasedordecreaseddependinguponwhichclassthetrainingexamplebelongsto.Speciﬁcally,ifclasstowhichthetrainingexamplebelongsisapositiveinstance,theweightsofthecorrespondingterms(inthetrainingdocument)areincreasedbyα.Otherwise,theweightsofthesetermsarereducedbyα.Thevalueofαisalsoknownasthelearningrate.Manyothervariationsarepossibleintermsofhowtheweightsmaybemodiﬁed.Forexample,themethodin[18]usesamultiplicativeupdaterule,inwhichtwomultiplicativeconstantsα1>1andα2<1areusedfortheclassiﬁcationprocess.Theweightsaremultipliedbyα1,whentheexamplebelongstothepositiveclass,andismultipliedbyα2otherwise.Anothervariation[31]alsoallowsthemodiﬁcationofweights,whentheclassiﬁcationprocessiscorrect.Anumberofotheronlineneu-ralnetworkmethodsfortextclassiﬁcation(togetherwithbackgroundonthetopic)maybefoundin[16,22,34,35].ABayesianmethodfor316MININGTEXTDATAclassiﬁcationoftextstreamsisdiscussedin[13].Themethodin[13]constructsaBayesianmodelofthetextwhichcanbeusedforonlineclassiﬁcation.ThekeycomponentsofthisapproacharethedesignofaBayesianonlineperceptronandaBayesianonlineGaussianprocess,whichcanbeusedeﬀectivelyforonlinelearning.4.EvolutionAnalysisinTextStreamsAkeyprobleminthecaseoftextistodetermineevolutionarypatternsintemporaltextstreams.Anearlysurveyonthetopicofevolutionanal-ysisintextstreamsmaybefoundin[28].Suchevolutionarypatternscanbeveryusefulinawidevarietyofapplications,suchassummariz-ingeventsinnewsarticlesandrevealingresearchtrendsinthescientiﬁcliterature.Forexample,aneventmayhavealifecycleintheunderlyingthemepatternssuchasthebeginning,duration,andendofaparticu-larevent.Similarly,theevolutionofaparticulartopicintheresearchliteraturemayhavealife-cycleintermsofhowthediﬀerenttopicsaf-fectoneanother.Thisproblemwasdeﬁnedin[33],andcontainsthreemainparts:(a)Discoveringthethemesintext;(b)creatinganevolutiongraphofthemes;and(c)studyingthelifecycleofthemes.Athemeisdeﬁnedasasemanticallyrelatedsetofwords,withacorre-spondingprobabilitydistribution,whichcoherentlyrepresentsaparticu-lartopicorsub-topic.Thiscorrespondstoamodel,whichisrepresentedbyθ.Thespanofsuchathemerepresentsthestartingandendpointofthecorrespondingthemeintermsofthetime-interval(s,t).Thus,thethemespanisdenotedbythetripleγ=(θ,s,t).Astimepasses,aparticularthemeγ1mayperformatransitionintoanotherthemeγ2.Athemeγ1issaidtohaveevolvedintoanotherthemeγ2,ifthereissuﬃcientsimilaritybetweentheircorrespondingspans.ItispossibletocreateathemeevolutiongraphG=(N,A),inwhicheachnodeinNcorrespondstoatheme,andeachedgeinAcorrespondstoatransitionbetweentwothemes.Theoverallapproachrequiresthreesteps:Intheﬁrststep,wesegmentthetextstreamintoanumberofpos-siblyoverlappingsub-collectionswithﬁxedorvariabletimespans.Thisisdoneinanapplication-speciﬁcway.Thesalientthemesaredeterminedfromeachcollectionwiththeuseofaprobabilisticmixturemodel.Astandardmixturemodeltechnique[19]wasusedforthispurpose.Finally,alltheevolutiontransitionsaredeterminedfromthesethemepatterns.ThisisdonewiththeuseoftheKL-divergencemeasureinordertocomputetheevolutiondistancebetweentwoMiningTextStreams317themes.Intheeventthatthesimilarityisaboveagiventhreshold,thetransitionisconsideredvalid.Inaddition,amethodisproposedin[33]foranalyzingtheentirethemelifecyclebymeasuringthestrengthofthethemeoverdiﬀerentperiods.AmethodbasedonHMMisproposedtomeasurethetheme-shiftsovertheentireperiodaswell.Theproblemoftrackingnewtopics,ideas,andmemesacrosstheWebhasbeenstudiedin[29].Thisproblemisrelatedtothatofthetopicdetectionandtrackingdiscussedearlier.However,therateofevolutioninthewebandblogscenarioissigniﬁcantlygreaterthanthemodelswhichhavebeendiscussedinearlierwork.Inthecontextofthewebandsocialnetworks,thecontentspreadswidelyandthenfadesovertimescalesontheorderofdays.Theworkis[29]developsaframeworkfortrackingshort,distinctivephrasesthatpersistentlyappearinon-linetextovertime.Inaddition,scalablealgorithmswereproposedforclusteringtextualvariantsofsuchphrases.Inaddition,theapproachisabletoperformlocalanalysisforspeciﬁcthreads.Thisincludesthedeterminationofpeakintensityandtheriseanddecayintheintensityofspeciﬁcthreads.Therelationshipbetweenthenewscycleandblogsisexaminedintermsofhoweventspropagatefromonetotheother,andthecorrespondingtime-lagforthepropagationprocess.5.ConclusionsThischapterstudiestheproblemofminingtextstreams.Thechal-lengeinthecaseoftextstreamarisesbecauseofitstemporalanddy-namicnatureinwhichthepatternsandtrendsofthestreammayvaryrapidlyovertime.Thedeterminationofthechangesintheunderlyingpatternsandtrendsisveryusefulinthecontextofawidevarietyofapplications.Avarietyofproblemsintextstreamminingareexaminedsuchasclustering,classiﬁcation,evolutionanalysis,andeventdetection.Inaddition,westudiedtheapplicationsofsomeofthesetechniquesinthecontextofnewapplicationssuchassocialnetworks.Alotofinterest-ingavenuesforresearchremaininthecontextofsocialmediaanalytics,andtheuseofsocialdimensionsinordertoenhancetextstreammining.Inparticular,theincorporationofnetworkstructureintotheminingofsocialstreamssuchasTwitterremainsarelativelyunexploredarea,whichcanbeafruitfulavenueforfutureresearch.318MININGTEXTDATAReferences[1]C.C.Aggarwal.DataStreams:ModelsandAlgorithms,Springer,2007.[2]C.C.Aggarwal,J.Han,J.Wang,P.Yu.OnDemandClassiﬁcationofDataStreams,KDDConference,2004.[3]C.C.Aggarwal,P.S.Yu.AFrameworkforClusteringMassiveTextandCategoricalDataStreams,SIAMConferenceonDataMining,2006.[4]C.C.Aggarwal,J.Han.J.Wang,P.Yu.AFrameworkforCluster-ingEvolvingDataStreams,VLDBConference,2003.[5]J.Allan,R.Papka,V.Lavrenko.On-lineneweventdetectionandtracking.ACMSIGIRConference,1998.[6]J.Allan,V.Lavrenko,H.Jin.Firststorydetectionintdtishard.ACMCIKMConference,2000.[7]J.Allan,V.Lavrenko,D.Malin,R.Swan.Detections,boundsandtimelines:Umassandtdt3,ProceedingsoftheTopicDetectionandTrackingWorkshop,2000.[8]I.Androutsopoulos,J.Koutsias,K.V.Chandrinos,C.D.Spyropou-los.AnexperimentalcomparisonofnaiveBayesianandkeyword-basedanti-spamﬁlteringwithpersonale-mailmessages.ProceedingsoftheACMSIGIRConference,2000.[9]A.Banerjee,J.Ghosh.Competitivelearningmechanismsforscal-able,balancedandincrementalclusteringofstreamingtexts,NIPSConference,2003.[10]D.Blei,J.Laﬀerty.Dynamictopicmodels.ICMLConference,2006.[11]T.Brants,F.Chen,A.Farahat.Asystemforneweventdetection.ACMSIGIRConference,2003.[12]L.O’Callaghan,A.Meyerson,R.Motwani,N.Mishra,S.Guha.Streaming-DataAlgorithmsforHigh-QualityClustering.ICDEConference,2002.[13]K.Chai,H.Ng,H.Chiu.BayesianOnlineClassiﬁersforTextClas-siﬁcationandFiltering,ACMSIGIRConference,2002.[14]M.Charikar.SimilarityEstimationTechniquesfromRoundingAl-gorithms,STOCConference,2002.[15]W.Cohen,Y.Singer.Context-sensitivelearningmethodsfortextcategorization.ACMTransactionsonInformationSystems,17(2),pp.141–173,1999.MiningTextStreams319[16]K.Crammer,Y.Singer.ANewFamilyofOnlineAlgorithmsforcategoryranking,ACMSIGIRConference,2002.[17]D.Cutting,D.Karger,J.Pedersen,J.Tukey.Scatter/Gather:ACluster-basedApproachtoBrowsingLargeDocumentCollections.ProceedingsoftheSIGIR,1992.[18]I.Dagan,Y.Karov,D.Roth.Mistake-drivenlearningintextcate-gorization.ConferenceEmpiricalMethodsinNaturalLanguagePro-cessing,1997.[19]A.P.Dempster,N.M.Laird,D.B.Rubin.MaximumlikelihoodfromincompletedataviatheEMalgorithm.JournalofRoyalSta-tisticalSociety39:pp.1–38,1977.[20]D.Fisher.KnowledgeAcquisitionviaincrementalconceptualclus-tering.MachineLearning,2:pp.139–172,1987.[21]Y.Freund,R.Schapire,Y.Singer,M.Warmuth.Usingandcombin-ingpredictorsthatspecialize.Proceedingsofthe29thAnnualACMSymposiumonTheoryofComputing,pp.334–343,1997.[22]Y.Freund,R.Schapire.LargeMarginClassiﬁcationusingtheper-ceptronAlgorithm,COLT,1998.[23]G.P.C.Fung,J.X.Yu,H.Lu.Classifyingtextstreamsinthepresenceofconceptdrifts.PAKDDConference,2004.[24]G.P.C.Fung,J.X.Yu,P.Yu,H.Lu.ParameterFreeBurstyEventsDetectioninTextStreams,VLDBConference,2005.[25]J.H.Gennari,P.Langley,D.Fisher.Modelsofincrementalconceptformation.JournalofArtiﬁcialIntelligence,40:pp.11–61,1989.[26]Q.He,K.Chang,E.-P.Lim,J.Zhang.Burstyfeaturerepresentationforclusteringtextstreams.SDMConference,2007.[27]J.Kleinberg,Burstyandhierarchicalstructureinstreams,ACMKDDConference,pp.91–101,2002.[28]A.Kontostathis,L.Galitsky,W.M.Pottenger,S.Roy,D.J.Phelps.Asurveyofemergingtrenddetectionintextualdatamining.SurveyofTextMining,pp.185–224,2003.[29]J.Leskovec,L.Backstrom,J.Kleinberg.MemeTrackingandtheDynamicsoftheNewsCycle,KDDConference,2009.[30]D.Lewis.TheTREC-4ﬁlteringtrack:descriptionandanalysis.ProceedingsofTREC-4,4thTextRetrievalConference,pp.165–180,1995.[31]D.Lewis,R.E.Schapire,J.P.Callan,R.Papka.Trainingalgo-rithmsforlineartextclassiﬁers.ACMSIGIRConference,1996.320MININGTEXTDATA[32]Y.-B.Liu,J.-R.Cai,J.Yin,A.W.-C.Fu.ClusteringTextDataStreams,JournalofComputerScienceandTechnology,Vol.23(1),pp.112–128,2008.[33]Q.Mei,C.-X.Zhai.DiscoveringEvolutionaryThemePatternsfromText-AnExplorationofTemporalTextMining,ACMKDDCon-ference,2005.[34]H.T.Ng,W.B.Goh,K.L.Low.Featureselection,perceptronlearning,andausabilitycasestudyfortextcategorization.SIGIRConference,1997.[35]F.Rosenblatt.Theperceptron:Aprobabilisticmodelforinforma-tionandstorageorganizationinthebrain,PsychologicalReview,65:pp.386–407,1958.[36]S.Petrovic,M.Osborne,V.Lavrenko.StreamingFirstStoryDe-tectionwithApplicationtoTwitter.ProceedingsoftheACLCon-ference,pp.181–189,2010.[37]N.Sahoo,J.Callan,R.Krishnan,G.Duncan,R.Padman.Incre-mentalHierarchicalClusteringofTextDocuments,ACMCIKMConference,2006.[38]T.Salles,L.Rocha,G.Pappa,G.Mourao,W.MeiraJr.,M.Goncalves.Temporally-awarealgorithmsfordocumentclassiﬁca-tion.ACMSIGIRConference,2010.[39]H.Sayyadi,M.Hurst,A.Maykov.EventDetectioninSocialStreams,AAAI,2009.[40]H.Schutze,C.Silverstein.ProjectionsforEﬃcientDocumentClus-tering,ACMSIGIRConference,1997.[41]H.Schutze,D.Hull,J.Pedersen.Acomparisonofclassiﬁersanddocumentrepresentationsfortheroutingproblem.ACMSIGIRConference,1995.[42]A.Surendran,S.Sra.IncrementalAspectModelsforMiningDoc-umentStreams.PKDDConference,2006.[43]H.Wang,W.Fan,P.Yu,J.Han,MiningConcept-DriftingDataStreamswithEnsembleClassiﬁers,KDDConference,2003.[44]X.Wang,C.-X.Zhai,X.Hu,R.Sproat.MiningCorrelatedBurstyTopicPatternsfromCorrelatedTextStreams,ACMKDDConfer-ence,2007.[45]E.Wiener,J.O.Pedersen,A.S.Weigend.ANeuralNetworkAp-proachtoTopicSpotting.SDAIR,pp.317–332,1995.[46]Y.Yang,J.Carbonell,R.Brown,T.Pierce,B.T.Archibald,X.Liu.Learningapproachesfordetectingandtrackingnewsevents.IEEEIntelligentSystems,14(4):32–43,1999.MiningTextStreams321[47]Y.Yang,T.Pierce,J.Carbonell.Astudyonretrospectiveandon-lineeventdetection.ACMSIGIRConference,1998.[48]Y.Yang,J.Carbonell,C.Jin.Topic-conditionedNoveltyDetection.ACMKDDConference,2002.[49]L.Yao,D.Mimno,A.McCallum.Eﬃcientmethodsfortopicmodelinferenceonstreamingdocumentcollections,ACMKDDConfer-ence,2009.[50]K.L.Yu,W.Lam.Anewon-linelearningalgorithmforadaptivetextﬁltering.ACMCIKMConference,1998.[51]J.Zhang,Z.Ghahramani,Y.Yang.Aprobabilisticmodelforon-linedocumentclusteringwithapplicationtonoveltydetection.InSaulL.,WeissY.,BottouL.(eds)AdvancesinNeuralInformationProcessingLetters,17,2005.[52]Y.Zhang,X.Li,M.Orlowska.OneClassClassiﬁcationofTextStreamswithConceptDrift,ICDMWWorkshop,2008.[53]Q.Zhao,P.Mitra.EventDetectionandVisualizationforSocialTextStreams,ICWSM,2007.[54]S.Zhong.EﬃcientStreamingTextClustering.NeuralNetworks,Volume18,Issue5-6,2005.[55]http://projects.ldc.upenn.edu/TDT/    C.C. Aggarwal and C.X. Zhai (eds.), Mining Text Data, DOI 10.1007/978-1-4614-3223-4_10,

Chapter10TRANSLINGUALMININGFROMTEXTDATAJian-YunNieUniversityofMontrealMontreal,H3C3J7,Quebec,Canadanie@iro.umontreal.caJianfengGaoMicrosoftCorporationRedmond,WA,USAjfgao@microsoft.comGuihongCaoMicrosoftCorporationRedmond,WA,USAgucao@microsoft.comAbstractLikefull-texttranslation,cross-languageinformationretrieval(CLIR)isataskthatrequiressomeformofknowledgetransferacrosslanguages.Althoughrobusttranslationresourcesarecriticalforconstructinghighqualitytranslationtools,manuallyconstructedresourcesarelimitedbothintheircoverageandintheiradaptabilitytoawiderangeofap-plications.Automaticminingoftranslingualknowledgemakesitpos-sibletocomplementhand-curatedresources.Thischapterdescribesagrowingbodyofworkthatseekstominetranslingualknowledgefromtextdata,inparticular,datafoundontheWeb.Wereviewanumberofminingandﬁlteringstrategies,andconsidertheminthecontextofstatisticalmachinetranslation,showingthatthesetechniquescanbeef-fectiveincollectinglargequantitiesoftranslingualknowledgenecessaryforCLIR. © Springer Science+Business Media, LLC 2012  323 
 
324MININGTEXTDATAKeywords:cross-lingualmining,translingualmining,cross-lingualinformationre-trieval1.IntroductionTheprinciplegoaloftextminingistodiscoverknowledgefromtextdata.Variousformsofknowledgemaybeinvolved,includingpossiblyconceptsandrelationsamongthem.Whilethebulkofworkontextmininghasbeenconductedonmonolingualtexts,relatingtoidentifyingconceptsandrelationsamongtheminasinglelanguage,aby-no-meansnegligibleclassofapplicationsinvolvesmorethanonelanguage.TheprototypicalmemberofthisclassisMachinetranslation(MT),whichseekstotransferasentenceoratextfromalanguageintoanother.Todothis,onehastocreateorextractvarioustypesoftranslingualknowledgesuchaswordtranslation(usuallyintheformofabilingualdictionaryorastatisticaltranslationmodel)andmethodsofsyntactictransfer.WhereasclassicalMTsystemswereonceconstructedusingmanuallydeﬁnedrulesanddictionaries,modernMTsystemsexploitlargebilingualtextdatafromwhichtoobtaintranslationalknowledgeautomatically.Theextractionofthistranslationalknowledgeis,initsessence,aformoftranslingualtextmining.Anotherimportantapplica-tionthatcallsfortranslingualtextminingiscross-languageinformationretrieval(CLIR),inwhichonetriestoretrievedocumentsinalanguagediﬀerentfromthelanguageoftheoriginalquery.Apersonmaywish,forexample,toretrievedocumentsinEnglishusingaqueryinChinese.Althoughadditionaltranslationalknowledgemayneedtobebroughttobearinordertocomparethereturneddocumentsandthequeryintwolanguages,theinformationalgoalofCLIRisdistinctfromthatoffulltextMT,andtheprocessofextractingtranslingualknowledgediﬀersaccordingly.Inthischapter,wesurveysomeoftheapproachesusedtoextracttranslingualknowledgefromtextsfordiﬀerentpurposes,inparticu-lar,MTandCLIR.Wewillbeginwithadescriptionoftheclassicalapproachestostatisticalmachinetranslation,anddescribinghowsta-tisticaltranslationmodelscanbeconstructedfromparalleltexts,andexaminingextensionstotheclassicalapproachesthatattempttogobe-yondword-basedtranslation.Intheremainingsections,weconsideravarietyofmethodsfortranslingualtextminingforCLIRapplications.TranslingualMiningfromTextData3252.TraditionalTranslingualTextMining–MachineTranslationThegoalofmachinetranslation(MT)istouseacomputersystemtotranslateatextwritteninasourcelanguage(e.g.,Chinese)intoatar-getlanguage(e.g.,English).Inthissection,weprovideanoverviewoftranslationmodelsthatarewidelyusedinstate-of-the-artstatisticalma-chinetranslation(SMT)systems.AcomprehensivereviewisprovidedinaveryreadableforminKoehn(2009).Althoughthesemodelsarede-signedfortranslatingregularnaturallanguagesentences,theycanalsobeadaptedtothetaskofsearchquerytranslationforcross-lingualin-formationretrieval(CLIR),aswillbediscussedinSection4.Thequerytranslationtaskdiﬀersfromconventionaltexttranslationmainlyinitstreatmentofwordorder.Intexttranslationwordorderiscrucialtothereadabilityofthetranslatedsentenceswhicharepresenteddirectlytotheendusers.InCLIR,querytranslationisanintermediatestepthatprovidesasetoftranslatedquerytermssothatthesearchenginecanretrievedocumentsinthetargetlanguage.Wordorderthushaslittleimpactonthesearchqualityaslongasthetranslationpreserverstheun-derlyingsearchintent,ratherthantheform,oftheoriginalquery.Thissectionfocusesonlyonstatisticaltranslationmodelsforregulartext.ReaderswhoareinterestedinstatisticalmodelsforquerytranslationmayrefertoGaoandNie(2006)andGaoetal.(2001,2002).2.1SMTandGenerativeTranslationModelsSMTistypicallyformulatedwithintheframeworkofthenoisychannelmodel.Givenasourcesentence(inChinese)C=c1...cJ,wewanttoﬁndthebestEnglishtranslationE=e1...eIamongallpossibletranslations:E∗=argmaxEP(E|C)(10.1)wheretheargmaxoperationdenotesthedecoder,i.e.,thesearchal-gorithmusedtoﬁndthetargetsentencewiththehighestprobabilityamongallpossibletargets.ApplyingBayes’decisionruleanddroppingtheconstantdenominator,wehaveE∗=argmaxEP(C|E)P(E)(10.2)whereP(E)isthelanguagemodel,assessingtheoverallwell-formednessofthetargetsentence,andP(C|E)isthetranslationmodel,modelingthetransformationprobabilityfromEtoC.Inthissection,wefocusourdiscussiononthetranslationmodelonly.Noticethat,mathemati-cally,thetranslationdirectionchangesfromP(E|C)inEquation(2.1)to326MININGTEXTDATAP(C|E)inEquation(2.2)whenBayesruleisapplied.FollowingKoehn(2009),wewillseektoavoidpotentialconfusionthatmightarisefromthisalternationbyadheringtothenotationP(C|E).Inasigniﬁcantgeneralizationofthenoisychannelmodel,OchandNey(2002)introducedalog-linearmodelthatmodelsP(E|C)directly.Thislog-linearmodeliscurrentlyadoptedbymostofstate-of-the-artSMTsystemsandisoftheformP(E|C)=1Z(C,E)exp(cid:9)iλihi(C,E)(10.3)whereZisthenormalizationconstant,h(·)areasetoffeaturescom-putedoverthetranslationandλ’sarefeatureweightsoptimizedonde-velopmentdatausinge.g.,minimumerrorratetraining(Och2003).Thefeaturesusedinthelog-linearmodelcanbebinaryfeaturesorreal-valuefeaturesderivedfromprobabilisticmodels.Forexample,wecandeﬁnethelogarithmoflanguagemodelandtranslationmodelprobabilitiesinEquation(2.2)astwofeatures,therebysubsumingthenoisychannelmodelasaspecialcase.Thelog-linearmodelthusprovidesaﬂexiblemathematicalframeworkwithwhichtoincorporateawidevarietyoffeaturesusefulforMT.Conceptually,atranslationmodeltriesto“remember”totheextentpossiblehowlikelyitisthatasourcesentencetranslatesintoatargetsentenceintrainingdata.Figure1showsaChinesesentencepairedwithitsEnglishtranslation.Ideally,ifthetranslationmodelcouldremembersuchtranslationpairsforallpossibleChinesesentences,wewouldhaveaperfecttranslationsystem.Unfortunately,atrainingcorpus,nomatterhowlarge,cancoveronlyatinyfractionofallpossiblesentences.Givenlimitedtrainingdata,itisusualtobreakthesentencesinthetrainingcorpusintosmallertranslationunits(e.g.,words)whosedistribution(i.e.,translationprobabilities)canbemoreeasilymodeled.InFigure1,althoughthetranslationofthefullsentenceisunlikelytooccurintrainingdata,individualwordtranslationpairssuchas(rescue,(cid:7041)(cid:6692))willbefound.Givenaninputsentencethatisunseenintrainingdata,anSMTsystemcanbeexpectedtoperformatranslationprocessthatrunsbroadlyasfollows:ﬁrsttheinputsourcesentenceisbrokenintosmallertranslationunits,theneachunitistranslatedintoatargetlanguage,andﬁnallythetranslatedunitsaregluedtogethertoformatargetsentence.Thetranslationmodelsthatwedetailinthesectionsbelowdiﬀerinhowthetranslationunitsaredeﬁned,translatedandreassembled.Themethodweusetoformulateatranslationmodeliscalledgenerativemodeling,andconsistsofthreesteps:TranslingualMiningfromTextData327Storymaking:formulatingagenerativestoryabouthowatargetsentenceisgeneratedstepbystepfromasourcesentence.Mathematicalformulation:modelingeachgenerationstepinthegenerativestoryusingaprobabilitydistribution.Parameterestimation:implementinganeﬀectivewayofestimatingtheprobabilitydistributionsfromtrainingdata.Thesethreemodelingtasksarecloselyinterrelated.Thewayinwhichwebreakthegenerationprocessintosmallerstepsinourstorydeterminesthecomplexityoftheprobabilisticmodels,whichinturndeterminesthesetofthemodelparametersthatneedtobeestimated.Wecanviewthethreetasksasstraddlingtheartistic(storymaking),thescientiﬁc(math-ematicalformulation),andtheengineering(parameterestimation).Theoverallchallengeofgenerativemodelingistoﬁndaharmoniccombi-nationofthethree,anintellectualendeavorthatattractsthetalentofsomeofthebestcomputerscientistsallovertheworld.State-of-the-arttranslationmodelsusedforconventionaltexttransla-tionbroadlyfallintothreecategories:word-basedmodels,phrase-basedmodels,andsyntax-basedmodels.Inwhatfollows,wewilldescribetheminturnstartingwiththegenerativestory,thendescribingthemathe-maticalformulationandthewayinwhichthemodelparametersareestimatedonthetrainingdata.Figure10.1.AChinesesentenceanditsEnglishtranslation2.2Word-BasedModelsWord-basedmodelsusewordsastranslationunits.ThemodelsstemfrompioneeringworkonstatisticalmachinetranslationconductedbyanIBMgroupintheearly1990s.InwhathasbecomeclassicalpaperBrownetal.(1993)proposedaseriesofword-basedtranslationmodelsofincreasingcomplexitythatcometobeknownastheIBMModels.IBMModel1,oneofthesimplestandmostwidelyusedword-basedmodels,iswhatistermedalexicaltranslationmodel,inwhichtheorderofthewordsinthesourceandtargetsentenceisignored.ThegenerativestoryabouthowthetargetsentenceEisgeneratedfromthesourcesentenceC,runsasfollows:328MININGTEXTDATA1FirstchoosethelengthforthetargetsentenceI,accordingtothedistributionP(I|C).2Then,foreachpositioni(i=1...I)inthetargetsentence,wechooseapositionjinthesourcesentencefromwhichtogeneratethei-thtargetwordeiaccordingtothedistributionP(j|C),andgeneratethetargetwordbytranslatingcjaccordingtothedistri-butionP(ei|cj).Weincludeinpositionzeroofthesourcesentenceanartiﬁcial“nullword”,denotedby<null>thepurposeofwhichistoallowtheinsertionofadditionaltargetwords.Now,letusformulatetheabovestorymathematically.InStep1,weassumethatthechoiceofthelengthisindependentofCandI,thuswehaveP(I|C)=(cid:17),where(cid:17)isasmallconstant.InStep2,weassumethatallpositionsinthesourcesentence,includingpositionzeroforthenullword,areequallylikelytobechosen.ThuswehaveP(j|C)=1J+1.ThentheprobabilityofgeneratingeigivenCisthesumoverallpos-siblepositions,weightedbyP(j|C):P(ei|C)=(cid:4)jP(j|C)P(ei|cj)=1J+1(cid:4)jP(ei|cj).Assumingthateachtargetwordisgeneratedindepen-dentlyfromC,weendupwiththeﬁnalformofIBMModel1.P(E|C)=P(I|C)I(cid:2)i=1P(ei|C)(10.4)=(cid:17)(J+1)II(cid:2)i=1J(cid:9)j=0P(ei|cj)(10.5)WecanseethatIBMModel1hasonlyonetypeofparametertoestimate,thelexicaltranslationprobabilitiesP(e|c).Ifthetrainingdataconsistsofsentencepairsthatareword-alignedasshowninFigure2,P(e|c)canbecomputedviaMaximumLikelihoodEstimation(MLE)asfollows:P(e|c)=N(c,e)(cid:4)e(cid:2)N(c,e(cid:2))(10.6)whereN(c,e)isthenumberoftimesthatthewordpair(c,e)isalignedintrainingdata.Inpractice,itismorerealistictoassumethattrainingdataisalignedatthesentencelevelbutnotatthewordlevel.Ac-cordingly,weapplytheExpectationMaximization(EM)algorithmtocomputethevaluesofP(e|c)andthewordalignmentiteratively.ThisprocesswilldeterminethebestP(e|c)thatmaximizestheprobabilityofthegivenalignmentbetweensentences.Thealgorithmworksasfollows:TranslingualMiningfromTextData3291Initializethemodelwithauniformtranslationprobabilitydistri-bution.2Applythemodeltothedata,computingtheprobabilitiesofallpossiblewordalignments.3(Re-)estimatethemodelbycollectingcountsforwordtranslationoverallpossiblealignments,weightedbytheirprobabilitiescom-putedintheStep2.4IteratethroughSteps2and3untilconvergence.SinceateveryEMiterationthelikelihoodofthemodelgiventhetrainingdataisguaranteednottodecrease,theEMalgorithmisguar-anteedtoconverge.InthecaseofIBMModel1,itisguaranteedtoreachaglobalmaximum.Brownetal.(1993)presentsﬁveword-basedtranslationmodelsofincreasingcomplexity,namelyIBMModel1through5.InIBMModel1theorderofthewordsinthesourceandtargetsentencesisignored,andthemodelassumesthatallwordalignmentsareequallylikely.Model2improvesonModel1byaddinganabsolutealignmentmodelinwhichwordsthatfolloweachotherinthesourcelanguagehavetranslationsthatfolloweachotherinthetargetlanguage.Models3,4,and5modelthe“fertility”ofthegenerationprocesswithincreasingcomplexity.Fer-tilityisanotionreﬂectingtheobservationthataninputwordinasourcelanguagetendstoproduceaspeciﬁcnumberofoutputwordsinatar-getlanguage.ThefertilitymodelcapturestheinformationthatsomeChinesewordsaremorelikelythanotherstogeneratemultipleEnglishwords.Allthesemodelshavetheirindividualgenerativestoriesandcor-respondingmathematicalformulations,andtheirmodelparametersareestimatedusingtheEMalgorithm.ReadersmayrefertoBrownetal.(1993)fordetails.2.3Phrase-BasedModelsPhrase-basedmodelsarethebasisformoststate-of-the-artSMTsys-tems.Liketheword-basedmodels,thesearegenerativemodelsthattranslateaninputsentenceinasourcelanguageCintoasentenceinatargetlanguageE.Insteadoftranslatingsinglewordsinisolation,how-ever,phrase-basedmodelstranslatesequencesofwords(i.e.,phrases)inCintosequencesofwordsinE.Theuseofphrasesastranslationunitsismotivatedbytheobservationthatonewordinasourcelanguagefrequentlytranslatesintomultiplewordsinatargetlanguage,orviceversa.Word-basedmodelscannothandlethesecasesadequately:the330MININGTEXTDATAFigure10.2.Wordalignment:wordsintheEnglishsentence(rows)arealignedtowordsintheChinesesentence(columns)asindicatedbytheﬁlledboxesinthematrixEnglishphrase”stuﬀynose”,forexample,translatestheChineseword”(cid:21867)(cid:3726)”withrelativelyhighprobability,butneitheroftheindividualEn-glishwords”stuﬀy”and”nose”hasahighwordtranslationprobabilityto”(cid:21867)(cid:3726)”.Thegenerativestorybehindthephrase-basedmodelscanbestatedasfollows.First,theinputsourcesentenceCissegmentedintoKnon-emptywordsequencesc1,...,cK.Theneachistranslatedtoanewnon-emptywordsequencee1,...,eK.FinallythesephrasesarepermutedandconcatenatedtoformthetargetsentenceE.Herecandedenoteconsecutivesequencesofwords.Toformalizethisgenerativeprocess,letSdenotethesegmentationofCintoKphrasesc1...cK,andletTdenotetheKtranslationphrasese1...eKWerefertothese(ci,ei)pairsasbilingualphrases.Finally,letMdenoteapermutationofKelementsrepresentingtheﬁnalreorderingstep.Figure3demonstratesthegenerativeprocedure.Nextletusplaceaprobabilitydistributionovertranslationpairs.LetB(C,E)denotethesetofS,T,MtriplesthattranslateCintoE.Ifweassumeauniformprobabilityoversegmentations,thenthephrase-basedtranslationmodelcanbedeﬁnedas:P(E|C)∝(cid:9)(S,T,M)∈B(C,E)P(T|C,S)·P(M|C,S,T)(10.7)ItiscommonpracticeinSMTtousethemaximumapproximationtothesum:themaximumprobabilityassignmentcanbefoundeﬃcientlybyusingadynamicprogrammingapproach:P(E|C)≈max(S,T,M)∈B(C,E)P(T|C,S)·P(M|C,S,T)(10.8)TranslingualMiningfromTextData331Figure10.3.Exampledemonstratingthegenerativeprocedurebehindthephrase-basedmodel.Reorderingishandledbyadistance-basedreorderingmodel(Koehnetal.2003)relativetothepreviousphrase.WedeﬁnestartiasthepositionoftheﬁrstwordoftheChineseinputphrasethattranslatestothei-thEnglishphrase,andendiasthepositionofthelastwordofthatChinesephrase.Thereorderingdistanceiscomputedasstarti−endi−1,i.e.,thenumberofwordsskippedwhentakingforeignwordsoutofsequence.Wealsoassumethataphrase-segmentedEnglishsentenceT=e1...eKisgeneratedfromlefttorightbytranslatingeachphrasec1...cKindependently.Thisyieldsoneofthebest-knownformsofphrase-basedmodel:P(E|C)∝max(S,T,M)∈B(C,Q)K(cid:2)k=1P(ek|ck)d(starti−endi−1−1)(10.9)InEquation(10.9)theonlyparametertobeestimatedisthetrans-lationprobabilitiesonthebilingualphrasesP(e|c).Inwhatfollows,werelymainlyonworkbyOchandNey(2002)andKoehnetal.(2003)todescribehowbilingualphrasesareextractedfromtheparalleldataandP(e|c)isestimated.First,welearntwowordtranslationmodelsviaEMtrainingofaword-basedmodel(i.e.,IBMModel1or4)onsentencepairsintwodirections:fromsourcetotargetandfromtargettosource.WethenperformViterbiwordalignmentineachdirectionaccordingtothecorrespondingmodelforthatdirection.Thetwoalignmentsarecombined,startingwiththeintersectionofthetwoalignments,andgraduallyincludingmorealign-mentlinksaccordingtoheuristicrulesdetailedinOchandNey(2002).Finally,bilingualphrasesthatareconsistentwiththewordalignmentareextracted.Consistencyhereimpliestwothings.First,theremustbeatleastonealignedwordpairinthebilingualphrase.Second,there332MININGTEXTDATAmustbenowordalignmentsfromwordsinsidethebilingualphrasetowordsoutsidethebilingualphrase.Thatis,wedonotextractaphrasepairifthereisanalignmentfromwithinthephrasepairtoanelementoutsidethephrasepair.Figure4illustratesthebilingualphraseswecangeneratefromtheword-alignedsentencepairbythisprocess.Figure10.4.Anexampleofawordalignmentandthebilingualphrasescontainingupto3wordsthatareconsistentwiththewordalignment.Aftergatheringallsuchbilingualphrasesfromthetrainingdata,wecanestimateconditionalrelativefrequencyestimateswithoutsmooth-ing.Forexample,thephrasetransformationprobabilityP(e|c)inEqua-tion(2.7)canbeestimatedapproximatelyas:P(e|c)=N(c,e)(cid:4)e(cid:2)N(c,e(cid:2))(10.10)whereN(c,e)isthenumberoftimesthatcisalignedtoeintrainingdata.Theseestimatesareusefulforcontextuallexicalselectionwhenthereissuﬃcienttrainingdata,otherwisecanbesubjecttodatasparsityissues.Analternatemeansofestimatingtranslationprobabilitiesthatislesssusceptibletodatasparsityistheso-calledlexicalweightestimate.As-sumewehaveawordtranslationdistributiont(e|c)(deﬁnedoverindi-vidualwords,notphrases),andawordalignmentAbetweeneandc;here,thewordalignmentcontains(i,j)pairs,wherei∈1...|e|andj∈0...|c|,with0indicatinganinsertedword.Thenwecanusethefollowingestimate:TranslingualMiningfromTextData333Pw(e|c,A)=|e|(cid:2)i=11|{j|(j,i)∈A}|(cid:9)∀(i,j)∈At(ei|cj)(10.11)Weassumethatforeverypositionine,thereiseitherasinglealign-mentto0,ormultiplealignmentstonon-zeropositionsinc.Ineﬀect,thiscomputesaproductofper-wordtranslationscores;theper-wordscoresareaveragesofallthetranslationsforthealignmentlinksofthatword.Weestimatethewordtranslationprobabilitiesusingcountsfromthewordalignedcorpus:t(e|c)=N(c,e)(cid:2)e(cid:2)N(c,e(cid:2)).HereN(c,e)isthenum-beroftimesthatthewords(notphrasesasinEquation(2.8))candearealignedinthetrainingdata.Theseword-basedscoresofbilingualphrases,thoughnotaseﬀectiveincontextualselectionaspreviousones,aremorerobusttonoiseandsparsity.BothmodelformsofEquation(2.8)and(2.9)areusedasfeaturesinthelog-linearmodelforSMTasEquation(2.3).2.4Syntax-BasedModelsThepossibilityofincorporatingsyntaxinformationinSMThasbeenalong-standingtopicofresearch.Syntax-basedtranslationmodelshavebeguntoperformaswellasstate-of-the-artphrase-basedmodels,andinthecaseofsomelanguagepairsmayevenoutperformtheirphrase-basedcounterpart.Researchonsyntax-basedmodelsisafast-movingarea,withnumerousopenquestions.Ourdescriptioninthissectionfocusesonsomebasicunderlyingprinciples,illustratedbyexamplesfromthemostsuccessfulmodelsproposedsofar(e.g.,Chiang2005;Galleyetal.2004).Syntax-basedmodelsrelyonparsingthesentenceineitherthesourceorthetargetlanguage,orinsomecasesinboth.Figure5depictsthesentencepairfromFigure1,butwithconstituentparsesadded.TheseparsesaregeneratedfromastatisticalparsertrainedonPennTreebank.Eachparseisarootedtreewheretheleavesareoriginalwordsofthesentenceandtheinternalnodescoveracontiguoussequenceofthewordsinthesentence,calledaconstituentEachconstituentisassociatedwithaphraselabeldescribingthesyntacticroleofthewordsunderitsnode.Thetree-structuredparseplayssimilarrolesinsyntax-basedmodelstothoseofaphraseinphrase-basedmodels.Theﬁrstroleistoidentifytranslationunitsinaninputsentence.Whileinphrase-basedmodelstheunitsarephrases,insyntax-basedmodelstheyareconstituentsofthekindseeninFigure5.Thesecondistoguidehowbesttogluethosetranslatedconstituentsintoawell-formedtargetsentence.Again,weassumeagenerativestory,similartothatforphrase-basedmodels:334MININGTEXTDATAFigure10.5.Apairofword-alignedChineseandEnglishsentencesandtheirparsetrees.1ParseaninputChinesesentenceintoaparsetree2TranslateeachChineseconstituentintoEnglish3GluetheEnglishconstituentsintoawell-formedEnglishsentence.ThisgenerativeprocessistypicallyformulatedundertheframeworkofweightedsynchronousContextFreeGrammar(CFG)(Chiang,2005),whichconsistsofasetofrewritingrulesroftheform:X→(γ,α,∼)(10.12)whereXisanonterminal,γandαarebothstringsofterminalsandnon-terminalscorrespondingrespectivelytosourceandtargetstrings,and˜indicatesthatanynon-terminalsinthesourceandtargetstringsarealigned.Forexample,aruleextractedfromtheexampleinFigure5is:VP→(PP(cid:4651)(cid:6318)NP,searchforNPPP,∼)(10.13)TranslingualMiningfromTextData335where∼indicatesthatPPandNPinthesourceandtargetlanguagesarealigned.Wecanseethatthesenon-terminalsgeneralizethephrasesusedinthephrase-basedmodelsdescribedinSection2.2.WenowdeﬁneaderivationDasasequenceofKrewritesr1,...,rK,eachofwhichpicksarewritingrulefromthegrammar,andrewritesaconstituentinChineseintoEnglish,untilanEnglishsentenceisgener-ated.LetE(D)betheEnglishstringsgeneratedbyD,andC(D)betheChinesestringsgeneratedbyD.AssumingthattheparsetreeoftheinputChinesesentenceisTree(C),thetranslationmodelcanbeformulatedasP(E|C,Tree(C))=(cid:9)D:E(D)=EandC(D)=CP(D)(10.14)Aswhenformulatingthephrase-basedmodels,weusethemaximumapproximationtothesum:P(E|C,Tree(C))∝maxD:E(D)=EandC(D)=CP(D)(10.15)AsynchronousCFGassumesthateachrewritingruleapplicationde-pendsonlyonanon-terminal,andnotonanysurroundingcontext.Thuswehave:P(D)=K(cid:2)k=1P(rk)(10.16)Rewritingrule(2.11)notonlyspeciﬁeslexicaltranslationsbutalsoencapsulatesnicelythekindofreorderinginvolvedwhentranslatingChineseverbcomplexesintoEnglish.Asaresult,searchingforthederivationthathasthemaximumprobabilityassignment,asinEqua-tion(2.13),simultaneouslyaccomplishesthetwotasksofconstituenttranslationandsentencereordering(asinSteps2and3inourgenera-tivestory).Thesearchcanbeachievedbychartparsing.ThesynchronousgrammarproposedinChiang(2005)illustrateshowtheserewritingrulesmaybeextractedfromdataandhowtheirprob-abilitiesareestimated.Thegrammarhasnotunderlyinglinguisticin-terpretationandusesonlyonenon-terminalX.Assumethatwehavetheword-alignmentsentencepair,asshowninﬁgure4.First,weex-tractinitialbi-phrasesthatareconsistentwiththeword-alignment,asdescribedinSection2.2.Wewritethesebilingualphrasesintheformofsynchronousgrammar:X→((cid:3416)(cid:1602)(cid:3708)(cid:11444)(cid:6255)(cid:4731)(cid:18428)(cid:4651)(cid:6318)(cid:11087)(cid:17928)(cid:13877),srch.forsurviv.incollap.home,∼)336MININGTEXTDATAWethengeneralizetheserulesbyreplacingsomesubstringswiththenonterminalsymbolX:X→((cid:3416)X1(cid:18428)(cid:4651)(cid:6318)X2,searchforX2inX1,∼)usingsubscriptindicestoindicatewhichoccurrencesofXarelinkedby˜.Thisrulecapturesinformationaboutbothlexicaltranslationandwordreordering,withtheresultthatthelearnedgrammarcanbeviewedasasigniﬁcantgeneralizationofphrase-basedmodelscapableofhandlelongerrangewordreordering.Tolimitthenumberofrulesgeneratedinthisfashion,therewriterulesareconstrained:(a)tocontainatleastoneandatmost5lexicalitemsperlanguage,(b)tohavenosequencesofnon-terminals,(c)tohaveatmosttwonon-terminals,and(d)tospanatmost15words.Oncetherewriterulesareextracted,theirprobabilitiesareestimatedontheword-alignedsentencepairsusingamethodanalogouswiththatforthephrase-basedmodels.ReadersmayrefertoChiang(2005)foradetaileddescription.3.AutomaticMiningofParalleltextsTheprevioussectionprovidesanoverviewofthestateoftheartinSMT.Italsodescribesthemosttraditionalwaytoexploitaparallelcorpustoextracttranslationalknowledgeinformoftranslationmodels.Thesemodelsarethebasisformanyapplicationsinwhichtranslationisrequired.SMTrequiresalargenumberofparalleltextsformodeltraining.Tra-ditionally,oneassumedthatsuchparalleltextsareavailable.Indeed,therehavebeenseveralmanuallycompiledlargeparallelcorporaavail-able.TheCanadianHansard1isprobablythemostwidelyusedandbestknown.ThiscorpuscontainsallthedebatesintheCanadianparliamentinbothEnglishandFrench.Translationismadebyprofessionalsanditisofveryhighquality.TheﬁrstresearchworkonstatisticalMThasbeencarriedoutusingthiscorpus.Lateron,severalotherparallelcor-porabecameavailable,inparticular,theHongKonglawdocumentsinEnglishandChinese2andthedocumentsoftheEuropeanParliamentinseveralEuropeanlanguages3.Thesemanuallycompiledparalleltextscanbeusedinthemethodspresentedintheprevioussection,oftenafterastepofsentencealignment(GaleandChurch1993).1http://www.parl.gc.ca/ParlBusiness.aspx?Language=E2http://www.legco.gov.hk/english/index.htm3http://www.europarl.europa.eu/TranslingualMiningfromTextData337However,despitethehighqualityoftranslationintheseparallelcor-pora,wedoencounterseveralproblemswhentheyareusedforthetrans-lationpurposes.Indeed,althoughthesizeofthecorporaarelarge,itisstilllimitedforthepurposeofmodeltraining,leavingaconsiderablepro-portionofthetranslationphenomenaeitheruncoveredorinsuﬃcientlycoveredforgeneraltranslationapplicationsInparticular:VocabularyThedocumentsinthesemanuallycompiledparallelcorporaareformalinstyleandvocabulary.TheydonotprovidegoodcoverageoftermsorwordsusedinlessformaldiscussionsandcommunicationsontheWeb.Manytermsandwordsinthelatterwillbe“unknown”bythemodelstrainedonthesedataStructureHighqualitydocumentsandtheirtranslationsarewrit-tenincorrectsyntax.ThisisnotthecaseforWebdocumentsandsearchqueries.Asyntax-basedSMTsystemtrainedonthesedatawillbeinadequatetocopewiththeﬂexiblestructureoftextsandqueriesontheWeb.AdaptabilityBecausethestatisticaltranslationmodelsaretrainedontheparalleltexts,theytendtoﬁtthelatter,includingthefre-quencyofwordusageandwordtranslation.Evenifawordoratermiswellcoveredbytranslationmodel,thesuggestedtransla-tionsmaynotbesuitablefortheintendedapplication.Onepossiblesolutiontotheaboveproblemsistodevelopautomatictoolstocollectappropriateparalleldocumentsaccordingtoone’srequirement.TheWebisanexcellentresourceforthispurpose,andindeeditisatrulymultilingualresource,oneonwhichdocumentsinmanydiﬀerentlanguagesarepublished.Acertainproportionofthedocumentsareparallel,i.e.thesamedocumentsarepublishedinseverallanguages.Thesedocumentsvirtuallyconstitutealargeparallelcorpus.Thekeyproblemistocollectthoseparalleltextswithoutincluding(toomany)non-parallelones.AttemptstocollectparalleltextsfromtheWebdatetothelate1990s,withResnik(1998)andNieetal.(1999).Bothstudiesexploittwofactorstodeterminewhethertwotextsareparallel:theWebstructureinwhichthetextsarestoredandpublished,thetextstructureofthedocumentsthemselves.3.1UsingWebstructureResnik(1998)observedthatinmanycases,parallelWebpagesarelinkedfromanentrypage(homepage)onawebsite,eachwithalanguage338MININGTEXTDATAidentiﬁersuchas“English”and“Fran¸cais”asanchortext.Forexample,thefollowingwebsite(NaturalResourcesofCanada)isorganizedinthemannershowninFigure6.Figure10.6.AnexampleofparallelpageslinkedfromahomepageTheminingsystemSTRAND(Resnik,1998)identiﬁesthereferredpagesascandidateparallelwebpages.InthequerylanguageofAltaVistausedbySTRAND,thefollowingquerywillretrieveparentpagesreferringtotwochildpagesintherelevantlanguages:anchor:”english”ANDanchor:”fran¸cais”However,theabovecriterioncanonlydetectalimitednumberofparallelWebpages.Morecommonlysitesareorganizedsothateachofthepagescontainsalinktothecorrespondingparallelpage,asshowninFigure7.Again,thelinkusuallycontainsanchortextthatidentiﬁesthelanguage.Toretrievethosepages,thefollowingAltaVistaquerycanbeusedtoretrievetheFrenchdocumentscontainingananchortexttoanEnglishpage:anchor:”english”ORanchor:”anglais”whilesettingthelanguageofthedocumentstoFrench.Analogously,onecanretrieveEnglishdocumentscontaininganchortextlinkingtoaFrenchpage.TranslingualMiningfromTextData339Figure10.7.Anexampleofmutuallylinkedparallelpages.ThissecondcriterionisthemainapproachtakenbyPTMiner(Nieetal.1999,ChenandNie2000)toidentifycandidatepages.PTMineradditionallyusedasitecrawlertodownloadallthepagesfromcandidatesites(thesitesthatcontainsomecandidateparallelpages)inordertoﬁndmoreWebpagesonthosesitesthatarenotindexedbythesearchengine.3.2MatchingparallelpagesOncetwosetsofcandidatepagesaredetermined,thenexttaskistopairthepagesup.Thecontentsofthepageswilleventuallybeused,butﬁrstheuristicsareappliedtoquicklyidentifycandidateparallelpagesSinceparallelWebpagesareusuallyassignedsimilarﬁlenamestwoWebpageswiththenames“descriptionen.htm”and“descriptionfr.htm”arelikelyparallel.Similarly,Websitesmayusetwoseparatedirectoriestostorepagesintwolanguages,inwhichcase,thenamesofthedirectoriesmaybeslightlydiﬀerent,e.g.“www.website.com/English/ﬁle1.html”vs.“www.website.com/French/ﬁle1.html”.Inbothcasesthediﬀerencebetweenﬁleanddirectorynamesisoftenrelatedtothelanguage,andthiscanberecognizedusingsimpleheuristics.SuchheuristicsareusedinPTMinertopairupminedcandidateWebpageseﬃciently.340MININGTEXTDATATofurtherﬁlteroutnon-parallelpages,additionalchecksonthepages’contentscanthenbeapplied:AretheHTMLstructuresofthetwopagessimilar?Theassump-tionisthatparallelpagesareusuallycreatedwiththesameorsimilarHTMLstructures.InbothSTRANDandPTMiner,theHTMLmarkupsequenceofeachpageisextracted,andthepagesareconsideredtobeparalleliftheirHTMLmarkupsequencesresembleeachotherHowever,moresophisticatedcomparisonofdocumentstructurecanbeperformed.Forexample,onecanusetheDOMtreeoftheWebpage(Shietal.2006).Arethetwopagesofsimilarlengths?Itisgenerallyobservedthatthelengthsofparalleltextsaresimilar(orproportionaltothelengthratiooftextsinthetwolanguages).Thisisaneasywaytoﬁlteroutcandidatepairswhosecontentcannotbeparallel.Finally,whatisthecontenttranslationprobability?Ifthetextsinthetwopageshaveahighmutualtranslationprobability,thenthepagesarelikelytobeparallel.Althoughaneﬀectivemeansofconﬁrmingtextualparallelism,thisultimatestepiscostlytoimplementandhasnotbeenwidelyused.TheprecisionoftheWebpagesidentiﬁcationbySTRANDandPTMinerisimpressive:itisestimatedthatmorethan90%oftheidentiﬁedpairsofWebpagesareindeedparallel.Evaluationofrecall,ontheotherhand,presentsgreaterdiﬃculty:ResnikcalculatedrecallofSTRANDat62.5%,whileNieetal.estimatedthelowerboundofrecallofPTMineratalittleover50%ontheassumptionthateveryWebpagefromacandidatewebsitehasaparallelpageinanotherlanguage,anassumptionthatobviouslyoverestimatesthecaseNevertheless,lowerrecallratioscanbetoleratedbecausethenumberofpotentialparallelpagesontheWebisverylarge,anditismoreimportanttohaveaminingprocesswithhighprecisionthanhighrecall.Intermofvolume,STRANDhasminedarelativelysmallnumberofparallelpageswhilePTMinerhassuccessfullycollectedlargeamountsofparallelpagedatainEnglish-French,English-Chinese,English-German,etc.,chieﬂybyexploitingcriteriathatcorrespondtomorecommonlyemployedtechniquesoforganizingparallelpagesontheWeb,aswellasthesitecrawlingprocess.Theaboveminingstrategyhasbeenusedinanumberofstudiesper-tainingtodiﬀerentlanguagepairs:MaandLiberman(1999)usedasimilarapproachtoPTMinertomineparallelpagesinGermanandEn-glish,withsomeslightdiﬀerencesintheprocess:thesimilaritybetweenTranslingualMiningfromTextData341theﬁlenamesofcandidatepagesismeasuredbyeditdistance,andtheknowntranslationsaremappedwithsomepositionconstraintwithinthetexts.SimilarapproacheshavebeenusedbyNagataetal.(2001)andYangandLi(2003)tomineEnglish-JapaneseandEnglish-Chineseparallelpages.Resniketal.(2003)havefurtherexploredtheminingofparallelWebpagesfromWebarchives.Theaboveprocessesaredesignedforminingongeneralwebsites.Itispossibletoincorporateadditionalcriteriaaccordingtothespeciﬁcor-ganizationofawebsite.Forexample,paralleltextsonthesamewebsite(e.g.Wikipedia,newswirewebsites)cansharecommonresourcessuchaspictures.Metadatacanalsobeincorporatedindocuments.Theuseofsuchindicationscanfurtherimprovetheminingprocess.Bilingualandmultilingualnewswirewebsitesareacommonsourcefromwhichparalleltextsaremined.Manynewswirepublisherspublisharticlesinseverallanguages,andinmanycases,thearticlesindiﬀerentlanguagesaretranslations.Forexample,ChinaDailypublishescer-tainbilingualnewsarticlesthatarealignedinparagraphs.SomeofthenewsarticlesaretranslatedandpublishedinseverallanguagessuchasChinese,EnglishandFrench.SeveralEuropeannewspapersalsopub-lishsimultaneouslyarticlesinseverallanguages.Thisprovidesaneasywaytocollectparallelnewsarticles.However,thecollectionofparallelnewsarticlesdependsonthespeciﬁcorganizationofeachnewspaper.Insomecases,thereisasystematicschemaofcorrespondence,whileinothercasesnoclearstructuralinformationisavailabletodeterminewhethertwoarticlesareparallel.Inthelattercase,theminedresultisoftencomparabletextsratherthanparalleltexts.WewilldescribesomeattemptsofthiskindinSection5.4.UsingTranslationModelsinCLIRItissafetoassumethatnotallautomaticallyminedWebpagesarestrictlyparallel.Indeed,duringmanualevaluation,itturnsoutthatsomepages,whichpresumablyshouldcontainthesameinformation,arenotparallelincontent:oneofthepagescanbeoutdated,containonlypartoftheinformation,orevenconsistofan“underconstruction”message.Theprecisionandrecallnumbersmentionedearlieraresubjecttohumanjudgment:Ifthecontentsareparallelabovesomethreshold,weconsiderthepagestobeparallelasituationthatislessidealthantheHansardcorpus,especiallyfortaskssuchasfull-textmachinetranslationthatcallforhighqualityparalleltextsfortraining.ForotherlessdemandingtaskssuchasCLIR,however,translationmodelstrainedfromautomaticallycollectedWebpagescanperformvery342MININGTEXTDATAwell.AtranslationmodeltrainedonaparallelcorpuscanbenaturallyintegratedintotheCLIRprocess.GeneralIRcanbeprocessedusingalanguagemodelingapproachasfollows:Score(Q,D)=(cid:9)t∈VP(t|MQ)logP(t|MD)(10.17)whereMQandMDarerespectivelyastatisticallanguagemodelesti-matedforthequeryandthedocument,andVisthevocabulary.NoticethatbothMQandMDaregenerationmodels,i.e.nowordorderorrela-tionshipistakenintoaccount.Suchanapproachisoftencalled“bagofwords”approach.Usingsuchanapproach,translationinCLIRisalsoperformedatthewordlevel:Eachwordistranslatedindependently.Therefore,thesimpleIBMModel1iswidelyused.ForCLIR,eitherthedocumentorthequeryshouldbetranslated.OnecanofcourseuseanMTsystemtotranslatethem.BecausetheWebsearchengineonlyuseswordsandignoreswordorder,MToﬀersmorethanwhatisneeded.Onemayarguethatthisisnotnecessarilyabadthingtohaveatooloﬀeringmorethanrequired.Indeed,intheCLIRexperiments,itisusuallyfoundthatahigh-qualityMTsystemleadstoagoodCLIRresultwhenitisusedtotranslatequeriesordocuments.However,oﬀ-the-shelfMTsystemsalsohaveweaknesses:AnMTsystemchoosesonlyonetranslationword(orexpression)foreachsourceword.Inreality,theremaybemultipletransla-tions.Forexample,“drug”(illegalsubstance)canbetranslatedinto“drogue”or“stup´eﬁant”inFrench.Bylimitingtoonetrans-lation,documentsinFrenchusingtheothertermcannotbefound.ForCLIR,keepingmultipletranslationsforawordisoftenpre-ferred.ThetranslationbyanMTsystemislimitedtothetrue“transla-tions”ofthewordsinaqueryoradocument.InIR,ontheotherhand,itisusuallypreferredtoaddrelatedtermsinthequery(ordocument)toexpandit.Query(ordocument)expansionisacom-monmethodinIRtoincreaseretrievaleﬀectiveness.Byincludingonlytruetranslationwordsinaquerytranslation,CLIRdoesnotbeneﬁtfromqueryexpansion.Itispreferredtoincludealsore-latedtermsinthetargetlanguagewhendoingquerytranslationinCLIR.TheﬁnaltranslationresultbyanMTsystemdoesnotdistinguishthewordsintheirimportance,i.e.allthewordsareun-weighted.TranslingualMiningfromTextData343InIR,theweightingoftermsinthequeryiscrucial,andthetrans-lationprobabilityorweightcangreatlyhelpdistinguishingimpor-tanttermsvs.unimportantones.TheabovereasonshavemotivatedanumberofattemptstodesignCLIRapproacheswithout,orinadditionto,theuseofMTsystems.TheprincipleofCLIRcanbewelldescribedwithinthelanguage-modelingframeworkforIR.Itincludesatranslationofthequeryordocumentmodelasfollows:Score(Q,D)=(cid:9)t∈Vt[(cid:9)s∈VsP(t|s)P(s|MQ)]logP(t|MD)(10.18)Score(Q,D)=(cid:9)t∈VtP(s|MQ)log[(cid:9)t∈VtP(s|t)P(t|MD)](10.19)inwhichVsandVtarerespectivelythevocabularyinsourceandtargetlanguages,andP(s|t)andP(t|s)aretranslationprobability(inIBMmodel1)ofatargetlanguageterm(t)toasourcelanguageterm(s)andviceversa.Inpractice,ratherthanusingthewholevocabularyin(cid:4)s∈VsP(t|s)P(s|MQ)and(cid:4)t∈VtP(s|t)P(t|MD),onecanselectasub-setofthetranslationterms,forexample,thetranslationtermswhosetranslationprobabilityishigherthanathreshold,ortheNbesttransla-tiontermsforthequery.DiﬀerentfromgeneralMT,queryordocumenttranslationinCLIRusuallyselectsmultipletranslationwords(ratherthanthebestone),therebyproducingadesiredexpansioneﬀect.Inaddition,thetranslationprobabilityisusedexplicitlytodeterminetermweightingfortheretrievalprocess.TheuseofautomaticallyminedparallelcorporainCLIRhasbeensuccessful.InanearlyexperimentonCLIR,Nieetal.(1999)reportedthatusingtheWebcorpus,theCLIReﬀectivenessisverysimilartous-ingtheHansardcorpus.Furtherexperiments(Kraaijetal.2003)haveshownthatCLIRusingtheWebparallelcorpusoutperformsmethodsthatuseanexistingdictionary-basedMTsystem-Systran.TheseresultsindicatethatCLIRdoesnotrequireashighqualitycorporafortrainingtranslationmodels.Anoisycorpuscanbeaseﬀectiveasamanuallycompiledhigh-qualitycorpus.Inaddition,aqueryordocumenttrans-lationproperlyincorporatedintotheretrievalmodel(asEquations2.16and2.17)isabettersolutionthanusinganMTsystemasanindividualtool,separatedfromtheretrievalmodel.344MININGTEXTDATA5.CollectingandExploitingComparableTextsThesuccessofusinganoisyparallelcorpusinCLIRindicatesthatonecantoleratecertainnoiseinthetextdatausedformodeltraining.Towhatextentistheprocesstoleranttonoise?Thereisnoclearanswertothisquestion,butthereisaseriesofexperimentsusingcomparabletextsforCLIR,whichhaveshownencouragingresults:comparabletextsaregoodcomplementstoothertranslationresources.Ingeneral,comparabletextsaredeﬁnedastextsthatarenotneces-sarilyparallel,butdescribethesameevent.Otherterminologiesarealsoused.FungandCheung(2004)deﬁnedquasi-comparableandcompara-bledocumentsbecausetheywerewrittenindependentlybutonmoreorlessthesametopic.Noisy-paralleldocumentsrefertoapairofsourceandtranslateddocumentsthatwereeitheradaptedorevolvedindiﬀer-entwayssuchasWikipediaarticles.Thereareindeedavarietyofcom-parabletextswithdiﬀerentdegreesofrelatedness.Fung(1995)considersacontinuumfromparallel,comparabletounrelatedtexts.BrashchlerandScha¨uble(1998)deﬁnedthefollowinglevelsofrelatedness:1Samestory:Thetwodocumentsdealwiththesameevent.2Relatedstory:Thetwodocumentsdealwiththesameeventortopicfromslightlydiﬀerentviewpoints.Oroneofthemdealswiththetopicfromabroaderstory.3Sharedaspect:Thedocumentsdealwithrelatedevents.Theymaysharelocationsorpersons.4Commonterminology:Theeventsortopicsarenotdirectlyre-lated,butthedocumentsshareaconsiderableamountoftermi-nology.5Unrelated:Thesimilaritiesbetweenthedocumentsareslightornonexistent.Dependingontheprocessused,diﬀerenttypesofcomparabletextscanbecollected.Ingeneral,thefollowingindicatorscanbeusedtodeterminecomparabletextsfromawebsite,especiallyfromanewswire:Thepublicationdatesoftwocomparabletextsshouldbethesameorclose;Somearticlesincorporatemetadatatodescribethecontentcate-gories,inwhichcase,thecategoryofthecomparabletextsshouldbethesame;TranslingualMiningfromTextData345Thefactthattwotextscontainlinkstothesameobjects(e.g.pictures)increasesthechancethatthetextsareaboutthesameevent;Althoughonecannotexpectexactmutualtranslationatsentencelevelbetweencomparabletexts,themainvocabularyshouldbetranslatableandthiscanbeveriﬁedusingasimpleresourcesuchasabilingualdictionary;Thetextsmaycontainsimilarspecialelements:namedentities–theytalkaboutthesamepersonsanddescribeeventsofthesamedates,ordomain-speciﬁcwordsandtheirtranslations;UsingaCLIRmethod,onecanformaquerywithasourcelanguagetext,andretrieveasetofpotentialcomparabletextsinthetargetlanguage.SheridanandBallerini(1996)areamongtheﬁrsttoexploitcomparabletextsforCLIR.TheyminednewspaperarticlesinGermanandItal-ianfromthewebsiteofSchweizerischeDepeschenagentur(SDA)usingcontentdescriptormetadataandpublicationdates.Intheirstudy,BrashchlerandScha¨uble(1998)“translated”thenamedentitiesaswellaswordsfromthesourcelanguagetext,andusedthetranslationtoretrievecomparabletexts.Theirevaluationrevealedthatabout60%ofthetextsminedaredocumentsthatshareoneormoreevents,and75%ofthemshareacommonterminology.TheminedtextshavebeenusedinaCLIRtask,leadingtoaretrievalresultonlyslightlyworsethanthebestparticipantsinTREC-7.Similarapproacheshavebeenusedinotherstudies(e.g.Talvensaarietal,2006,Talvensaari2007,Huangetal.2010).Huangetal(2010)investigatedthetransla-tionofkeytermsintheaboveprocess:Notonlysingle-wordtermsbutalsomulti-wordtermsareextractedfromthesource-languagedocumentandtranslated.Bydoingso,theyreducedthetranslationambiguity,andproducedmoreprecisedescriptioninthetargetlanguage.InsteadofusingthetranslatedtermsinaCLIRprocesstominecom-parabletexts,inseveralstudies,thefrequenciesandranksofthesourcetermsandtheirtranslationshavealsobeenused.FungandLo(1998),FungandCheng(2004)andCarpuatetal.(2006)usedadiﬀerentap-proachtoaligncomparabletexts.Theyuseasetofseedwords,forwhichthetranslationsareknown.Seedwordsinsource-andtarget-languagetextsareextractedandtheirfrequenciesarecompared.Itisassumedthattheseedwordsshouldbecomparableintheirfrequencyranks.Taoetal.(2005)usedamoreelaboratedmethodbasedonPearsoncorrela-346MININGTEXTDATAtion:wordsandtheirknowntranslationsinapairofcomparabletextsshouldhaveastrongcorrelationintheirranks.Theminedcomparabletextscanbeusedtoderiveageneralbilinguallexicon(Rapp,1995)orfortranslationsofspeciﬁcnamedentities(Fung,1995,Ji,2009).Ingeneral,itismorediﬃculttotrainatranslationmodelusingcomparabletextsthanusingparalleltexts.Alessstrictbilingualtermsimilarityisdeterminedinstead.Theprincipleisanalogoustowordco-occurrenceanalysisinmonolingualtexts:twotermsindiﬀerentlanguageshaveastrongtranslingualrelationshipiftheyco-occuroftenincomparabletextsinrespectivelanguages.Thefollowingformula(orsomevariants)canbeused:sim(ws,wt)=coocc(ws,wt)Z(10.20)wherewsandwtaresourceandtargetwords,coocc(ws,wt)isamea-sureoftheirco-occurrenceandZanormalizationfactor.coocc(ws,wt)cantakediﬀerentforms:thenumberofpairsofcomparabledocumentswhichcontainthetwowordsrespectively,theminimalfrequencyofthetwotermsintherespectivedocument,orsometransformedmeasurebasedonthese.Asnotallthewordsinthesourcedocumenthavetheirtranslationsinthetargetdocument,thetranslingualrelationshipscanbebuiltuponlyforthemostfrequentwords,orfornamedentities(Fung,1995,Ji,2009).Needlesstosay,thetranslingualrelationshipsaremuchlessprecisethanthoseextractedfromtrulyparalleltexts.Therearetwomainreasons:Thecomparabletextsarenoisierbynature.Apairofcompa-rabledocumentsisnotmutualtranslation,andtherelationshipsbetweentermsextractedfromthemaremoretranslingualrelatedthantranslationrelations.Asnoprocesssimilartosentencealignmentonparalleltextscanbeperformed,itisusuallyassumedthatawordinadocumentcorre-spondstoanywordinthedocumentinanotherlanguage.Inotherwords,thecorrespondenceisnotboundwithinasmallerportionoftextthantheentiredocument.Thetranslingualrelationshipsextractedareverynoisy.ThetranslingualrelationshipscanbehardlyusedaloneforMT.Atbest,itcanbeusedtocomplementothertranslationresources.ForCLIR,thenoisytranslingualrelationshipsextractedfromcomparablecorporahavebeenfoundtoperformquitewell(BraschlerandSha¨uble,1998)indicat-ingthattheutilityofcomparabletexts,whenexploitedinasimplemanner,islimitedtolessdemandingtaskssuchasCLIR.TranslingualMiningfromTextData347Analternativeapproachtoexploitingaparallel/comparablecorpusispseudo-relevancefeedback(Carbonelletal.1997):Useaqueryinthesourcelanguagetoretrieveasetoftextsintheparallel/comparablecorpus.Onecanthenselectthesetofcorrespondingtextsinthetar-getlanguage,fromwhichasetoftermscanbeextracted.Theselatterconstitutea“translation”oftheoriginalquery.Asonemaynotice,thisapproachissimilartothoseontranslingualtermsimilarity.However,thediﬀerenceisthat,ratherthandeterminingthetranslingualrelationsbetweenindividualterms,thisapproachdeterminesatranslingualrela-tionbetweensetsofterms.Thereispotentiallyalargereﬀectoflocalcontext(XuandCroft1996).Anotherapproachistoconstructanewrepresentationspacetowhichtermsinbothlanguagescanbemapped.CLIRusingLatentSemanticIndexing(Dumaisetal.1997)exploitsthisprinciple:parallel(compa-rable)textsareconcatenatedforformacomposeddocument;Alatentrepresentationspaceiscreatedandimplicittranslationisgeneratedbymappingaterm,adocumentoraqueryintothenewspace.OnecanalsouseagenerativetopicmodelinsteadofLSI.Inadditiontotheabovemethods,comparabletextscanbeexploitedinamorereﬁnedmannerbyextractingasubsetofstronglycompa-rableorparallelparts(sentences)fromthem.Wewilldescribetheseapproachesinthenextsection.6.SelectingParallelSentences,PhrasesandTranslationWordsTheminingapproachesdescribedintheprevioussectionsallrelyonheuristicsrelatingtotheorganizationandothercharacteristicsofparal-lelWebpages.Sincesomeoftheminingresultsarelikelytonon-parallel,oronlypartiallyparallelitispertinenttoaskwhetheritispossibleandbeneﬁcialtocleantheminedresultsinordertominimizenoise.Therehavebeenanumberofattemptstoextractasubsetofhighqualityparalleltextsorsentencesfromacorpusthathasbeeninitiallyminedbysomeothermeans.AnoriginalcorpuscanbeextractedbyanapplicationsuchasPTMinerorSTRAND.OritmighttaketheformasetofcomparabletextsmindedfromanewswireWebsite.Evenwiththetrulyparallelcorpora,acertainﬁlteringismade.Infact,beforetranslationmodelsaretrainedonasetofparalleltexts,thesentencesinthetextsarealigned(GaleandChurch1993)Diﬀerentpatternsofsen-tencesalignmentcanberecognized:0-1or1-0(i.e.asentenceisalignedwithnosentence),1-1(onesentenceisalignedwithonesentence),1-2or2-1,andsoforth.Ithasbeenobservedthaterrors(i.e.non-parallel348MININGTEXTDATAsentences)mostoftenappearinalignmentsotherthan1-1.Forexample,1-0or0-1alignmentsmaybeduetoinsertionanddeletionduringthemanualtranslation.Therefore,asimpleﬁlteringprocessistouseonly1-1alignedsentencepairsformodeltraining.Itisalsopossibletocleanupaninitialparallelcorpususingotherheuristics.InNieandCai(2001),thefollowingcriteriaareusedtoﬁlterthedataextractedbyPTMiner:Thelengthratioofthetextpairshouldbeclosetothestandardlengthratioofthetwolanguages;Theproportionofthe1-1alignmentsofatextpairshouldbehigh;Arelativelylargepercentageofthetermsshouldbetranslatableintotermsofanothertextusingadictionary.Anytextpairthatdoesnotcomplywiththeseconditionsisremovedfromthecorpus.TheexperimentsofNieandCaishowthatacombina-tionoftheabovecriteriacaneﬀectivelyremovesomenon-paralleltextsandretraintheparallelones.TheyalsoobservethattranslationmodelstrainedontheresultingcleanedcorpusminedbyPTMinerareofhigherquality,andaremoreeﬀectivewhenusedinCLIR.WhileNieandCai’sstudysoughttoﬁlteroutnon-paralleldocumentsfromthecorpus,otherresearchershaveattemptedtoextractparallelsentencesmoredirectlyfromcomparablecorpora.MunteanuandMarcu(2005)usethefollowingprocesstoextractparallelsentencesinChinese,Arabic,andEnglish:1).Candidatedocumentpairsareﬁrstselectedusingtheirpublicationdates(withinadatewindowof5days).2).CandidatesentencepairsfromthepaireddocumentsareselectedusingcriteriasimilartothoseusedbyNieandCai(2001),i.e.sentencelengthratioandpercentageoftermsthatcanbetranslatedinanothersentenceusingadictionary.3).Finally,amaximumentropyclassiﬁerisusedtodetermineifthecandidatesentencepairislikelytobeparallel.SimilarmethodshavealsobeentakenbyZhaoandVogel(2002),UtiyamaandIsahara(2003)andHongetal.(2010),whoestimatesentencesimilar-ityvariouslyonthebasisofsentencelengthratio,sentencealignment,IBM-1translationmodelandpercentageofknowntranslationsusingadictionary.Inmanualevaluation,ithasbeenfoundthattheselectedsentencepairscanhaveaprecisionof90%(UtiyamaandIsahara2003).Thesestudiesdemonstratethatselectingasetofparallelsentencesfromacomparablecorpusispossible.TheexperimentsalsoshowedthattheextractedparallelsentencesareusefulforMTinsomecontext:SMTsystemsthatusetheselectedsentencepairsincombinationwithanini-tialsetofparalleltextsgenerallyproduceahigherBLEUscoreinSMTTranslingualMiningfromTextData349experiments.However,whentheseparallelsentencesareusedalone,theperformanceisusuallylowerthanthatofusingtrulyparalleltexts.Severalstudiesuseaniterativeprocesstograduallyselectparallelsen-tencesfromanoisycorpusformodeltraining.FungandLeung(2004)ﬁrstuseabilinguallexicontoselectcomparabletextsandparallelsen-tencesfromtheoriginalsetofdocuments.Theselectedparallelsentencesareusedtotrainatranslationmodel,whichisthenusedtocomplementthebilinguallexiconinasecondroundofdocumentandsentenceselec-tion.FungandLeungreportedaprecisionof67%intheextractionofparallelsentencesusingtheadaptivemethod,24%higherthanabaselinemethodthatonlyusedabilinguallexicon.Thecommonobservationthatword-basedtranslationistooambigu-ousforprecisetranslationledresearcherstoproposephrase-basedmod-els(BallesterosandCroft,1997;Gaoetal.,2001;Gaoetal.,2006;Koehnetal.2003).Inthetranslingualrelationminingtask,likewise,onecangoastepfurtherMunteanuandMarcu(2006)word-alignpairsofcandidatesentencesusingIBMModel1inconjunctionwithadditionalheuristics,andtreatasequenceofsourcelanguagewords(phrase)aspar-alleltoasequenceoftargetlanguagewordsiftheyhaveastrongmutualalignmentscoreThisprincipleisanalogoustothecaseofphrase-basedSMT(Koehnetal.2003),whereasequenceofwordsisconsideredtoformaphraseiftheconstituentwordsaretranslatedintoasequenceofconsecutivewordsinanotherlanguage(seeSection2.2).Again,theresultingtranslationmodelcanbeﬁlteredsoastoremovenoise.Onemaychoosetouseonlythosetranslationswhoseprobabilityishigherthanathreshold(e.g.0.01),ortheNbesttranslationsforeachword.Onecanalsoselecttranslationtermsaccordingtothecontext,i.e.thequerytobetranslated.OnecriterionthathasbeenusedinGaoetal.(2001;2002;2006)andLiuetal.(2005)istoassumethattheresultingsetoftranslationtermsforaqueryshouldbeconsistent,i.e.theyshouldco-occurofteninthetargetlanguage.Applicationofthiscriterioncanremoveunlikelytranslationtermsthatareinconsistentwiththeotherwords(ortheirtranslations)inthequery.Interestedreaderscanrefertothesepapersfordetails.7.MiningTranslingualRelationsFromMonolingualTextsTranslingualknowledgeisbynomeansconﬁnedintextsintwodif-ferentlanguages.Itisbynomeansrarethatonecanﬁndrichtranslin-gualknowledgewithina“monolingualtext”,ormoreprecisely,amostlymonolingualtextthatcontainsglosses(translationsortransliterations)350MININGTEXTDATAinlinedinthetext.Forexample,thefollowingisashorttextinChinese,withpersonalnamesglossedinEnglish.(cid:7135)(cid:12289)(cid:10409)·(cid:19773)(cid:3931)(cid:7468)(ScottHuﬀman)(cid:2748)(cid:2594)(cid:15026)(cid:3931)·(cid:5224)(SteveChang)(cid:13591)(cid:13597)(cid:16403)(cid:16939)(cid:12331)(cid:2264)(cid:6732)(cid:13138)(cid:452)EvenifonedoesnotunderstandthewholeChinesesentence,itispossibletoguessthat(cid:7135)(cid:12289)(cid:10409)·(cid:19773)(cid:3931)(cid:7468)istheChinesetransliterationof“ScottHuﬀman”and(cid:2594)(cid:15026)(cid:3931)·(cid:5224)thetransliterationof“SteveChang”.Thisphenomenonfrequentlyappearsinmany(especiallyAsian)lan-guages,inparticular,whenapersonalnameortechnicaltermcallsforatransliterationortranslationgloss.Betweenlanguageswritteninthesamescript,glossingofnamedentitiesmaynotbenecessary.Indeed,itisseldomnecessaryforapersonalnametobetransliteratedfromoneEuropeanlanguageintoanother.However,whenlanguagesarewrittenincompletelydiﬀerentscripts,transliterationortranslationisusuallynecessary.SinceourpresentfocusisonminingWebdata,wewillnotdiscussthemechanicsoftransliteratingpersonalnames.Ingeneral,rulesorstatisticaltranslationmodelstrainedonasetofnametranslationsareusedtodeterminepossiblecorrespondencesbetweenphonemesintwolanguagesandbetweencharacters/syllablesandphonemes.Interestedreadersmayreferto(Chenetal.2006;Jeongetal.1999;Kuoetal.2006;Lametal.2007;Quetal.2003;Sproatetal.2005)fordetails.Thehugevolumeofdocumentsonthewebcontainingglossesofthekindseenprovidesuswitharichresourceforminingtranslingualknowl-edgeforpersonalandorganizationalnamesandtechnicalterms.Onecommonapproachistomanuallydeﬁneasetofcommonpatternsofglossing.ZhangandVines(2004)identiﬁedthefollowingpatternsinamonolingualtext(identiﬁedhereasthetargetlanguage):...translation(sourceterm)...e.g.(cid:7135)(cid:12289)(cid:10409)·(cid:19773)(cid:3931)(cid:7468)(ScottHuﬀman)...translation,sourceterm...e.g.(cid:13758)(cid:3373)(cid:14561)(cid:7175)(cid:19238)(cid:15996),Citibank,......translation,orsourceterm...e.g.(cid:9612)(cid:3416)(cid:16925)(cid:1145)(cid:1553)(cid:5791)(cid:7920)(cid:13138)(cid:8273)(cid:3515),(cid:6214)LSI...Thesepatternsreﬂectthecommonwaysofspecifyingthecorrespond-ingterms(ortheirglosses)intheiroriginallanguage,especiallywhenfornamesofpersonsandorganizationsandfortechnicalterms.Atypicalminingprocessbasedonmanuallydeﬁnedpatternsrunsasfollows(ZhangandVine,2004):First,givenasourcelanguageterm(English)forwhichtranslationsaresought,thetermisusedasasearchquerytoretrieveChinese(targetlanguage)documents.Thenthepat-ternsareappliedtothesnippetsofthereturnedresultstoidentifytheTranslingualMiningfromTextData351candidatetranslations.Furtheranalysisofthecandidatesallowsselec-tionofthemostfrequentcandidates.Anumberofstudieshaveusedthestrategy(Chengetal.,2004;Caoetal.2007)tominelargenumbersoftranslationrelationsfrommonolingualtextsontheWeb.Additionalminingcriteriacanbeaddedtoretrievemorerelevantcandidatesnippets.Forexample,Zhangetal.(2005)andHuangetal.(2005)addrelatedtargetlanguagetermstothesearchqueryforsnip-pets:Toﬁndatransliterationof“LeoTolstoy”inChinese((cid:2119)(cid:3931).(cid:6280)(cid:4676)(cid:7135)(cid:8992)),ifoneknowsthatthework“WarandPeace”iscloselyconnectedtotheauthor’sname,thentheChineseterms“(cid:6216)(cid:1209)”(war)and“(cid:2748)(cid:5283)”(peace)canbeaddedintothesearchquerytolocatehighlyrelatedsnippets.Ratherthanexploitingasetofpatternstominetranslingualrelation-ships,Chengetal.(2004)triestominerelatedtermsdirectlyfromthesnippetsreturnedbythesearchengine.Onceasetofsnippetsiscol-lected,asimilaritymeasureisusedtoselecttermsthatarerelatedtotheoriginalterm.Figure10.8showsanexampleusingthequery“yahoo”toretrievedocumentsinChinese:Figure10.8.ResultsofsearchforChinesedocumentsusing(cid:256)Yahoo(cid:257)asquery.(from(Chengetal.,2004))ThesnippetresultscontainChinesetermsstronglycorrelatedwith“yahoo”suchas(cid:3959)(cid:6809)(Yahoo!’snameinTaiwan)and(cid:6732)(cid:13138)(search).Un-surprisingly,theextractedtermsaremoreoftenrelatedtermsthantrans-lations,sotheymaynotbeappropriateforuseinfull-texttranslation,butappropriateforlessdemandingapplicationssuchasCLIR(Chengetal2004).TheexperimentsonCLIRshowthattheseglossessupplementexistingdictionaries,andcanreducethenumberofunknownwordsinquerytranslation.Thisminingapproachcanalsoﬁndadditionalgoodtranslationsfortermsthatarealreadycoveredbyanexistingresource.8.MiningusinghyperlinksModernsearchenginesoftenviewananchortextlinkingtoaWebpageasanalternativedescriptionofthepage.WhendiﬀerentanchortextslinktothesameWebpage,thoseanchortextscanbeconsideredstrongly352MININGTEXTDATArelated.Iftheanchortextsareindiﬀerentlanguages,moreover,thenthisrelationshipconstitutesakindoftranslingual/translationalrelationship.Figure10.9,below,showsanchortextsindiﬀerentlanguagespointingtothesameWebpage(www.yahoo.com).Figure10.9.Possiblehyperlinksandanchortextstothewebpagewww.yahoo.com.(from(Luetal.,2004))Thisistheprincipleusedin(Luetal.2004)toextracttranslationsusinganchortexts.Theterms“(cid:19701)(cid:15486)(cid:6732)(cid:13138)(cid:5445)(cid:6910)”,“(cid:13758)(cid:3373)(cid:19701)(cid:15486)”,“yahoo!”,“Yahoo!(cid:618)(cid:600)(cid:556)(cid:627)”,“Yahoo(cid:515)(cid:8012)(cid:13138)(cid:560)(cid:635)(cid:576)(cid:635)”,etc.correspondtodiﬀer-entnamesfor“Yahoo!”indiﬀerentlanguages.Luetal.(2004)pro-posedatranslingualsimilaritymeasuretodeterminerelationshipsbe-tweentermsindiﬀerentlanguages.Thisapproachisparticularlysuitedtominingtranslationsortransliterationsofpropernames(namesofor-ganizationsandcompanies).Itwillﬁnd,forexample,diﬀerenttransliter-ationsof“Sony”insimpliﬁedChinese“(cid:13138)(cid:4716)”andintraditionalChinese“(cid:7136)(cid:2251)”;andtranslationsandtransliterationsof“GeneralElectric”or“GE”insimpliﬁedChinese“(cid:17994)(cid:11096)(cid:11109)(cid:8772)”andinTraditionalChinese“(cid:3959)(cid:5426)”(transliterationof“GE”).MiningonWikipediaisaspecialcaseofhyperlinkmining.WikipediaisincreasinglyusedinCLIRexperimentstoﬁndequivalentexpressionsacrosslanguages,inparticularpropernamesandtechnicalterms.Theencyclopediacontainsnumerousexplicitlinksbetweendiﬀerententriesofthesameentityindiﬀerentlanguagesthatcanbeassumedtobemu-tualtranslations(Gamalloetal.2010)Forexample,“ChangKai-Shek”,“JiangJieshi”,(cid:15035)(cid:1117)(cid:8595)and(cid:15035)(cid:1275)(cid:11811)arethediﬀerentnamesofthesameper-son,andtheyrefertothesamepageonWikipedia.Whilethecoverageprovidedbythisresourceislimited,onecanfurtherextendthemin-ingprocessbyalsoassumingthatarticlesonthesametopicindiﬀerentlanguagesareeither“parallel”orcomparable.ThesecharacteristicsofTranslingualMiningfromTextData353Wikipediahavebeensuccessfullyexploitedtoextracttranslingualrela-tionsbetweenelementsinthetwotextsandusedforCLIR(Potthastetal.2008;Sch¨onhofenetal.2007;Smithetal.2010).9.ConclusionsandDiscussionsTranslationisanessentialcomponentofMTandCLIRSincemanu-allyconstructedresourcesarelimitedincoveragethereisanacuteneedtoacquiretranslingualknowledgeautomatically.Inthischapter,wehavepresentedabroadoverviewofagrowingbodyofworkonminingparalleltexts,parallelsentencesandphrasesontheWeb.Thesestudiesshowthattheminingprocessesthatemployheuristicsbasedontheor-ganizationofparalleltextsandthecharacteristicsofparallelsentences,ortranslationknowledgealreadyavailable(e.g.abilingualdictionary),makeitpossibletoharvestalargeamountofparallelandcomparabletextsontheWeb.Theminedtexts,withoutcleaning,canbetoonoisyfortaskssuchasMT.However,fortaskssuchasCLIR,whichdoesnotalwaysdemandhigh-qualitytexttranslations,parallel/comparablecor-poraminedusingtheseminingapproachescanbedirectlyusedtotrainmodelsorlearntermsimilaritymeasuresforquerytranslation.Exper-imentalresultsshowthatonecanobtainimprovedCLIReﬀectivenesscomparedwithotherresourcessuchasMTandbilingualdictionaries.FormoredemandingtaskslikeconventionaltextMT,reﬁnementscanbeimplementedtoacquiremoreprecisetranslationknowledge,includingﬁlteringoftheminedcorpusitself,andselectionofparallelsentencesorparallelphrasesfromthecorpus.ExperimentswithSMTmodelsindicatethatthesmallerandcleanercorporaobtainedbyﬁlteringdoinfacthelpimprovethetranslationqualityintermsofBLEUscoreandothermetrics.AlthoughfeasibilityandutilityofminingtranslingualknowledgeontheWebisnowwellestablished,muchroomremainsformethodologicalimprovement.Despiteapplicationofﬁlteringtechniques,asigniﬁcantpercentageoftheminedcorporastillcontainnon-paralleldata.SuchcorporamaybeunreliablewhenusedtotrainsophisticatedtranslationmodelsbeyondtheIBM-1modelsemployedinmostCLIRstudies.ForMTpurposes,moreover,itmaybenecessarytofurtherreﬁnetheminingprocessitselfinordertolocatestrictlyparalleltextsandsentences.Ontheotherendofthespectrum,althoughacomparablecorpusisconsid-eredtoonoisytobesuitedtotranslationmodeltrainingapproachestosmoothingthemodelstrainedusingstrictlyparalleltextsandtheonesusingtranslingualtermsimilaritywithlessstrictlymatchedtextsmightbeapplicabletoproduceusefulmodels.354MININGTEXTDATAWhileitispreferabletoextractwell-formedphrasesforgeneralMTtasks,therequirementsforothertaskssuchasCLIRmaybelessstrin-gent.Amoreﬂexiblephrase-basedquerytranslationmodelmaywellbeapplicable,inwhich,forexample,contextisprovidedbypairsofqueryterms,withoneworddeﬁningacontextforthetranslationoftheothereventhoughthetwowordsthemselvesmaynotformasinglephrase.Paralleltextsareessentialtotranslation,andidentifyingtranslingualresourcesremainsaprimarygoalofminingparalleltextsontheWeb.Butparallelismneednotbeviewedaslimitedtocasesinvolvingdiﬀerentlanguages.Otherkindsofdatacanalsopotentiallyberegardedaspar-allel.Forexample,twosetsoftextsinthesamelanguagecanbetreatedasparallelandusedtotraina“translation”modeltocapturetherela-tionshipsbetweenelementsinthatlanguage,anapproachthathasbeensuccessfullyusedinmonolingualIR(BurgerandLaﬀerty,1999;Gaoetal.2010).Thisnotioncanbefurtherextendedtominingtrans-mediaknowledge:correspondencesbetweenimagesandtextualannotationscanbeexploitedtogeneratetrans-mediarelationsbetweenvisualfea-turesandwords(Jeonetal.2003;Oumohmedetal.2005).ThesestudiesdemonstratethattheSMTparadigmisapplicableintasksotherthantranslationandhintatthepossibilityofinterestingnewapproachesinotherareas.References[1]Adafre,S.F.anddeRijke,M.(2006).FindingsimilarsentencesacorssmultiplelanguagesinWikipedia.11thConferenceoftheEu-ropeanChapteroftheAssociationforComputationalLinguistics,pp.62–69.[2]Ballesteros,L.andCroft,W.(1997).Phrasaltranslationandqueryexpansiontechniquesforcross-languageinformationretrieval.InProceedingsofSIGIRConf.pp.84-91.[3]Berger,A.andLaﬀerty,J.(1999).Informationretrievalasstatisticaltranslation.InProceedingsofSIGIRConf.,pp.222-229.[4]Braschler,M.,andSch¨auble,P.(1998).Multilingualinformationretrievalbasedondocumentalignmenttechniques.ECDL’98:Pro-ceedingsoftheSecondEuropeanConferenceonResearchandAd-vancedTechnologyforDigitalLibraries,pp.183–197.[5]Braschler,M.,andSch¨auble,P.(2001).ExperimentswiththeEu-rospiderRetrievalSystemforCLEF2000,inProceedingsofCLEFConference.pp.140-148.TranslingualMiningfromTextData355[6]Brown,P.,DellaPietra,S.,DellaPietra,V.,andMercer,R.(1993).Themathematicsofstatisticalmachinetranslation:Parameteres-timation.ComputationalLinguistics,19(2),pp.263-311.[7]Cao,G.,Gao,J.,Nie,J.Y.(2007)Asystemtominelarge-scalebilingualdictionariesfrommonolingualWebpages,MTSummit,pp.57-64.[8]Carbonell,J.G,Yang,Y,Frederking,R.E.,Brown,R.,Geng,Y.andLee,D.(1997)Translingualinformationretrieval:Acomparativeevaluation.In:ProceedingsoftheInternationalJointConferenceonArti?cialIntelligence(IJCAI’97).[9]Chiang,D.,(2005)AHierarchicalPhrase-BasedModelforStatis-ticalMachineTranslation.ACL.[10]Chen,J.,Nie,J.Y.,(2000)AutomaticconstructionofparallelEnglish-Chinesecorpusforcross-languageinformationretrieval.ANLPpp.21-28[11]Chen,H.H.,Lin,W.C.andYang,C.H.(2006).Translation-TransliteratingNamedEntitiesforMultilingualInformationAc-cess.JournaloftheAmericanSocietyforInformationScienceandTechnology,57(5):645-659[12]Cheng,P.,Teng,J.,Chen,R.,Wang,J.,Lu,W.,andChien,L.(2004).TranslatingUnknownQuerieswithWebCorporaforCross-LanguageInformationRetrieval.InProceedingsofSIGIRConf.,pp.162-169.[13]Dumais,S.T.,Letsche,T.A.,Littman,M.L.andLandauer,T.K.(1997)Automaticcross-languageretrievalusingLatentSemanticIndexing.AAAISpringSymposuimonCross-LanguageTextandSpeechRetrieval,March1997.[14]Franz,M.,McCarley,J.S.andKoukos,S.(1999)Adhocandmul-tilingualinformationretrievalatIBM.ProceedingsoftheSeventhTextRetrievalConference(TREC-7),pp.157–168.[15]Fung,P.(1995).APatternMatchingMethodforFindingNounandProperNounTranslationsfromNoisyParallelCorpora.ProceedingsoftheAssociationforComputationalLinguistics,pp.236-243.[16]PascaleFungandYuenYeeLo.1998.AnIRapproachfortranslat-ingnewwordsfromnonparallel,comparabletexts.ProceedingsofCOLING-ACL98,pp.414–420.[17]Fung,P.andMcKeown,K.(1997)Findingterminologytranslationsfromnon-parallelcorpora.In:The5thAnnualWorkshoponVeryLargeCorpora.356MININGTEXTDATA[18]Fung,P.andCheung,P.(2004)Multilevelboot-strappingforex-tractingparallelsentencesfromaquasiparallelcorpus.ConferenceonEmpiricalMethodsinNaturalLanguageProcessing(EMNLP04),pp.1051–1057.[19]Gale,W.A.,ChurchK.W.1993.AProgramforAligningSentencesinBilingualCorpora.ComputationalLinguistics,19(3):75-102.[20]Galley,M.,Hopkins,M.,Knight,K.,Marcu,D.,(2004)What’sinatranslationrule?HLT-NAACL,pp.273-280[21]PabloGamalloOtero,IsaacGonzalezLopez,(2009)WikipediaasMultilingualSourceofComparableCorpora,Proceedingsofthe3rdWorkshoponBuildingandUsingComparableCorpora,LREC2010,pp.21–25[22]Gao,J.,Nie,J.Y.,Xun,E.,Zhang,J.,Zhou,M.,andHuang,C.(2001).Improvingquerytranslationforcross-languageinformationretrievalusingstatisticalmodels.InProceedingsofSIGIRConf.,pp.96-104.[23]Gao,J.,Zhou,M.,Nie,J.Y.,He,H.,Chen,W.(2002)Resolvingquerytranslationambiguityusingadecayingco-occurrencemodelandsyntacticdependencerelations.SIGIR,pp.183-190[24]Gao,J.,Nie,J.Y.(2006)StudyofStatisticalModelsforQueryTranslation:FindingaGoodUnitofTranslation.SIGIR,pp194-201,2006.[25]Gao,J.,He,X.,Nie.J.Y.(2010)Clickthrough-basedtranslationmodelsforwebsearch:fromwordmodelstophrasemodels.CIKM,pp1139-1148,2010.[26]Hong,Gumwon,Li,Chi-Ho,Zhou,MingandRim,Hae-Chang(2010)AnEmpiricalStudyonWebMiningofParallelData,COL-ING,pp.474–482.[27]Huang,Degen,Zhao,Lian,Li,LishuangYu,Haitao(2010)Min-ingLarge-scaleComparableCorporafromChinese-EnglishNewsCollections,COLING,pp.472-480.[28]Huang,F.,Zhang,Y.,andVogel,S.(2005).MiningKeyPhraseTranslationsfromWebCorpora.InProceedingsofHLT-EMNLPConf.,pp.483-490.[29]Jeon,J.Lavrenko,V.andManmatha,R.(2003)AutomaticImageAnnotationandRetrievalusingCross-MediaRelevanceModels,SI-GIR,pp.119-126.[30]Jeong,K.S.,Myaeng,S.H.,Lee,J.S,andChoi,K.S.,(1999)Auto-maticidentiﬁcationandback-transliterationofforeignwordsforTranslingualMiningfromTextData357informationretrieval,InformationProcessingandManagement,35(4),pp.523-540.[31]Ji,Heng(2009)MiningNameTranslationsfromComparableCor-porabyCreatingBilingualInformationNetworks,Proceedingsofthe2ndWorkshoponBuildingandUsingComparableCorpora,ACL-IJCNLP2009,pages34–37.[32]Koehn,P.,Och,F.J.,Marcus,D.,(2003)Statisticalphrase-basedtranslation,InProceedingsofHLT-NAACL,pp.48-54.[33]Koehn,P.(2009)StatisticalMachineTranslation.CambridgeUni-versityPress.[34]Kraaij,W.,Nie,J.Y.,andSimard,M.(2003).EmbeddingWeb-BasedStatisticalTranslationModelsinCross-LanguageInforma-tionRetrieval.ComputationalLinguistics,29(3):381-420.[35]Kumano,T.andTanaka,H.,Tokunaga,T.(2007)Extractingphrasalalignmentsfromcomparablecorporabyusingjointprob-abilitySMTmodel.11thInternationalConferenceonTheoreticalandMethodologicalIssuesinMachineTranslation(TMI’07).[36]Kuo,J.S.,Li,H.,andYangY.K(2006).LearningTranslitera-tionLexiconfromtheWeb.IntheProceedingsofCOLING/ACL,pp.1129-1136[37]Lam,W.,Chan,S.K.,andHuang,R.(2007).NamedEntityTransla-tionMatchingandLearning:WithApplicationforMiningUnseenTranslations.ACMTransactionsonInformationSystems,25(1),pp.[38]Liu,Y.,JinR.andChai,JoyceY.(2005).Amaximumcoherencemodelfordictionary-basedcross-languageinformationretrieval,InProceedingsofSIGIRconf.,pp.536-543.[39]Lu,W.Chien,L.F.andLee,H.(2004).AnchorTextMiningforTranslationofWebQueries:ATransitiveTranslationApproach.ACMTransactionsonInformationSystems,Vol.22,pp.242-269.[40]Ma,X.andLiberman,M.,(1999).Bits:AMethodforBilingualTextSearchovertheWeb.ProceedingsofMachineTranslationSummitVII.[41]Munteanu,D.S.,Marcu,D.(2005)ImprovingMachineTranslationPerformancebyExploitingNon-ParallelCorpora.2005.Computa-tionalLinguistics.31(4).pp:477-504.[42]Munteanu,D.S.andMarcuD.(2006).Extractingparallelsub-sententialfragmentsfromnon-parallelcorpora.ACL,pp.81–88.358MININGTEXTDATA[43]Nagata,M.,Saito,T.,andSuzuki,K.(2001).Usingthewebasabilingualdictionary.InProceedingsoftheWorkshoponData-DrivenMethodsinMachineTranslation(withACLConf.),pp.1-8.[44]Nie,J.Y.,Cai,J.(2001)Filteringparallelcorporaofwebpages,IEEEsymposiumonNLPandKnowledgeEngineering,pp.453-458.[45]Nie,J.Y.,Simard,M.,Isabelle,P.,Durand,R.(1999)Cross-LanguageInformationRetrievalbasedonParallelTextsandAuto-maticMiningofParallelTextsintheWeb,InProceedingsofSIGIRConf.,pp.74-81[46]Och,F.,andNey,H.(2002)DiscriminativeTrainingandMaximumEntropyModelsforStatisticalMachineTranslation.ACL,pp.295-302[47]Och,F.(2003).Minimumerrorratetraininginstatisticalmachinetranslation.InProceedingsofACL.pp.160-67[48]Oumohmed,A.I.,Mignotte,M.,Nie,J.Y.(2005)Semantic-BasedCross-MediaImageRetrieval,PatternRecognitionandImageAnal-ysis:ThirdInternationalConferenceonAdvancesinPatternRecog-nition(ICAPR),LNCS3687,pp.414-423.[49]Potthast,M.,Stein,B.,Anderka,M.(2008)AWikipedia-basedMultilingualRetrievalModel.ECIR,LNCS4956,pp.522–530.[50]Qu,Y.,Grefenstette,G.,andEvans,D.A.(2003).AutomatictransliterationforJapanese-to-Englishtextretrieval.InProceedingsofSIGIRConference,pp.353-360.[51]Rapp,R.(1995).IdentifyingWordTranslationsinNon-ParallelTexts.Proceedingsofthe33rdAnnualMeetingoftheAssociationforComputationalLinguistics,pp.320-322.[52]Resnik,P.,(1999)MiningtheWebforBilingualText,37thAnnualMeetingoftheAssociationforComputationalLinguistics(ACL’99).[53]ResnikP.andSmith.N.A.(2003)TheWebasaParallelCorpus,ComputationalLinguistics,29(3),pp.349-380,September2003.[54]Sheridan,P.andBallerini,J.P.(1996).ExperimentsinmultilingualinformationretrievalusingtheSPIDERsystem.InProceedingsofSIGIRConf.,pp.58-65.[55]Sch¨onhofen,P.,Bencz´ur,A.,B´ır´o,I.,Csa-log´any,K.(2007)Performingcross-languagere-trievalwithWikipedia,CLEF-2007(http://www.clef-campaign.org/2007/workingnotes/schonhofenCLEF2007.pdf)TranslingualMiningfromTextData359[56]Shi,L.,Niu,C.,Zhou,M.,andGao,J.(2006)ADOMTreeAlign-mentModelforMiningParallelDatafromtheWeb,ACL,pp.489-496.[57]Smith,J.R.,Quirk,C.,andToutanova,K.(2010)Extractingparal-lelsentencesfromcomparablecorporausingdocumentlevelalign-ment.HLT,pp.403–411[58]Sproat,R.,Tao,T.,Zhai,C.(2006)NamedEntityTransliterationwithComparableCorpora.InProceedingsofACL.[59]TuomasTalvensaari,JormaLaurikkala,KalervoJ¨arvelin,MarttiJuhola(2006)Astudyonautomaticcreationofacomparabledoc-umentcollectionincross-languageinformationretrieval,JournalofDocumentation,Vol.62No.3,pp.372-387[60]TuomasTalvensaari,JormaLaurikkala,KalervoJ¨arvelin,MarttiJuhola,andHeikkiKeskustalo(2007).Creatingandexploitingacomparablecorpusincross-languageinformationretrieval.ACMTrans.Inf.Syst.25,1,Article4.[61]UtiyamaM.andIsahara,H.(2003)ReliableMeasuresforAligningJapanese-EnglishNewsArticlesandSentences.ACL,pp.72–79.[62]JinxiXu,W.BruceCroft(1996)QueryExpansionUsingLocalandGlobalDocumentAnalysis.SIGIR,pp.4-11[63]Yang,ChristopherC.,andKarWingLi.2003.Automaticconstruc-tionofEnglish/Chineseparallelcorpora.JournaloftheAmericanSocietyforInformationScienceandTechnology,54(8),pp.730–742.[64]Zhang,Y.andVines,P.(2004).UsingtheWebforAutomatedTranslationExtractioninCross-LanguageInformationRetrieval.InProceedingsofSIGIRConf.,pp.162-169.[65]Zhang,Y.,Huang,F.,Vogel,S.(2005)MiningTranslationsofOOVTermsfromtheWebthroughCross-lingualQueryExpansion,SI-GIR,pp.669-670.[66]Zhao,B.,andVogel,S.(2002).AdaptiveParallelSentencesMin-ingfromWebBilingualNewsCollection.InProceedingsofIEEEinternationalconferenceondatamining,pages745-750.    C.C. Aggarwal and C.X. Zhai (eds.), Mining Text Data, DOI 10.1007/978-1-4614-3223-4_11,

Chapter11TEXTMININGINMULTIMEDIAZheng-JunZhaSchoolofComputing,NationalUniversityofSingaporezhazj@comp.nus.edu.sgMengWangSchoolofComputing,NationalUniversityofSingaporewangm@comp.nus.edu.sgJialieShenSingaporeManagementUniversityjlshen@smu.edu.sgTat-SengChuaSchoolofComputing,NationalUniversityofSingaporechuats@comp.nus.edu.sgAbstractAlargeamountofmultimediadata(e.g.,imageandvideo)isnowavail-ableontheWeb.Amultimediaentitydoesnotappearinisolation,butisaccompaniedbyvariousformsofmetadata,suchassurround-ingtext,usertags,ratings,andcommentsetc.Miningthesetextualmetadatahasbeenfoundtobeeﬀectiveinfacilitatingmultimediain-formationprocessingandmanagement.Awealthofresearcheﬀortshasbeendedicatedtotextmininginmultimedia.Thischapterprovidesacomprehensivesurveyofrecentresearcheﬀorts.Speciﬁcally,thesurveyfocusesonfouraspects:(a)surroundingtextmining;(b)tagmining;(c)jointtextandvisualcontentmining;and(d)crosstextandvisualcontentmining.Furthermore,openresearchissuesareidentiﬁedbasedonthecurrentresearcheﬀorts.Keywords:TextMining,Multimedia,SurroundingText,Tagging,SocialNetwork© Springer Science+Business Media, LLC 2012 361 
 
362MININGTEXTDATA(cid:1092)(cid:349)(cid:373)(cid:336)(cid:400)(cid:396)(cid:272)(cid:1089)(cid:919)(cid:346)(cid:410)(cid:410)(cid:393)(cid:855)(cid:876)(cid:876)(cid:449)(cid:449)(cid:449)(cid:856)(cid:272)(cid:258)(cid:396)(cid:400)(cid:373)(cid:258)(cid:336)(cid:460)(cid:856)(cid:272)(cid:381)(cid:373)(cid:876)(cid:449)(cid:393)(cid:882)(cid:272)(cid:381)(cid:374)(cid:410)(cid:286)(cid:374)(cid:410)(cid:876)(cid:437)(cid:393)(cid:367)(cid:381)(cid:258)(cid:282)(cid:400)(cid:876)(cid:1006)(cid:1004)(cid:1005)(cid:1005)(cid:876)(cid:1004)(cid:1005)(cid:876)(cid:1006)(cid:1004)(cid:1005)(cid:1005)(cid:882)(cid:62)(cid:258)(cid:373)(cid:271)(cid:381)(cid:396)(cid:336)(cid:346)(cid:349)(cid:374)(cid:349)(cid:882)(cid:39)(cid:258)(cid:367)(cid:367)(cid:258)(cid:396)(cid:282)(cid:381)(cid:882)(cid:62)(cid:87)(cid:1009)(cid:1010)(cid:1004)(cid:882)(cid:1008)(cid:882)(cid:17)(cid:349)(cid:272)(cid:381)(cid:367)(cid:381)(cid:396)(cid:286)(cid:882)(cid:38)(cid:396)(cid:381)(cid:374)(cid:410)(cid:882)(cid:94)(cid:349)(cid:282)(cid:286)(cid:882)(cid:115)(cid:349)(cid:286)(cid:449)(cid:882)(cid:1009)(cid:1011)(cid:1004)(cid:454)(cid:1008)(cid:1004)(cid:1009)(cid:856)(cid:361)(cid:393)(cid:336)(cid:919)(cid:258)(cid:367)(cid:410)(cid:1089)(cid:919)(cid:1006)(cid:1004)(cid:1005)(cid:1005)(cid:62)(cid:258)(cid:373)(cid:271)(cid:381)(cid:396)(cid:336)(cid:346)(cid:349)(cid:374)(cid:349)(cid:39)(cid:258)(cid:367)(cid:367)(cid:258)(cid:396)(cid:282)(cid:381)(cid:62)(cid:87)(cid:1009)(cid:1010)(cid:1004)(cid:882)(cid:1008)(cid:17)(cid:349)(cid:272)(cid:381)(cid:367)(cid:381)(cid:396)(cid:286)(cid:919)(cid:272)(cid:367)(cid:258)(cid:400)(cid:400)(cid:1089)(cid:919)(cid:258)(cid:367)(cid:349)(cid:336)(cid:374)(cid:396)(cid:349)(cid:336)(cid:346)(cid:410)(cid:919)(cid:1093)(cid:87)(cid:258)(cid:336)(cid:286)(cid:100)(cid:349)(cid:410)(cid:367)(cid:286)(cid:94)(cid:437)(cid:396)(cid:396)(cid:381)(cid:437)(cid:374)(cid:282)(cid:349)(cid:374)(cid:336)(cid:100)(cid:286)(cid:454)(cid:410)(cid:94)(cid:437)(cid:396)(cid:396)(cid:381)(cid:437)(cid:374)(cid:282)(cid:349)(cid:374)(cid:336)(cid:100)(cid:286)(cid:454)(cid:410)(cid:4)(cid:367)(cid:410)(cid:410)(cid:286)(cid:454)(cid:410)Figure11.1.IllustrationoftextualmetadataofanembeddedimageinaWebpage.1.IntroductionLowercosthardwareandgrowingcommunicationsinfrastructure(e.g.Web,cellPhones,etc.)haveledtoanexplosionintheavailabilityofubiquitousdevicestoproduce,store,viewandexchangemultimediaen-tities(images,videos).Alargeamountofimageandvideodataarenowavailable.TakeoneofthemostpopularphotosharingservicesFlickr1asexample,ithasaccumulatedseveralbillionsofimages.Anotherex-ampleisYoutube2,whichisavideosharingWebsitethatishostingbillionsofvideos.Asthelargestphotosharingsite,Facebook3currentlystoreshundredsofhundredsofbillionsofphotos.Ontheotherhand,amultimediaentitydoesnotappearinisola-tionbutisaccompaniedbyvariousformsoftextualmetadata.OneofthemosttypicalexamplesisthesurroundingtextappearingaroundtheembeddedimagesorvideosintheWebpage(SeeFigure11.1).Withrecentproliferationofsocialmediasharingservices,thenewlyemerg-ingtextualmeatadataincludeusertags,ratings,comments,aswellas1http://www.ﬂickr.com/2http://www.youtube.com/3http://www.facebook.com/TextMininginMultimedia363(cid:104)(cid:393)(cid:367)(cid:381)(cid:258)(cid:282)(cid:286)(cid:396)(cid:39)(cid:396)(cid:381)(cid:437)(cid:393)(cid:400)(cid:100)(cid:258)(cid:336)(cid:400)(cid:94)(cid:437)(cid:396)(cid:396)(cid:381)(cid:437)(cid:374)(cid:282)(cid:349)(cid:374)(cid:336)(cid:100)(cid:286)(cid:454)(cid:410)(cid:18)(cid:381)(cid:373)(cid:373)(cid:286)(cid:374)(cid:410)(cid:400)Figure11.2.IllustrationoftextualmetadataofanimageonaphotosharingWebsite.theinformationabouttheuploadersandtheirsocialnetwork(SeeFig-ure11.2).Thesemetadata,inparticularthetags,havebeenfoundtobeanimportantresourceforfacilitatingmultimediainformationprocess-ingandmanagement.Giventhewealthofresearcheﬀortsthathasbeendone,therehavebeenvariousstudiesinmultimediacommunityontheminingoftextualmetadata.Inthischapter,amultimediaentityreferstoanimageoravideo.Forthesakeofsimplicityandwithoutlostofgenerality,weusethetermimagetorefertomultimediaentityfortherestofthischapter.Inthischapter,weﬁrstreviewtherelatedworksonminingsurround-ingtextforimageretrievalaswellastherecentresearcheﬀortsthatexploresurroundingtextforimageannotationandclusteringinSec-tion2.InSection3,weprovidealiteraturereviewontagminingandshowthatthemainfocusofexistingtagminingworksincludesthreeas-pects:tagranking,tagreﬁnement,andtaginformationenrichment.In364MININGTEXTDATA(cid:3)Figure11.3.Ataxonomyconsistingoftheresearchworksreviewedinthischapter.Section4,wesurveytherecentprogressinintegratingtextualmetadataandvisualcontent.Wecategorizetheexitingworksintotwocategories:thefusionoftextandvisualcontentaswellasvisualre-ranking.InSection5,weprovideadetaileddiscussiononrecentresearchoncrosstextandvisualcontentmining.WeorganizealltheworksreviewedinthischapterintoataxonomyasshowninFigure11.3.Thetaxonomyprovidesanoverviewofstate-of-the-artresearchandhelpsustoidentifyopenresearchissuestobepresentedinSection6.2.SurroundingTextMiningInordertoenhancethecontentqualityandimproveuserexperience,manyhostingWebpagesincludediﬀerentkindsofmultimediaentities,likeimageorvideo.Thesemultimediaentitiesarefrequentlyembeddedaspartofthetextdescriptionswhichwecalledthesurroundingtext.Whilethereisnostandarddeﬁnition,surroundingtextgenerallyreferstothetextconsistingofwords,phrasesorsentencesthatsurroundsorclosetotheembeddedimages,suchasthosethatappearatthetop,below,leftorrightregionofimagesorconnectedviaWeblinks.Theeﬀectiveuseofsurroundingtextsisbecomingincreasinglyimportantformultimediaretrieval.However,developingeﬀectiveextractionalgo-rithmforthecomprehensiveanalysisofsurroundingtexthasbeenaverychallengingtask.Inmanycases,automaticallydeterminingwhichpageregionismorerelevanttotheimagethantheotherscouldbediﬃcult.Moreover,howlargetheregionnearbyshouldbeconsideredisstillanopenquestion.Further,thequalityofsurroundingtextscouldbelowandinconsistent.Theseproblemsmakeitveryhardtodirectlyapplythesurroundingtextinformationtofacilitateaccurateretrieval.Thus,reﬁnementprocessorcombiningitwithothercuesisessential.Theearliesteﬀortsonmodelingandanalyzingsurroundingtextstofacilitatemultimediaretrievaloccurredinthe1990s.AltaVista’sA/VTextMininginMultimedia365PhotoFinderappliestextualandvisualcuestoindeximagecollec-tions[1].TheindexingtermsareprecomputedbasedontheHTMLdocumentscontainingtheWebimages.Withasimilarapproach,theWebSeersystemharveststheinformationforindexingWebimagesfromtwodiﬀerentsources:therelatedHTMLtextandtheembeddedim-ageitself[12].Itextractskeywordsfrompagetitle,ﬁlename,caption,alternativetext,imagehyperlinks,andbodytexttitles.Aweightiscalculatedforeachkeywordbasedonitslocationinsideapage.InPICITIONsystem[40],aninterestingapproachisdevelopedtoexploitbothtextualandvisualinformationtoindexapictorialdatabase.Imagecaptionsareusedasanimportantcuetoidentifyfacesappearinginarelatednewspaperphotograph.Theempiricalstudybasedonadatasetcontaining50picturesandcaptionsobtainedfromtheBuffaloNewsandtheNewYorkTimesisusedtodemonstratetheeﬀectivenessofthePICITIONsystem.Whilethesystemcanbesuccessfullyadoptedforac-cessingphotographsinnewspaperormagazine,itisnotstraightforwardtoapplyitforWebimageretrieval.In[39],SmithandChangproposedtheWebSeekframeworkdesignedtosearchimagesfromtheWeb.ThekeyideaistoanalyzeandclassifytheWebmultimediaobjectsintoapredeﬁnedtaxonomyofcategories.Thus,aninitialsearchcanbeperformedtoexploreacatalogassociatedwiththequeryterms.Theimageattribute(e.g.,colorhistogramforimages)isthencomputedforsimilaritymatchingwithinthecategory.Besidesitseﬃcacyinimageretrieval,surroundingtexthasbeenex-ploredforimageannotationrecently.Fengetal.presentedaboot-strappingframeworktolabelandsearchWebimagesbasedonasetofpredeﬁnedsemanticconcepts[9].Toachievebetterannotationef-fectiveness,aco-trainingschemeisdesignedtoexploretheassociationbetweenthetextfeaturescomputedusingcorrespondingHTMLdocu-mentsandvisualfeaturesextractedfromimagecontent.ObservingthatthelinksbetweenthevisualcontentandthesurroundingtextscanbemodeledviaWebpageanalysis,anovelmethodcalledIterativeSimi-larityPropagationisproposedtoreﬁnetheclosenessbetweentheWebimagesandtheirannotations[50].Ontheotherhand,itisnothardtoﬁndthatimagesfromthesameclustermaysharemanysimilarchar-acteristicsorpatternswithrespecttorelevancetoinformationneeds.Consequently,accurateclusteringisaverycrucialtechniquetofacili-tateWebmultimediasearchandmanyalgorithmshaverecentlybeenproposedbasedontheanalysisofsurroundingtextsandlowlevelvisualfeatures[3][13][34].Forexample,Caietal.[3]proposedahierarchicalclusteringmethodthatexploitsvisual,textual,andlinkanalysis.Awebpageispartitionedintoblocks,andthetextualandlinkinformation366MININGTEXTDATAofanimageareextractedfromtheblockcontainingthatimage.Byus-ingblock-levellinkanalysistechniques,animagegraphisconstructed.TheythenappliedspectraltechniquestoﬁndaEuclideanembeddingoftheimages.Asaresult,eachimagehasthreetypesofrepresentations:visualfeature,textualfeature,andgraph-basedrepresentation.Spectralclusteringtechniquesareemployedtoclustersearchresultsintovariousclusters.Gaoetal.[13]andRegeetal.[34]usedatripartitegraphtomodeltherelationsamongvisualfeatures,imagesandtheirsurroundingtext.Theclusteringisperformedbypartitioningthistripartitegraph.3.TagMiningInnewlyemergingsocialmediasharingservices,suchastheFlickrandYoutube,usersareencouragedtosharemultimediadataontheWebandannotatecontentwithtags.Hereatagisreferredtoasadescriptivekeywordthatdescribesthemultimediacontentatsemanticorsyntacticlevel.Thesetagshavebeenfoundtobeanimportantre-sourceformultimediamanagementandhavetriggeredmanyinnovativeresearchtopics[61][51][38][36].Forexample,withaccuratetags,there-trievalofmultimediacontentcanbeeasilyaccomplished.Thetagscanbeusedtoindexmultimediadataandsupporteﬃcienttag-basedsearch.Nowadays,manyonlinemediarepositories,suchasFlickrandYoutube,supporttag-basedmultimediasearch.However,sincethetagsarepro-videdbygrassrootsInternetusers,theyareoftennoisyandincompleteandthereisstillagapbetweenthesetagsandtheactualcontentoftheimages[20][26][48].Thisdeﬁciencyhaslimitedtheeﬀectivenessoftag-basedapplications.Recently,awealthofresearchhasbeenproposedtoenhancethequal-ityofhuman-providedtags.Theexistingworksmainlyfocusonthefol-lowingthreeaspects:(a)tagranking,whichaimstodiﬀerentiatethetagsassociatedwiththeimageswithvariouslevelsofrelevance;(b)tagre-ﬁnementwiththepurposetoreﬁnetheunreliablehuman-providedtags;and(c)taginformationenrichment,whichaimstosupplementtagswithadditionalinformation[26].Inthissection,wepresentacomprehensivereviewofexistingtagranking,tagreﬁnement,andtaginformationen-richmentmethods.3.1TagRankingAsshownin[25],therelevancelevelofthetagscannotbedistin-guishedfromthetaglistofanimage.Thelackofrelevanceinformationinthetaglisthaslimitedtheapplicationoftags.Recently,tagrankinghasbeenstudiedtoinfertherelevancelevelsoftagsassociatedwithanTextMininginMultimedia367(cid:133)(cid:131)(cid:150)(cid:3)(cid:146)(cid:151)(cid:149)(cid:149)(cid:155)(cid:3)(cid:141)(cid:139)(cid:150)(cid:150)(cid:155)(cid:3)(cid:131)(cid:144)(cid:139)(cid:143)(cid:131)(cid:142)(cid:3)(cid:138)(cid:131)(cid:150)(cid:3)(cid:132)(cid:148)(cid:145)(cid:153)(cid:144)(cid:23)(cid:148)(cid:139)(cid:146)(cid:3)(cid:137)(cid:131)(cid:148)(cid:3)(cid:131)(cid:151)(cid:150)(cid:145)(cid:143)(cid:145)(cid:132)(cid:139)(cid:142)(cid:135)(cid:3)(cid:4)(cid:151)(cid:149)(cid:150)(cid:148)(cid:131)(cid:142)(cid:139)(cid:131)(cid:131)(cid:151)(cid:150)(cid:145)(cid:3)(cid:152)(cid:135)(cid:138)(cid:139)(cid:133)(cid:142)(cid:135)(cid:3)(cid:137)(cid:148)(cid:131)(cid:149)(cid:149)(cid:3)(cid:146)(cid:142)(cid:131)(cid:144)(cid:150)(cid:3)(cid:149)(cid:141)(cid:155)(cid:3)(cid:133)(cid:131)(cid:150)(cid:3)(cid:134)(cid:135)(cid:142)(cid:135)(cid:150)(cid:135)(cid:143)(cid:135)(cid:3)(cid:132)(cid:135)(cid:149)(cid:150)(cid:3)(cid:132)(cid:131)(cid:132)(cid:155)(cid:3)(cid:150)(cid:145)(cid:146)(cid:3)(cid:149)(cid:145)(cid:149)(cid:150)(cid:148)(cid:139)(cid:146)(cid:3)(cid:131)(cid:151)(cid:150)(cid:145)(cid:3)(cid:4)(cid:151)(cid:149)(cid:150)(cid:148)(cid:131)(cid:142)(cid:139)(cid:131)(cid:3)(cid:143)(cid:135)(cid:3)(cid:134)(cid:148)(cid:139)(cid:152)(cid:139)(cid:144)(cid:137)(cid:3)(cid:149)(cid:141)(cid:155)(cid:3)Figure11.4.Examplesofoftagreﬁnement.Theleftsideoftheﬁgureshowstheoriginaltagswhiletherightsideshowsthereﬁnedtags.Thetechniqueisabletoremoveirrelevanttagsandaddrelevanttagstoobtainbetterdescriptionofmultimediacontents.image.Asapioneeringwork,Liuetal.[25]proposedtoestimatetagrelevancescoresusingkerneldensityestimation,andthenemployran-domwalktoboostthisprimaryestimation.Lietal.[22]proposedadatadrivenmethodfortagranking.Theylearnedtherelevancescoresoftagsbyaneighborhoodvotingapproach.Givenanimageandoneofitsassociatedtag,therelevancescoreislearnedbyaccumulatingthevotesfromthevisualneighborsoftheimage.Theythenextendedtheworktomultiplevisualspaces[23].Theylearnedtherelevancescoresoftagsandrankedthembyneighborhoodvotingindiﬀerentfeaturespaces,andtheresultsareaggregatedwithascorefusionorrankfusionmethod.Diﬀerentaggregationmethodshavebeeninvestigated,suchastheaveragescorefusion,BordacountandRankBoost.TheresultsshowthatasimpleaveragefusionofscoresisalreadyabletoperformclosedtosupervisedfusionmethodslikeRankBoost.3.2TagReﬁnementUser-providedtagsareoftennoisyandincomplete.Thestudyin[20]showsthatwhenatagappearsinaFlickrimage,thereisonlyabouta50%chancethatthetagisreallyrelevant,andthestudyin[38]showsthatmorethanhalfofFlickrimagesareassociatedwithlessthanthreetags.Tagreﬁnementtechnologiesareproposedaimingatobtainingmore368MININGTEXTDATAaccurateandcompletetagsformultimediadescription,asshowninFig-ure11.4.Alotoftagreﬁnementapproacheshavebeendevelopedbasedonvariousstatisticallearningtechniques.Mostofthemarebasedonthefollowingthreeassumptions.Thereﬁnedtagsshouldnotchangetoomuchfromthoseprovidedbytheusers.Thisassumptionisusuallyusedtoregularizethetagreﬁnement.Thetagsofvisuallysimilarimagesshouldbecloselyrelated.Thisisanaturalassumptionthatmostautomatictaggingmethodsarealsobuiltupon.Semanticallycloseorcorrelativetagsshouldappearwithhighcor-relation.Forexample,whenatag“sea”existsforanimage,thetags“beach”and“water”shouldbeassignedwithhigherconﬁ-dencewhilethetag“street”shouldhavelowconﬁdence.Forexample,Chenetal.[6]ﬁrsttrainedaSVMclassiﬁerforeachtagwiththelooselylabeledpositiveandnegativesamples.Theclassiﬁersareusedtoestimatetheinitialrelevancescoresoftags.Theythenreﬁnedthescoreswithagraph-basedmethodthatsimultaneouslyconsidersthesimilaritybetweenimagesandsemanticcorrelationamongtags.Xuetal.[52]proposedatagreﬁnementalgorithmfromtopicmodelingpointofview.AnewgraphicalmodelnamedregularizedlatentDirichletallocation(rLDA)ispresentedtojointlymodelthetagsimilarityandtagrelevance.Zhuetal.[64]proposedamatrixdecompositionmethod.Theyusedamatrixtorepresenttheimage-tagrelationship:the(i,j)-thelementis1ifthei-thimageisassociatedwiththej-thtag,and0otherwise.Thematrixisthendecomposedintoareﬁnedmatrixplusanerrormatrix.Theyenforcedtheerrormatrixtobesparseandthereﬁnedmatrixtofollowthreeprinciples:(a)letthematrixbelow-rank;(b)iftwoimagesarevisuallysimilar,thecorrespondingrowsarewithhighcorrelation;and(c)iftwotagsaresemanticallyclose,thecorrespondingvectorsarewithhighcorrelation.Fanetal.[8]groupedimageswithatargettagintoclusters.Eachclusterisregardedasaunit.Theinitialrelevancescoresoftheclustersareestimatedandthenreﬁnedbyarandomwalkprocess.Liuetal.[24]adoptedathree-stepapproach.Theﬁrststepﬁltersouttagsthatareintrinsicallycontent-unrelatedbasedontheontologyinWordNet.Thesecondstepreﬁnesthetagsbasedontheconsistencyofvisualsimilarityandsemanticsimilarityofimages.Thelaststepperformstagenrichment,whichexpandsthetagswiththeirappropriatesynonymsandhypericum.TextMininginMultimedia369(cid:68)(cid:81)(cid:76)(cid:80)(cid:68)(cid:79)(cid:15)(cid:3)(cid:70)(cid:68)(cid:87)(cid:15)(cid:3)(cid:87)(cid:76)(cid:74)(cid:72)(cid:85)(cid:87)(cid:76)(cid:74)(cid:72)(cid:85)(cid:87)(cid:76)(cid:74)(cid:72)(cid:85)(cid:47)(cid:82)(cid:70)(cid:68)(cid:87)(cid:76)(cid:82)(cid:81)(cid:38)(cid:82)(cid:79)(cid:82)(cid:85)(cid:54)(cid:75)(cid:68)(cid:83)(cid:72)(cid:55)(cid:72)(cid:91)(cid:87)(cid:88)(cid:85)(cid:72)(cid:54)(cid:76)(cid:93)(cid:72)(cid:39)(cid:82)(cid:80)(cid:76)(cid:81)(cid:68)(cid:81)(cid:70)(cid:72)(cid:54)(cid:68)(cid:79)(cid:76)(cid:72)(cid:81)(cid:70)(cid:92)(cid:90)(cid:286)(cid:336)(cid:349)(cid:381)(cid:374)(cid:3)(cid:4)(cid:374)(cid:258)(cid:367)(cid:455)(cid:400)(cid:349)(cid:400)(cid:894)(cid:271)(cid:895)(cid:90)(cid:68)(cid:87)(cid:72)(cid:85)(cid:15)(cid:3)(cid:69)(cid:76)(cid:85)(cid:71)(cid:15)(cid:3)(cid:85)(cid:82)(cid:68)(cid:71)(cid:69)(cid:76)(cid:85)(cid:71)(cid:85)(cid:82)(cid:68)(cid:71)(cid:90)(cid:68)(cid:87)(cid:72)(cid:85)(cid:894)(cid:258)(cid:895)Figure11.5.(a)Anexampleoftaglocalization,whichﬁndstheregionsthatthetagsdescribe.(b)Anillustrationoftaginformationenrichment.Itﬁrstﬁndsthecorrespondingregionofthetargettagandthenanalyzethepropertiesoftheregion.3.3TagInformationEnrichmentInthemanualtaggingprocess,generallyhumanlabelerswillonlyassignappropriatetagstomultimediaentitieswithoutanyadditionalinformation,suchastheimageregionsdepictedbythecorrespondingtags.Butbyemployingcomputervisionandmachinelearningtech-nologies,certaininformationofthetags,suchasthedescriptiveregionsandsaliency,canbeautomaticallyobtained.Werefertotheseastaginformationenrichment.Mostexistingworksemploythefollowingtwostepsfortaginformationenrichment.First,tagsarelocalizedintoregionsofimagesorsub-clipsofvideos.Second,thecharacteristicsoftheregionsorsub-clipsareanalyzed,andtheinformationaboutthetagsisenrichedaccordingly.Figure11.5(a)illustratestheexamplesoftaglocalizationforimageandvideodata.Liuetal.[28]proposedamethodtolocateimagetagstocorrespondingregions.Theyﬁrstperformedover-segmentationtodecomposeeachimageintopatchesandthendiscoveredtherelationshipbetweenpatchesandtagsviasparsecoding.Theover-segmentedregionsarethenmergedtoaccomplishthetag-to-regionprocess.Liuetal.extendedtheapproachbasedonimagesearch[29].Foratagofthetargetimage,theycollectedasetofimagesbyusingthetagasquery370MININGTEXTDATAwithanimagesearchengine.Theythenlearnedtherelationshipbetweenthetagandthepatchesinthisimageset.Theselectedpatchesareusedtoreconstructeachcandidateregion,andthecandidateregionsarerankedbasedonthereconstructionerror.Liuetal.[27]accomplishedthetag-to-regiontaskbyregardinganimageasabagofregionsandthenperformedtagpropagationonagraph,inwhichverticesareimagesandedgesareconstructedbasedonthevisuallinkofregions.Fengetal.[10]proposedatagsaliencylearningscheme,whichisabletoranktagsaccordingtotheirsaliencylevelstoanimage’scontent.Theyﬁrstlocatedtagstoimages’regionswithamulti-instancelearningapproach.Inmulti-instancelearning,animageisregardedasabagofmultipleinstances,i.e.,regions[58].Theythenanalyzedthesaliencyvaluesoftheseregions.Itcanprovidemorecomprehensiveinformationwhenanimageisrelevanttomultipletags,suchasthosedescribingdiﬀerentobjectsintheimage.Yangetal.[55]proposedamethodtoassociateatagwithasetofproperties,includinglocation,color,texture,shape,sizeanddominance.Theyemployedamulti-instancelearningmethodtoestablishtheregionthateachtagiscorrespondingto,andtheregionisthenanalyzedtoestablishtheproperties,asshowninFigure11.5(b).SunandBhowmick[41]deﬁnedatag’svisualrepresentativenessbasedonalargeimagesetandthesubsetthatisassociatedwiththetag.Theyemployedtwodistancemetrics,cohesionandseparation,toestimatethevisualrepresentativenessmeasure.Ulgesetal.[43]proposedanapproachtolocalizevideo-leveltagstokeyframes.Givenatag,itregardswhetherakeyframeisrelevantasalatentrandomvariable.AnEM-styleprocessisthenadoptedtoestimatethevariables.Lietal.[21]employedamulti-instancelearningapproachtoaccomplishthevideotaglocalization,inwhichvideoandshotareregardedasbagandshot,respectively.Bysupplementingtagswithadditionalinformation,alotoftag-basedapplicationscanbefacilitated,suchastag-basedimage/videoretrievalandintelligentvideobrowsingetc.4.JointTextandVisualContentMiningBeyondminingpuretextualmetadata,researchersinmultimediacommunityhavestartedmakingprogressinintegratingtextandcon-tentformultimediaretrievalviajointtextandcontentmining.Thein-tegrationoftextandvisualcontenthasbeenfoundtobemoreeﬀectivethanexploitingpurelytextorvisualcontentseparately.Thejointtextandcontentmininginmultimediaretrievaloftencomesdowntoﬁndingeﬀectivemechanismsforfusingmulti-modalityinformationfromtextualTextMininginMultimedia371metadataandvisualcontent.Existingresearcheﬀortscangenerallybecategorizedintofourparadigms:(a)linearfusion;(b)latent-space-basedfusion;(c)graph-basedfusion;and(d)visualre-rankingthatexploitsvisualinformationtoreﬁnetext-basedretrievalresults.Inthissection,weﬁrstbrieﬂyreviewlinear,latentspacebased,andgraphbasedfusionmethodsandthenprovidecomprehensiveliteraturereviewonvisualre-rankingtechnology.Linearfusioncombinestheretrievalresultsfromvariousmodalitieslinearly[18][4][31].In[18],visualcontentandtextarecombinedinbothonlinelearningstagewithrelevancefeedbackandoﬄinekeywordpropa-gation.In[31],linear,max,andaveragefusionstrategiesareemployedtoaggregatethesearchresultsfromvisualandtextualmodalities.Changetal.[4]adoptedaquery-class-dependentfusionapproach.Thecriti-caltaskinlinearfusionistheestimationoffusionweightsofdiﬀerentmodalities.Acertainamountoftrainingdataisusuallyrequiredforestimatingtheseweights.Thelatentspacebasedfusionassumesthatthereisalatentspacesharedbydiﬀerentmodalitiesandthusunifydif-ferentmodalitiesbytransferringthefeaturesofthesemodalitiesintothesharedlatentspace[63][62].Forexample,Zhaoetal.[63]adoptedtheLatentSemanticIndexing(LSI)methodtofusetextandvisualcontent.Zhangetal.[62]proposedaprobabilisticcontextmodeltoexplicitlyexploitthesynergybetweentextandvisualcontent.Thesynergyisrep-resentedasahiddenlayerbetweentheimageandtextmodalities.Thishiddenlayerconstitutesthesemanticconceptstobeannotatedthroughaprobabilisticframework.AnExpectation-Maximization(EM)basediterativelearningprocedureisdevelopedtodeterminetheconditionalprobabilitiesofthevisualfeaturesandthewordsgivenahiddenconceptclass.Latentspacebasedmethodsusuallyrequirealargeamountoftrainingsamplesforlearningthefeaturemappingfromeachmodalityintotheuniﬁedlatentspace.Graphbasedapproach[49]ﬁrstbuildstherelationsbetweendiﬀerentmodalities,suchasrelationsbetweenimagesandtextusingtheWebpagestructure.Therelationsarethenutilizedtoiterativelyupdatethesimilaritygraphscomputedfromdiﬀerentmodal-ities.ThediﬃcultyofcreatingsimilaritygraphsforbillionsofimagesontheWebmakesthisapproachinsuﬃcientlyscalable.4.1VisualRe-rankingVisualre-rankingisemergingasoneofthepromisingtechniqueforautomatedboostingofretrievalprecision[42][30][55].Thebasicfunc-tionalityistoreordertheretrievedmultimediaentitiestoachievetheoptimalranklistbyexploitingvisualcontentinasecondstep.Inpar-372MININGTEXTDATAticular,givenatextualquery,aninitiallistofmultimediaentitiesisreturnedusingthetext-basedretrievalscheme.Subsequently,themostrelevantresultsaremovedtothetopoftheresultlistwhilethelessrel-evantonesarereorderedtothelowerranks.Assuch,theoverallsearchprecisionatthetoprankscanbeenhanceddramatically.Accordingtothestatisticalanalysismodelused,theexistingre-rankingapproachescanroughlybecategorizedintothreecategoriesincludingtheclusteringbased,classiﬁcationbasedandgraphbasedmethods.Clusteranalysisisveryusefultoestimatetheinter-entitysimilarity.Theclusteringbasedre-rankingmethodsstemfromthekeyobservationthatalotofvisualcharacteristicscanbesharedbyrelevantimagesorvideoclips.Withintelligentclusteringalgorithms(e.g.,mean-shift,K-means,andK-medoids),initialsearchresultsfromtext-basedretrievalcanbegroupedbyvisualcloseness.Onegoodexampleofclusteringbasedre-rankingalgorithmsisanInformationBottlebasedschemede-velopedbyHsuetal.[16].Itsmainobjectiveistoidentifyoptimalclustersofimagesthatcanminimizethelossofmutualinformation.Theclusternumberismanuallyconﬁguratedtoensuretheeachclus-tercontainsthesamenumberofmultimediaentities(about25).ThismethodwasevaluatedusingtheTRECVID2003-2005dataandsignif-icantimprovementswereobservedintermsofMAPmeasures.In[19],afastandaccurateschemeisproposedforgroupingWebimagesearchresultsintosemanticclusters.Foragivenquery,afewrelatedsemanticclustersareidentiﬁedintheﬁrststep.Then,theclusternamesrelatingtoqueryarederivedandusedastextkeywordsforqueryingimagesearchengine.TheempiricalresultsfromasetofuserstudiesdemonstrateanimprovementinperformanceoverGoogleimagesearchresults.Itisnothardtoshowthattheclusteringbasedre-rankingmethodscanworkwellwhentheinitialsearchresultscontainmanynear-duplicatemediadocu-ments.However,forqueriesthatreturnhighlydiverseresultsorwithoutclearvisualpatterns,theperformanceoftheclustering-basedmethodsisnotguaranteed.Furthermore,thenumberofclustershaslargeimpactontheﬁnaleﬀectivenessofthealgorithms.However,determiningtheoptimalclusternumberautomaticallyisstillanopenresearchproblem.Intheclassiﬁcationbasedmethods,visualre-rankingisformulatedasabinaryclassiﬁcationproblemaimingtoidentifywhethereachsearchresultisrelevantornot.Themajorprocessforresultlistreorderingconsistsofthreemajorsteps:(a)theselectionofpseudo-positiveandpseudo-negativesamples;(b)usethesamplesobtainedinstep(a)totrainaclassiﬁcationscheme;and(c)reorderthesamplesaccordingtotheirrelevancescoresgivenbythetrainedclassiﬁer.Forexistingclassiﬁ-cationmethods,pseudorelevancefeedback(PRF)isappliedtoselecttheTextMininginMultimedia373trainingexamples.Itassumesthat:(a)alimitednumberoftop-rankedentitiesintheinitialretrievalresultsarehighlyrelevanttothesearchqueries;and(b)automaticlocalanalysisovertheentitiescanbeveryhelpfultoreﬁnequeryrepresentation.In[54],thequeryimagesorvideoclipexamplesareusedasthepseudo-positivesamples.Thepseudo-negativesamplesareselectedfromeithertheleastrelevantsamplesintheinitialresultlistorthedatabasesthatcontainlesssamplesrelatedtothequery.Thesecondstepoftheclassiﬁcationbasedmethodsaimtotrainclassiﬁersandawiderangeofstatisticalclassiﬁerscanbeadopted.TheyincludetheSupportVectorMachine(SVM)[54],Boosting[53]andListNet[57].Themainweaknessfortheclassiﬁcationbasedmethodsisthatthenumberandqualityoftrainingdatarequiredplayaveryim-portantroleinconstructingeﬀectiveclassiﬁers.However,inmanyrealscenarios,thetrainingexamplesobtainedviaPRFareverynoisyandmightnotbeadequatefortrainingeﬀectiveclassiﬁer.Toaddressthisissue,Fergusetal.[11]usedRANSACtosampleatrainingsubsetwithahighpercentageofrelevantimages.Agenerativeconstellationmodelislearnedforthequerycategorywhileabackgroundmodelislearnedfromthequery“things”.Imagesarere-rankedbasedontheirlikeli-hoodratio.Observingthatdiscriminativelearningcanleadtosuperiorresults,Schroﬀetal.[35]ﬁrstlearnedaqueryindependenttextbasedre-ranker.Thetoprankedresultsfromthetextbasedre-rankingarethenselectedaspositivetrainingexamples.Negativetrainingexamplesarepickedrandomlyfromtheotherqueries.AbinarySVMclassiﬁeristhenusedtore-ranktheresultsonthebasisofvisualfeatures.Thisclassiﬁerisfoundtoberobusttolabelnoiseinthepositivetrainingsetaslongasthenon-relevantimagesarenotvisuallyconsistent.Bettertrainingdatacanbeobtainedfromonlineknowledgeresourcesifthesetofqueriesrestricted.Forinstance,Wangetal.[44]learnedagenerativetextmodelfromthequery’sWikipedia4pageandadiscriminativeim-agemodelfromtheCaltech[15]andFlickrdatasets.Searchresultsarethenre-rankedonthebasisoftheselearnedprobabilitymodels.Someuserinteractionsarerequiredtodisambiguatethequery.Graphsprovideanaturalandcomprehensivewaytoexplorecomplexrelationsbetweendataatdiﬀerentlevelsandhavebeenappliedtoawiderangeofapplications[59][46][47][60].Withthegraphbasedre-rankingmethods,themultimediaentitiesintopranksandtheirassocia-tions/dependenciescanberepresentedasacollectionofnodes(vertices)andedges.Thelocalpatternsorsalientfeaturesdiscoverusinggraph4http://www.wikipedia.org/374MININGTEXTDATAanalysisareveryhelpfultoimproveeﬀectivenessofranklists.In[16],Hsuetal.modeledthere-rankingprocessasarandomwalkoverthecon-textgraph.Inordertoeﬀectivelyleveragetheretrievedresultsfromtextsearch,eachsamplecorrespondstoa“dongle”nodecontainingrankingscorebasedontext.Fortheframework,edgesbetween“dongle”nodesareweightedwithmulti-modalsimilarities.Inmanycases,thestruc-tureoflargescalegraphscanbeverycomplexandthiseasilymakesrelatedanalysisprocessveryexpensiveintermsofcomputationalcost.Thus,JingandBalujaproposedaVisualRankframeworktoeﬃcientlymodelsimilarityofGoogleimagesearchresultswithgraph[17].Theframeworkcaststhere-rankingproblemasrandomwalkonanaﬃnitygraphandreordersimagesaccordingtothevisualsimilarities.Theﬁ-nalresultlistisgeneratedviasortingtheimagesbasedongraphnodes’weights.In[42],Tianetal.,presentedaBayesianvideosearchre-rankingframeworkformulatingthere-rankingprocessasanenergyminimizationproblem.Themaindesigngoalistooptimizetheconsistencyofrank-ingscoresovervisuallysimilarvideosandminimizethedisagreementbetweentheoptimallistandtheinitiallist.ThemethodachievesaconsistentlybetterperformanceoverseveralearlierproposedschemesontheTRECVID2006and2007datasets.Thegraphbasedre-rankingalgorithmsmentionedabovegenerallydonotconsideranyinitialsuper-visioninformation.Thus,theperformanceissigniﬁcantlydependentonthestatisticalpropertiesoftoprankedsearchresults.Motivatedbythisobservation,Wangetal,proposedasemi-supervisedframeworktoreﬁnethetextbasedimageretrievalresultsvialeveragingthedatadis-tributionandthepartialsupervisioninformationobtainedfromthetoprankedimages[45].Indeed,graphanalysishasbeenshowntobeaverypowerfultoolforanalyzingandidentifyingsalientstructureandusefulpatternsinsidethevisualsearchresults.Withrecentprogressesingraphmining,thisresearchstreamisexpectedtocontinuetomakeimportantcontributionstoimprovevisualre-rankingfromdiﬀerentperspectives.5.CrossTextandVisualContentMiningAlthoughthejointtextandvisualcontentminingapproachesde-scribedabovefacilitateimageretrieval,theyrequirethatthetestimageshaveassociatedtextmodality.However,insomerealworldapplications,imagesmaynotalwayshaveassociatedtext.Forexample,mostsurveil-lanceimages/videosinin-houserepositoryarenotaccompaniedwithanytext.EvenonsocialmediaWebsitesuchastheFlickr,thereexistasubstantialnumberofimageswithoutanytags.Insuchcases,jointTextMininginMultimedia375(cid:3)Figure11.6.Anillustrationofdiﬀerenttypesoflearningparadigmsusingimageclassiﬁcation/clusteringinthedomainsofappleandbanana.Adaptedfrom[56].textandvisualcontentminingcannotbeappliedduetomissingtextmodality.Recently,crosstextandvisualcontentmininghasbeenstudiedinthecontextoftransferlearningtechniques.Thisclassoftechniquesempha-sizesthetransferringofknowledgeacrossdiﬀerentdomainsortasks[32].Crosstextandvisualcontentminingdoesnotrequirethatatestimagehasanassociatedtextmodality,andisthusbeneﬁcialtodealingwiththeimageswithoutanytextbypropagatingthesemanticknowledgefromtexttoimages5.Itisalsomotivatedbytwoobservations.First,visualcontentofimagesismuchmorecomplicatedthanthetextfeature.Whilethetextualwordsareeasiertointerpret,thereexistatremendousseman-ticgapbetweenvisualcontentandhigh-levelsemantics.Second,imageunderstandingbecomesparticularlychallengingwhenonlyafewlabeledimagesareavailablefortraining.Thisisacommonchallenge,sinceitisexpensiveandtime-consumingtoobtainlabeledimages.Onthecon-trary,labeled/unlabeledtextdataarerelativelyeasiertocollect.Forexample,millionsofcategorizedtextarticlesarefreelyavailableinWeb5Crosstextandvisualcontentcanalsofacilitatetextunderstandinginspecialcasesbypropagatingknowledgefromimagestotext.376MININGTEXTDATAtextcollections,suchasWikipedia,coveringawiderangeoftopicsfromcultureandarts,geographyandplaces,historyandevents,tonaturalandphysicalscience.AlargenumberofWikipediaarticlesareindexedbythousandsofcategoriesinthesetopics[33].Thisprovidesabundantlabeledtextdata.Thus,itisdesirabletopropagatesemanticknowledgefromtexttoimagestofacilitateimageunderstanding.However,itisnottrivialtotransferknowledgebetweenvariousdomains/tasksduetothefollowingchallenges:Thetargetdatamaybedrawnfromadistributiondiﬀerentfromthesourcedata.Thetargetandsourcedatamaybeindiﬀerentfeaturespaces(e.g.,imageandtext)andtheremaybenocorrespondencebetweeninstancesinthesespaces.Thetargetandsourcetasksmayhavediﬀerentoutputspaces.Whilethetraditionaltransferlearningtechniquesfocusonthedis-tributionvarianceproblem,therecentproposedheterogenoustransferlearningapproachesaimtotackleboththedistributionvarianceandheterogenousfeaturespaceproblems[56][7][65][33],orallthethreechal-lengeslistedabove[37].Figure11.6from[56]presentsanintuitiveillus-trationoffourlearningparadigms,includingtraditionalmachinelearn-ing,transferlearningacrossdiﬀerentdistributions,multi-viewlearningandheterogenoustransferlearning.Aswecansee,heterogenoustrans-ferlearningisusuallymuchmorechallengingduetotheunknowncor-respondenceacrossthedistinctfeaturespaces.Inordertolearntheunderlyingcorrespondenceforknowledgetransformation,a“semanticbridge”isrequired.The“semanticbridge”canbeobtainedfromtheco-occurrenceinformationbetweentextandimagesorthelinkagein-formationinsocialmedianetworks.Forexample,whilethetraditionalwebpagesprovidetheco-occurrenceinformationbetweentextandim-ages,thesocialmediasitescontainalargenumberoflinkedinformationbetweendiﬀerenttypesofentities,suchasthetextarticles,tags,posts,imagesandvideos.Thislinkageinformationprovidea“semanticbridge”tolearntheunderlyingcorrespondence[2].Mostexistingworksexploitthetaginformationthatprovidetext-to-imagelinkinginformation.Asapioneeringwork,Daietal.[7]showedthatsuchinformationcanbeeﬀectivelyleveragedfortransferringknowl-edgebetweentextandimages.Thekeyideaof[7]istoconstructacorrespondencebetweentheimagesandtheauxiliarytextdatawiththeuseoftags.Probabilisticlatentsemanticanalysis(PLSA)modelisemployedtoconstructalatentsemanticspacewhichcanbeusedforTextMininginMultimedia377transferringknowledge.Chenetal.[56]proposedtheconceptofhetero-geneoustransferlearningandappliedittoimproveimageclusteringbyleveragingauxiliarytextdata.Theycollectedannotatedimagesfromthesocialweb,andusedthemtoconstructatexttoimagemapping.ThealgorithmisreferredtoasaPLSA(AnnotatedProbabilisticLa-tentSemanticAnalysis).Thekeyideaistounifytwodiﬀerentkindsoflatentsemanticanalysisinordertocreateabridgebetweenthetextandimages.TheﬁrstkindoftechniqueperformsPLSAanalysisonthetargetimages,whichareconvertedtoanimageinstance-to-featureco-occurrencematrix.ThesecondkindofPLSAisappliedtotheannotatedimagedatafromsocialWeb,whichisconvertedintoatext-to-imagefea-tureco-occurrencematrix.InordertounifythosetwoseparatePLSAmodels,thesetwostepsaredonesimultaneouslywithcommonlatentvariablesusedasabridgelinkingthem.Ithasbeenshownin[5]thatsuchabridgingapproachleadstomuchbetterclusteringresults.Zhuetal.[65]discussedhowtocreatetheconnectionsbetweenimagesandtextwiththeuseoftagdata.Theyshowedhowsuchlinkscanbeusedmoreeﬀectivelyforimageclassiﬁcation.Anadvantageof[65]isthatitexploitsunlabeledtextdatainsteadoflabeledtextasin[7].Incontrasttothesemethodsthatexploittaginformationtolinkim-agesandauxiliarytextarticles,Qietal.[33]proposedtolearna“trans-lator”whichcandirectlyestablishthesemanticcorrespondencebetweentextandimageseveniftheyarenewinstancesoftheimagedatawithun-knowncorrespondencetothetextarticles.Thiscapabilityincreasetheﬂexibilityoftheapproachandmakesitmorewidelyapplicable.Speciﬁ-cally,theycreatedanewtopicspaceintowhichboththetextandimagesaremapped.Atranslatoristhenlearnedtolinktheinstancesacrossheterogeneoustextandimagespaces.Withtheresultanttranslator,thesemanticlabelscanbepropagatedfromanylabeledtextcorpustoanynewimagebyaprocessofcross-domainlabelpropagation.Theyshowedthatthelearnedtranslatorcaneﬀectivelyconvertthesemanticsfromtexttoimages.6.SummaryandOpenIssuesInthischapter,wehavereviewedtheactiveresearchontextmininginmultimediacommunity,includingsurroundingtextmining,tagmining,jointtextandvisualcontentmining,andcrosstextandvisualcontentmining.Althoughresearcheﬀortsinthisﬁledhavemadegreatprogressinvariousaspects,therearestillmanyopenresearchissuesthatneedtobeexplored.Someexamplesarelistedanddiscussedasfollows.378MININGTEXTDATAJointtextandvisualcontentmultimediarankingDespitethesuccessofvisualre-rankinginmultimediaretrieval,visualre-rankingonlyemploysthevisualcontenttoreﬁnetext-basedretrievalresults;visualcontenthasnotbeenusedtoassistinlearningtherank-ingmodelofsearchengine,andsometimesitisonlyabletobringinlimitedperformanceimprovements.Inparticular,iftext-basedrankingmodelisbiasedorover-ﬁtted,re-rankingstepwillsuﬀerfromtheerrorthatispropagatedfromtheinitialresults,andthustheperformanceimprovementwillbenegativelyimpacted.Therefore,itisworthwhiletosimultaneouslyexploittextualmetadataandvisualcontenttolearnauniﬁedrankingmodel.Apreliminaryworkhasbeendonein[14],whereacontent-awarerankingmodelisdevelopedtoincorporatevisualcontentintotext-basedrankingmodellearning.Itshowsthatthein-corporationofvisualcontentintorankingmodellearningcanresultinamorerobustandaccuraterankingmodelsincenoiseintextualfeaturescanbesuppressedbyvisualinformation.Scalabletextminingforlarge-scalemultimediaman-agementDespiteofthesuccessofexistingtextmininginmultimedia,mostexistingtechniquessuﬀerfromdiﬃcultiesinhandlinglarge-scalemulti-mediadata.Hugeamountoftrainingdataorhighcomputationpowersareusuallyrequiredbyexistingmethodstoachieveacceptableperfor-mance.However,itistoodiﬃcult,orevenimpossible,tomeetthisrequirementinreal-worldapplications.Thusthereisacompellingneedtodevelopscalabletextminingtechniquestofacilitatelarge-scalemul-timediamanagement.MultimediasocialnetworkminingInrecentyears,wehavewitnessedtheemergenceofmultimediasocialnetworkcommunitieslikeNapster6,Facebook7,andYoutube,wheremillionsofusersandbillionsofmultimediaentitiesformalarge-scalemultimediasocialnetwork.MultimediasocialnetworkingisbecominganimportantpartofmediaconsumptionforInternetusers.Itbringsinnewandrichmetadata,suchasuserpreferences,interests,behaviors,socialrelationships,andsocialnetworkstructureetc.Theseinforma-tionpresentnewpotentialforadvancingcurrentmultimediaanalysis6http://music.napster.com/7http://www.facebook.com/TextMininginMultimedia379techniquesandalsotriggerdiversemultimediaapplications.Numerousresearchtopicscanbeexplored,including(a)thecombinationofconven-tionaltechniqueswithinformationderivedfromsocialnetworkcommu-nities;(b)fusionanalysisofcontent,text,andsocialnetworkdata;and(c)personalizedmultimediaanalysisinsocialnetworkingenvironments.AcknowledgementsThisworkwasinpartsupportedbyA*StarResearchGrantR-252-000-437-305andNRF(NationalResearchFoundationofSingapore)Re-searchGrantR-252-300-001-490undertheNExTCenter.References[1]Altavista’sa/vphotoﬁnder.http://www.altavista.com/sites/search/simage.[2]C.C.Aggarwal,H.Wang.TextMininginSocialNetworks.SocialNetworkDataAnalytics,Springer,2011.[3]D.Cai,X.He,Z.Li,W.-Y.Ma,andJ.-R.Wen.Hierarchicalclus-teringofwwwimagesearchresultsusingvisual,textualandlinkinformation.InProceedingsoftheACMConferenceonMultimedia,2004.[4]S.-F.Chang,W.Hsu,W.Jiang,L.Kennedy,D.Xu,A.Yanagawa,andE.Zavesky.Columbiauniversitytrecvid-2006videosearchandhigh-levelfeatureextraction.InProceedingsofNISTTRECVIDworkshop,2006.[5]L.ChenandA.Roy.EventdetectionfromFlickrdatathroughwavelet-basedspatialanalysis.InProceedingsoftheACMconfer-enceonInformationandknowledgemanagement,pages523–532.ACM,2009.[6]L.Chen,D.Xu,I.W.Tsang,andJ.Luo.Tag-basedwebphotoretrievalimprovedbybatchmodere-tagging.InProceedingsoftheIEEEInternationalConferenceonComputerVisionandPatternRecognition,2010.[7]W.Dai,Y.Chen,G.-R.Xue,Q.Yang,andY.Yu.Translatedlearning:Transferlearningacrossdiﬀerencefeaturespaces.InNIPS,pages353–360,2008.[8]J.Fan,Y.Shen,N.Zhou,andY.Gao.Harvestinglarge-scaleweakly-taggedimagedatabasesfromtheweb.InProceedingsoftheIEEEInternationalConferenceonComputerVisionandPatternRecog-nition,2010.380MININGTEXTDATA[9]H.Feng,R.Shi,andT.-S.Chua.Abootstrappingframeworkforannotatingandretrievingwwwimages.InProceedingsoftheACMConferenceonMultimedia,2004.[10]S.Feng,C.Lang,andD.Xu.Beyondtagrelevance:integratingvisualattentionmodelandmulti-instancelearningfortagsaliencyranking.InProceedingsofInternationalConferenceonImageandVideoRetrieval,2010.[11]R.Fergus,P.Perona,andA.Zisserman.Avisualcategoryﬁlterforgoogleimages.InProceedingsoftheEuropeanConferenceonComputerVision,2004.[12]C.Frankel,M.J.Swain,andV.Athitsos.Webseer:Animagesearchenginefortheworldwideweb.Technicalreport,Univer-sityofChicago,ComputerScienceDepartment,1996.[13]B.Gao,T.-Y.Liu,Q.Tao,X.Zheng,Q.Cheng,andW.-Y.Ma.Webimageclusteringbyconsistentutilizationofvisualfeaturesandsurroundingtexts.InProceedingsoftheACMConferenceonMultimedia,2005.[14]B.Geng,L.Yang,C.Xu,andX.-S.Hua.Content-awarerankingforvisualsearch.InProceedingsoftheInternationalConferenceonComputerVisionandPatternRecognition,2010.[15]G.Griﬃn,A.Holub,andP.Perona.Caltech-256objectcategorydataset.TechnicalReport7694,CaliforniaInstituteofTechnology,2007.[16]W.Hsu,L.Kennedy,,andS.-F.Chang.Rerankingmethodsforvisualsearch.IEEEMultimedia,14:14–22,2007.[17]F.JingandS.Baluja.Visualrank:Applyingpageranktolarge-scaleimagesearch.IEEETransactionsonPatternAnalysisandMachineIntelligence,30:1877–1890,2008.[18]F.Jing,M.Li,H.-J.Zhang,andB.Zhang.Auniﬁedframeworkforimageretrievalusingkeywordandvisualfeatures.IEEETransac-tionsonImageProcessing,2005.[19]F.Jing,C.Wang,Y.Yao,K.Deng,L.Zhang,andW.-Y.Ma.Igroup:Webimagesearchresultsclustering.InProceedingsoftheACMConferenceonMultimedia,pages377–384,2006.[20]L.S.Kennedy,S.F.Chang,andI.V.Kozintsev.Tosearchortolabel?predictingtheperformanceofsearch-basedautomaticimageclassiﬁers.InProceedingsoftheACMInternationalWorkshoponMultimediaInformationRetrieval,2006.TextMininginMultimedia381[21]G.Li,M.Wang,Y.T.Zheng,Z.-J.Zha,H.Li,andT.-S.Chua.Shottagger:Taglocationforinternetvideos.InProceedingsoftheACMInternationalConferenceonMultimediaRetrieval,2011.[22]X.Li,C.G.Snoek,andM.Worring.Learningsocialtagrelevancebyneighborvoting.PatternRecognitionLetters,11(7),2009.[23]X.Li,C.G.Snoek,andM.Worring.Unsupervisedmulti-featuretagrelevancelearningforsocialimageretrieval.InProceedingsoftheInternationalConferenceonImageandVideoRetrieval,2010.[24]D.Liu,X.C.Hua,M.Wang,andH.Zhang.Imageretagging.InProceedingsoftheACMConferenceonMultimedia,2010.[25]D.Liu,X.-S.Hua,L.Yang,M.Wang,andH.-J.Zhang.Tagranking.InProceedingsoftheInternationalConferenceonWorldWideWeb,2009.[26]D.Liu,X.-S.Hua,andH.-J.Zhang.Content-basedtagprocess-ingforinternetsocialimages.MultimediaToolsandApplication,51:723–738,2010.[27]D.Liu,S.Yan,Y.Rui,andH.J.Zhang.Uniﬁedtaganalysiswithmulti-edgegraph.InProceedingsoftheACMConferenceonMultimedia,2010.[28]X.Liu,B.Cheng,S.Yan,J.Tang,T.C.Chua,andH.Jin.Labeltoregionbybi-layersparsifypriors.InProceedingsoftheACMConferenceonMultimedia,2009.[29]X.Liu,S.Yan,J.Luo,J.Tang,Z.Huang,andH.Jin.Nonpara-metriclabel-to-regionbysearch.InProceedingsoftheIEEEInter-nationalConferenceonComputerVisionandPatternRecognition,2010.[30]Y.Liu,T.Mei,andX.-S.Hua.Crowdreranking:Exploringmultiplesearchenginesforvisualsearchreranking.InProceedingsoftheACMSIGIRConference,2009.[31]T.Mei,Z.-J.Zha,Y.Liu,M.Wang,andetal.Msraattrecvid2008:High-levelfeatureextractionandautomaticsearch.InProceedingsofNISTTRECVIDworkshop,2008.[32]S.J.PanandQ.Yang.Asurveyontransferlearning.IEEETrans-actionsonKnowledgeandDataEngineering,22(10),2010.[33]G.-J.Qi,C.C.Aggarwal,andT.Huang.Towardssemanticknowl-edgepropagationfromtextcorpustowebimages.InProceedingsoftheInternationalConferenceonWorldWideWeb,2011.[34]M.Rege,M.Dong,andJ.Hua.Graphtheoreticalframeworkforsimultaneouslyintegratingvisualandtextualfeaturesforeﬃcient382MININGTEXTDATAwebimageclustering.InProceedingsoftheInternationalConfer-enceonWorldWideWeb,2008.[35]F.Schroﬀ,A.Criminisi,andA.Zisserman.Harvestingimagesdatabasesfromtheweb.InProceedingsoftheInternationalCon-ferenceonComputerVision,2007.[36]D.A.Shamma,R.Shaw,P.L.Shafton,andY.Liu.Watchwhatiwatch:usingcommunityactiveitytounderstandcontent.InPro-ceedingsoftheACMWorkshoponMultimediaInformationRe-trieval,2007.[37]X.Shi,Q.Liu,W.Fan,P.S.Yu,andR.Zhu.Transferlearn-ingonheterogenousfeaturespacesviaspectraltranformation.InProceedingsoftheInternationalConferenceonDataMining,2010.[38]B.Sigurbj¨ornssonandR.V.Zwol.Flickrtagrecommendationbasedoncollectiveknowledge.InProceedingsofInternationalConferenceonWorldWideWeb,2008.[39]J.SmithandS.-F.Chang.Visuallysearchingthewebforcontent.IEEEMultimedia,4:12–20,1995.[40]R.Srihari.Automaticindexingandcontent-basedretrievalofcap-tionedimages.IEEEComputer,28:49–56,1995.[41]A.SunandS.S.Bhowmick.Quantifyingtagrepresentativenessofvisualcontentofsocialimages.InProceedingsoftheACMConfer-enceonMultimedia,2010.[42]X.Tian,L.Yang,J.Wang,Y.Yang,X.Wu,andX.-S.Hua.Bayesianvideosearchreranking.InProceedingsoftheACMCon-ferenceonMultimedia,2008.[43]A.Ulges,C.Schulze,D.Keysers,andT.M.Breuel.Identifyingrelevantframesinweaklylabeledvideosfortrainingconceptdetec-tors.InProceedingsoftheInternationalConferenceonImageandVideoRetrieval,2008.[44]G.WangandD.A.Forsyth.Objectimageretrievalbyexploitingonlineknowledgeresources.InProceedingsoftheIEEEConferenceonComputerVisionandPatternRecognition,2008.[45]J.Wang,Y.-G.Jiang,andS.-F.Chang.Labeldiagnosisthroughselftuningforwebimagesearch.InProceedingsoftheIEEEConferenceonComputerVisionandPatternRecognition.[46]M.Wang,X.S.Hua,R.Hong,J.Tang,G.J.Qi,andY.Song.Uni-ﬁedvideoannotationviamulti-graphlearning.IEEETransactionsonCircuitsandSystemsforVideoTechnology,19(5),2009.TextMininginMultimedia383[47]M.Wang,X.S.Hua,J.Tang,andR.Hong.Beyonddistancemea-surement:Constructingneighborhoodsimilarityforvideoannota-tion.IEEETransactionsonMultimedia,11(3),2009.[48]M.Wang,B.Ni,X.-S.Hua,andT.-S.Chua.Assistivemultimediatagging:Asurveyofmultimediataggingwithhuman-computerjointexploration.ACMComputingSurvey,2011.[49]X.-J.Wang,W.-Y.Ma,G.-R.Xue,andX.Li.Multi-modelsimi-laritypropagationanditsapplicationforwebimageretrieval.InProceedingsoftheACMConferenceonMultimedia,pages944–951,2004.[50]X.-J.Wang,W.-Y.Ma,L.Zhang,andX.Li.Iterativelyclusteringwebimagesbasedonlinkandattributereinforcements.InProceed-ingsoftheACMConferenceonMultimedia,2005.[51]L.Wu,X.-S.Hua,N.Yu,W.-Y.Ma,andS.Li.Flickrdistance.InProceedingsoftheACMConferenceonMultimedia,2008.[52]H.Xu,J.Wang,X.-S.Hua,andS.Li.TagreﬁnementbyregularizedLDA.InProceedingsoftheACMConferenceonMultimedia,2009.[53]R.YanandA.G.Hauptmann.Co-retrieval:Aboostedrerankingapproachforvideoretrieval.InProceedingsoftheACMConferenceonImageandVideoRetrieval,2004.[54]R.Yan,A.G.Hauptmann,andR.Jin.Multimediasearchwithpseudo-relevancefeedback.InProceedingsoftheACMConferenceonImageandVideoRetrieval,2003.[55]K.Yang,X.-S.Hua,M.Wang,andH.C.Zhang.Taggingtags.InProceedingsoftheACMConferenceonMultimedia,2010.[56]Q.Yang,Y.Chen,G.-R.Xue,W.Dai,andY.Yu.Heterogeneoustransferlearningfromimageclusteringviathesocialweb.InPro-ceedingsoftheJointConferenceoftheAnnualMeetingoftheACL,2009.[57]Y.-H.Yang,P.Wu,C.W.Lee,K.H.Lin,W.Hsu,andH.H.Chen.Contextseer:Contextsearchandrecommendationatquerytimeforsharedconsumerphotos.InProceedingsoftheACMConferenceonMultimedia,2008.[58]Z.-J.Zha,X.-S.Hua,T.Mei,J.Wang,G.-J.Qi,andZ.Wang.Jointmulti-labelmulti-instancelearningforimageclassiﬁcation.InProceedingsoftheIEEEConferenceonComputerVisionandPatternRecognition,2008.[59]Z.-J.Zha,T.Mei,J.Wang,X.-S.Hua,andZ.Wang.Graph-basedsemi-supervisedlearningwithmultiplelabels.JournalofVisualCommunicationandImageRepresentation,2009.384MININGTEXTDATA[60]Z.-J.Zha,M.Wang,Y.-T.Zheng,Y.Yang,R.Hong,andT.-S.Chua.Interactivevideoindexingwithstatisticalactivelearning.IEEETransactionsonMultimedia,2011.[61]Z.-J.Zha,L.Yang,T.Mei,M.Wang,andZ.Wang.Viusalquerysuggestion.InProceedingsoftheACMConferenceonMultimedia,2009.[62]R.Zhang,Z.M.Zhang,M.Li,W.-Y.Ma,andH.-J.Zhang.Aprobabilisticsemanticmodelforimageannotationandmulti-modalimageretrieval.InProceedingsoftheInternationalConferenceonComputerVision,pages846–851,2005.[63]R.ZhaoandW.I.Grosky.Narrowingthesemanticgap-improvedtext-basedwebdocumentretirevalusingvisualfetures.IEEETransactionsonMultimedia,4,2002.[64]G.Zhu,S.Yan,andY.Ma.Imagetagreﬁnementtowardslow-rank,content-tagprioranderrorsparsity.InProceedingsoftheACMConferenceonMultimedia,2010.[65]Y.Zhu,Y.Chen,Z.Lu,S.J.Pan,G.-R.Xue,Y.Yu,andQ.Yang.Heterogeneoustransferlearningforimageclassiﬁcation.InProceed-ingsoftheAAAIConferenceonArtiﬁcialIntelligence,2011.C.C. Aggarwal and C.X. Zhai (eds.), Mining Text Data, DOI 10.1007/978-1-4614-3223-4_12,

Chapter12TEXTANALYTICSINSOCIALMEDIAXiaHuComputerScienceandEngineeringArizonaStateUniversityxiahu@asu.eduHuanLiuComputerScienceandEngineeringArizonaStateUniversityhuanliu@asu.eduAbstractTherapidgrowthofonlinesocialmediaintheformofcollaboratively-createdcontentpresentsnewopportunitiesandchallengestobothpro-ducersandconsumersofinformation.Withthelargeamountofdataproducedbyvarioussocialmediaservices,textanalyticsprovidesaneﬀectivewaytomeetusres’diverseinformationneeds.Inthischapter,weﬁrstintroducethebackgroundoftraditionaltextanalyticsandthedistinctaspectsoftextualdatainsocialmedia.Wenextdiscusstheresearchprogressofapplyingtextanalyticsinsocialmediafromdiﬀer-entperspectives,andshowhowtoimproveexistingapproachestotextrepresentationinsocialmedia,usingreal-worldexamples.Keywords:TextAnalytics,SocialMedia,TextRepresentation,TimeSensitivity,ShortText,EventDetection,CollaborativeQuestionAnswering,SocialTagging,SemanticKnowledge1.IntroductionSocialmediasuchasblogs,microblogs,discussionforumsandmulti-mediasharingsitesareincreasinglyusedforuserstocommunicatebreak-ingnews,participateinevents,andconnecttoeachotheranytime,fromanywhere.Thesocialmediasitesplayaveryimportantroleincurrent© Springer Science+Business Media, LLC 2012 385 
 
386MININGTEXTDATAwebapplications,whichaccountsfor50%oftop10sitesaccordingtostatisticsfromAlexa1,asshowninTable12.1.Besidesthat,theTwittermessagesareevenarchivedintheUSLibraryofCongress2.Theseso-cialmediaprovidesrichinformationofhumaninteractionandcollectivebehavior,thusattractingmuchattentionfromdisciplinesincludingso-ciology,business,psychology,politics,computerscience,economics,andotherculturalaspectsofsocieties.Table12.1.InternetTraﬃcReportbyAlexaonMarch3rd,2011RankWebsiteRankWebsite1Google6Blogger2Facebook7Baidu3Youtube8Wikipedia4Yahoo!9Twitter5WindowsLive10QQ.comWepresentadeﬁnitionofSocialMediafromasocialmediasource,Wikipedia3,asfollows:“Socialmediaaremediaforsocialinteraction,usinghighlyaccessibleandscalablecommunicationtechniques.Itistheuseofweb-basedandmobiletechnologiestoturncommunicationintointeractivedialogue.”Moturu[43]deﬁnessocialmediaas:“SocialMediaistheuseofelectronicandInternettoolsforthepurposeofsharinganddiscussinginformationandexperienceswithotherhumanbeingsinmoreeﬃcientways.”Traditionalmediasuchasnewspaper,televisionandradiofollowaunidirectionaldeliveryparadigm,frombusinesstoconsumer.Theinfor-mationisproducedfrommediasourcesoradvertisersandtransmittedtomediaconsumers.Diﬀerentfromthistraditionalway,web2.0tech-nologiesaremorelikeconsumertoconsumerservices.Theyallowuserstointeractandcollaboratewitheachotherinasocialmediadialogueofuser-generatedcontentinavirtualcommunity.Wecategorizethemostpopularsocialmediawebsitesintogroups,showninTable12.2.1www.alexa.com2http://blogs.loc.gov/loc/2010/04/how-tweet-it-is-library-acquires-entire-twitter-archive/3http://en.wikipedia.org/wiki/Socialmedia/TextAnalyticsinSocialMedia387Table12.2.TypesofSocialMediaCategoryRepresentativeSitesWikiWikipedia,ScholarpediaBloggingBlogger,LiveJournal,WordPressSocialNewsDigg,Mixx,SlashdotMicroBloggingTwitter,GoogleBuzzOpinion&ReviewsePinions,YelpQuestionAnsweringYahoo!Answers,BaiduZhidaoMediaSharingFlickr,YoutubeSocialBookmarkingDelicious,CiteULikeSocialNetworkingFacebook,LinkedIn,MySpaceFromthetable12.2,socialmediawebsitescontainvarioustypesofservicesandthuscreatediﬀerentformatsofdata,includingtext,image,videoetc.Forexample,themediasharingsitesFlickrandYoutubeallowtoobservewhat“ordinary”usersdowhengiventheabilitytomoreread-ilyincorporateimagesandvideointheireverydayactivity[55].Weareseeingpeopleengagedinthecreationandsharingoftheirpersonalpho-tography.Asaresult,alargeamountofimageandvideodataisarchivedinthesites.Besides,inbloggingsites,theuserspostfrequentlyandcre-ateahugenumberoftextual/text-baseddata;insocialbookmarkingsites,userssharewitheachothertagsandURLs.Amongthevariousformatsofdataexchangedinsocialmedia,textplaysaimportantrole.Theinformationinmostsocialmediasites(theoneswithboldfontinTable12.2)arestoredintextformat.Forexample,microbloggingservicesallowuserstopostsmallamountsoftextforcommunicatingbreakingnews,informationsharing,andparticipatinginevents.Thisemergingmediahasbecomeapowerfulcommunicationchannel,asevidencedbymanyrecenteventslike“EgyptianRevolution”andthe“Tohokuearthquakeandtsunami”.Ontheotherhand,therearealsoalotofusefultextualdatacon-taininginthesites(theoneswithoutboldfontinTable12.2)whichareconcentratingonotherdomains.Forinstance,researchersproposedtoutilizetaginformationinmultimediasharingsitestoperformvideore-trieval[63]andcommunitydetection[59].Underthesescenarios,howtomineusefulinformationfromtextualdatapresentsgreatopportunitiestosocialmediaresearchandapplications.TextAnalytics(alsoasknowasTextMining)referstothediscoveryofknowledgethatcanbefoundintextarchives[49].Thisﬁeldhasreceivedmuchattentionduetoitswideapplicationasamulti-purposetool,borrowingtechniquesfromNaturalLanguageProcessing(NLP),388MININGTEXTDATADataMining(DM),MachineLearning(ML),InformationRetrieval(IR)etc.TextAnalyticsisdeﬁnedinWikipediaasfollows:“TextAnalyticsdescribesasetoflinguistic,statistical,andmachinelearningtechniquesthatmodelandstruc-turetheinformationcontentoftextualsourcesforbusi-nessintelligence,exploratorydataanalysis,research,orinvestigation.”Textanalyticstechniquescanhelpeﬃcientlydealwithtextualdatainsocialmediaforresearchandbusinesspurposes.Therestofthischapterisorganizedasfollows:Section2introducesspecialtyfortextanalyticsinsocialmediabyanalyzingthefeaturesoftextualdata.Section3presentsproposedapproachesforseveralrepresentativeresearchissues.Section4introducesoneexampletoillustrateindetailtheprocessoftextanalyticsmethodstosolverealworldproblems.Section5concludesthechapterwithsomepossibledirectionsoffuturework.2.DistinctAspectsofTextinSocialMediaTextualdatainsocialmediagivesusinsightsintosocialnetworksandgroupsthatwerenotpreviouslypossibleinbothscaleandextent.Unfor-tunately,textualdatainsocialmediapresentsmanynewchallengesduetoitsdistinctcharacteristics.Inthissection,weﬁrstreviewtraditionalprocessesoftextanalyticsandthendiscussthedistinctivefeaturesoftextinsocialmedia,includingTimeSensitivity,ShortLength,Unstruc-turedPhrases,AbundantInformation.2.1AGeneralFrameworkforTextAnalyticsInthissubsection,webrieﬂyintroducethegeneralframeworkoftextanalyticstoprocessatextcorpus.Atraditionaltextanalyticsframe-workconsistsofthreeconsecutivephases:TextPreprocessing,TextRep-resentationandKnowledgeDiscovery,showninFigure12.1.Weuseanexampletoillustratethesemethodsineachstep.Givenatextcorpuswhichcontainsthreemicrobloggingmessages,asshownbelow:“watchingtheKing’sSpeech”“IliketheKing’sSpeech”“theydecidetowatchamovie”TextPreprocessing:Textpreprocessingaimstomaketheinputdocumentsmoreconsistenttofacilitatetextrepresentation,whichisTextAnalyticsinSocialMedia389(cid:55)(cid:72)(cid:91)(cid:87)(cid:3)(cid:38)(cid:82)(cid:85)(cid:83)(cid:88)(cid:86)(cid:54)(cid:87)(cid:82)(cid:83)(cid:3)(cid:58)(cid:82)(cid:85)(cid:71)(cid:86)(cid:3)(cid:53)(cid:72)(cid:80)(cid:82)(cid:89)(cid:68)(cid:79)(cid:18)(cid:54)(cid:87)(cid:72)(cid:80)(cid:80)(cid:76)(cid:81)(cid:74)(cid:18)(cid:55)(cid:82)(cid:78)(cid:72)(cid:81)(cid:76)(cid:93)(cid:68)(cid:87)(cid:76)(cid:82)(cid:81)(cid:18)(cid:258)(cid:258)(cid:55)(cid:90)(cid:76)(cid:87)(cid:87)(cid:72)(cid:85)(cid:18)(cid:41)(cid:68)(cid:70)(cid:72)(cid:69)(cid:82)(cid:82)(cid:78)(cid:18)(cid:37)(cid:79)(cid:82)(cid:74)(cid:74)(cid:72)(cid:85)(cid:18)(cid:258)(cid:258)(cid:51)(cid:85)(cid:72)(cid:83)(cid:85)(cid:82)(cid:70)(cid:72)(cid:86)(cid:86)(cid:76)(cid:81)(cid:74)(cid:57)(cid:72)(cid:70)(cid:87)(cid:82)(cid:85)(cid:3)(cid:54)(cid:83)(cid:68)(cid:70)(cid:72)(cid:3)(cid:48)(cid:82)(cid:71)(cid:72)(cid:79)(cid:18)(cid:37)(cid:68)(cid:74)(cid:3)(cid:82)(cid:73)(cid:3)(cid:58)(cid:82)(cid:85)(cid:71)(cid:86)(cid:18)(cid:55)(cid:41)(cid:16)(cid:44)(cid:39)(cid:41)(cid:18)(cid:258)(cid:258)(cid:53)(cid:72)(cid:83)(cid:85)(cid:72)(cid:86)(cid:72)(cid:81)(cid:87)(cid:68)(cid:87)(cid:76)(cid:82)(cid:81)(cid:38)(cid:79)(cid:68)(cid:86)(cid:86)(cid:76)(cid:73)(cid:76)(cid:70)(cid:68)(cid:87)(cid:76)(cid:82)(cid:81)(cid:18)(cid:38)(cid:79)(cid:88)(cid:86)(cid:87)(cid:72)(cid:85)(cid:76)(cid:81)(cid:74)(cid:18)(cid:54)(cid:72)(cid:81)(cid:87)(cid:76)(cid:80)(cid:72)(cid:81)(cid:87)(cid:3)(cid:36)(cid:81)(cid:68)(cid:79)(cid:92)(cid:86)(cid:76)(cid:86)(cid:18)(cid:40)(cid:89)(cid:72)(cid:81)(cid:87)(cid:3)(cid:39)(cid:72)(cid:87)(cid:72)(cid:70)(cid:87)(cid:76)(cid:82)(cid:81)(cid:18)(cid:258)(cid:258)(cid:46)(cid:81)(cid:82)(cid:90)(cid:79)(cid:72)(cid:71)(cid:74)(cid:72)(cid:3)(cid:39)(cid:76)(cid:86)(cid:70)(cid:82)(cid:89)(cid:72)(cid:85)(cid:92)Figure12.1.ATraditionalFrameworkforTextAnalyticsnecessaryformosttextanalyticstasks.Traditionaltextpreprocessingmethodsincludestopwordremovalandstemming.Stopwordremovaleliminateswordsusingastopwordlist4,inwhichthewordsareconsid-eredmoregeneralandmeaningless;Stemming[46]reducesinﬂected(orsometimesderived)wordstotheirstem,baseorrootform.Forexam-ple,“watch”,“watching”,“watched”arerepresentedas“watch”,sothewordswithvariantformscanberegardedassamefeature.Theoutputoftextpreprocessingforthethreemicrobloggingmessagesare:“watchKing’Speech”“King’Speech”“decidwatchmovi”Preprocessingmethodsdependonspeciﬁcapplication.Inmanyappli-cations,suchasOpinionMiningorNLP,theyneedtoanalyzethemes-sagefromasyntacticalpointofview,whichrequiresthatthemethodretainstheoriginalsentencestructure.Withoutthisinformation,itisdiﬃculttodistinguish“Whichuniversitydidthepresidentgraduatefrom?”and“WhichpresidentisagraduateofHarvardUniversity?”,whichhaveoverlappingvocabularies.Inthiscase,weneedtoavoidremovingthesyntax-containingwords.TextRepresentation:Themostcommonwaytomodeldocumentsistotransformthemintosparsenumericvectorsandthendealwiththemwithlinearalgebraicoperations.Thisrepresentationiscalled“BagOfWords”(BOW)or“VectorSpaceModel”(VSM).Inthesebasictextrepresentationmodels,thelinguisticstructurewithinthetextisignoredandthusleadsto“structuralcurse”.InBOWmodel,awordisrepresentedasaseparatevariablehavingnumericweightofvaryingimportance.Themostpopularweighting4http://www.lextek.com/manuals/onix/390MININGTEXTDATAschemaisTermFrequency/InverseDocumentFrequency(TF-IDF):tfidf(w)=tf∗logNdf(w),(12.1)where:–tf(w)istermfrequency(thenumberofwordoccurrencesinadoc-ument)–df(w)isdocumentfrequency(thenumberofdocumentscontainingtheword)–Nisnumberofdocumentsinthecorpus–tﬁdf(w)istherelativeweightofthefeatureinthevectorUsingBOWtomodelthethreemessageswithaTF-IDFweight,thecorpuscanberepresentedasawords*documentsmatrix.Eachrowrepresentsaword(5distinctwordsintotal)andeachcolumnrepresentsamessage,asshownbelow:⎡⎢⎢⎢⎢⎣watchKing(cid:2)Speechdecidmovi⎤⎥⎥⎥⎥⎦=⎡⎢⎢⎢⎢⎣0.405500.40550.40550.405500.40550.40550001.0986001.0986⎤⎥⎥⎥⎥⎦(12.2)KnowledgeDiscovery:Whenwesuccessfullytransformthetextcorpusintonumericvectors,wecanapplytheexistingmachinelearningordataminingmethodslikeclassiﬁcationorclustering.Forexample,inmachinelearning,similarityisanimportantmeasureformanytasks.AwidelyusedsimilaritymeasurebetweentwomessagesV1andV2iscosinesimilarity,whichcanbecomputedas:similarity(V1,V2)=cos(θ)=V1∗V2||V1||||V2||,(12.3)Byconductingtextpreprocessing,textrepresentationandknowledgediscoverymethods,wecanminelatent,usefulinformationfromthein-puttextcorpus,likesimilaritybetweentwomessagesinourexample.However,thispresentschallengesfortraditionaltextanalyticsmethodswhenapplieddirectlytotextualdatainsocialmediaduetoitsdistinctfeatures.Nowweanalyzethenewfeaturesoftextualdatainsocialmediafromfourdiﬀerentperspectives:TimeSensitivity,ShortLength,UnstructuredPhrases,andAbundantInformation.2.2TimeSensitivityAnimportantandcommonfeatureofmanysocialmediaservicesistheirreal-timenature.Particularly,bloggerstypicallyupdatetheirblogsTextAnalyticsinSocialMedia391everyseveraldays,whilemicrobloggingandsocialnetworkingusersmaypostnewsandinformationseveraltimesdaily.Usersmaywanttocom-municateinstantlywithfriendsabout“Whatareyoudoing?”(Twitter)or“Whatisonyourmind”(Facebook).WhensubmittingaquerytoTwitter,thereturnedresultsareonlyseveralminutesold.Besidescommunicatingandsharingmindswitheachother,userspostcommentsonrecentevents,suchasnewproducts,movies,sports,games,politicalcampaigns,etc.Thelargenumberofreal-timeupdatescontainabundantinformation,whichprovidesalotofopportunitiesfordetectionandmonitoringofanevent.Withthesedata,weareabletoinferauser’sinterestinanevent[37],andtrackinformationprovenancefromtheuser’scommunications[9].Forexample,Sakakietal.[47]investigatethereal-timeinteractionofeventssuchasearthquakes,andtheyproposeanalgorithmtomonitortweetsandtodetectatargetevent.Withtherapidevolutionofcontentandcommunicationstylesinso-cialmedia,textischangingtoo.Diﬀerentfromtraditionaltextualdata,thetextinsocialmediaisnotindependentandidenticallydistributed(i.i.d.)dataanymore.Acommentorpostmayreﬂecttheuser’sinterest,andauserisconnectedandinﬂuencedbyhisfriends.Peoplewillnotbeinterestedinamovieafterseveralmonths,whiletheymaybeinterestedinanothermoviereleasedseveralyearsagobecauseoftherecommenda-tionfromhisfriends;reviewsofaproductmaychangesigniﬁcantlyaftersomeissues,likethecommentsonToyotavehiclesafterthebreakprob-lem.Alltheseproblemsoriginatefromthetimesensitivityoftextualdatainsocialmedia.2.3ShortLengthCertainsocialmediawebsitesrestrictthelengthofuser-createdcon-tentsuchasmicrobloggingmessages,productreviews,QApassagesandimagecaptions,etc.Twitterallowsuserstopostnewsquicklyandthelengthofeachtweetislimitedto140characters.Similarly,Picasacom-mentsarelimitedto512characters,andpersonalstatusmessagesonWindowsLiveMessengerarerestrictedto128characters.Aswecansee,datawithashortlengthisubiquitousonthewebatpresent.Asaresult,theseshortmessageshaveplayedincreasingimportantrolesinapplicationsofsocialmedia.Successfulprocessingshorttextsisessentialtotextanalyticsmethods.Shortmessages,asthemostimportantdataformat,makepeoplemoreeﬃcientwiththeirparticipateinsocialmediaapplications.How-ever,thisbringsnewchallengestotraditionalfundamentalresearchtop-icsintextanalytics,suchastextclustering,textclassiﬁcation,infor-392MININGTEXTDATAmationextractionandsentimentanalysis.Unlikestandardtextwithlotsofwordsandtheirresultingstatistics,shortmessagesconsistoffewphrasesorsentences.Theycannotprovidesuﬃcientcontextinformationforeﬀectivesimilaritymeasure[45],thebasisofmanytextprocessingmethods[27].Totacklethedatasparsenessproblem,severaltraditionaltextanalyt-icsmethodshavebeenproposed,whichcanbegenerallycategorizedintotwogroups.Theﬁrstisthebasicrepresentationoftextscalledsurfacerepresentation[32,36],whichexploitsphrasesintheoriginaltextfromdiﬀerentaspectstopreservethecontextualinformation.However,NLPtechniquessuchasparsingarenotemployed,asitistimeconsumingtoapplysuchtechniquestoanalyzethestructureofstandardtextindetail.Asaresult,themethodsfailtoperformadeepunderstandingoftheoriginaltext.Anotherlimitationofsuchmethodsisthattheydidnotuseexternalknowledge,whichhasbeenfoundtobeusefulindealingwiththesemanticgapintextrepresentation[18].Forexample,tag“JapanEarthquake”doesnotcontainanywordsorphrasesrelatedto“NuclearCrisis”whilewelearnthatthesetwoeventsarerelatedfromrecentnews.Becausetheyhavenocommonwordsorphrases,itisverydiﬃcultforBOW-basedmodelsandmethodstobuildsemanticconnectionsbetweeneachother.Oneintuitiveapproachistoenrichthecontextsofbasictextsegmentsbyexploitingexternalresources,andsuchmethodshavebeenfoundtobeeﬀectiveinnarrowingthesemanticgapindiﬀerenttasks[20,54].2.4UnstructuredPhrasesAnimportantdiﬀerencebetweenthetextinsocialmediaandtra-ditionalmediaisthevarianceinthequalityofthecontent.First,thevarianceofqualityoriginatesfrompeople’sattitudeswhenpostingami-crobloggingmessageoransweringaquestioninaforum.Someusersareexpertsforthetopicandpostinformationverycarefully,whileothersdonotpostashighofquality.Themainchallengeposedbycontentinsocialmediasitesisthefactthatthedistributionofqualityhashighvariance:fromveryhigh-qualityitemstolow-quality,sometimesabusivecontent.Thismakesthetasksofﬁlteringandrankinginsuchsystemsmorecomplexthaninotherdomains[5].Second,whencomposingamessage,usersmayuseorcoinnewab-breviationsoracronymsthatseldomappearinconventionaltextdocu-ments.Forexample,messageslike“Howru?”,“Good9t”arenotreallywords,buttheyareintuitiveandpopularinsocialmedia.Theyprovideusersconvenienceincommunicatingwitheachother,howeveritisveryTextAnalyticsinSocialMedia393diﬃculttoaccuratelyidentifythesemanticmeaningofthesemessages.Besidestheunstructuredexpressions,thetextissometimes“noisy”foraspeciﬁctopic.Forinstance,oneQApassageinYahoo!Answers“Ilikesony”shouldbenoisydatatoapostthatistalkingaboutiPad2release.Itisdiﬃculttoclassifythepassageintocorrespondingclasseswithoutconsideringitscontextinformation.2.5AbundantInformationSocialmediaingeneralexhibitarichvarietyofinformationsources.Inadditiontothecontentitself,thereisawidearrayofnon-contentinformationavailable.Forexample,Twitterallowsuserstoutilizethe“#”symbol,calledhashtag,tomarkkeywordsortopicsinaTweet(taginformation);animageisusuallyassociatedwithmultiplelabelswhicharecharacterizedbydiﬀerentregionsintheimage[66];usersareabletobuildconnectionwithothers(linkinformation)inFacebookandothersocialnetworksites;Wikipediaprovidesaneﬃcientwayforuserstoredirecttotheambiguityconceptpageorhigherlevelconceptpage(semantichierarchyinformation).Alltheseexternalinformationpresentsopportunitiesfortraditionaltasks.Previoustextanalyticssourcesalwaysappearas<user,content>structure,whilethetextanalyticsinsocialmediaisabletoderivedatafromvariousaspects,whichincludeuser,content,link,tag,timestampetc.Recently,manyresearchworkutilizeslinkinformationinmicroblog-gingservicestodetectthepopularevent[37],distinguishthemicroblog-gingmessageiscrediblenewsorjustrumor[42].Also,withtheusermetadata(e.g.tags)minedfromblogosphereandbookmarkingsites,Wangetal.[59]takeadvantageofnetworkinginformationbetweenusersandtagstodiscoveroverlappingcommunities.Thesesuccessfulapplica-tionsmotivatedustoexploitmoreopportunitiesbehindsuchabundantadditionalinformationavailableinsocialmedia.3.ApplyingTextAnalyticstoSocialMediaItpresentsgreatchallengestoapplytraditionalmethodstoprocesstextualdatainsocialmedia.Recently,anumberofmethodshavebeenproposedtohandlethetextualdatawithnewfeatures.Inthissection,weintroduceavarietyofapplyingtextanalyticstosocialmedia.3.1EventDetectionEventDetectionaimstomonitoradatasourceanddetecttheoccur-renceofaneventthatiscapturedwithinthatsource[40].Thesedatasourcesincludeimages,video,audio,spatio-temporaldata,textdocu-394MININGTEXTDATAmentsandrelationaldata.Amongthem,eventdetectionandevolutiontrackingofnewsarticles[60],digitalbooks[22]receivesmuchattention.Thevolumeoftextualdatainsocialmediaisincreasingexponentially,thusprovidingusmanyopportunitiesforeventdetectionandtracking.Insomesense,socialtextstreamsaresensorsoftherealworld[67].Asthereal-timenatureoftextualdatainsocialmedia,alotofworkhasbeendonetoextractrealworldeventsfromsocialtextstreams.Oneinterestingapplicationistomonitorreal-timeevents.Forexample,whenanearthquakeortsunamioccurs,oneconvenientwaytocommu-nicateupdatednewswithothersistopostmessagesrelatedtotheeventviamicroblogging.Therefore,itprovidespossibilityforustopromptlydetecttheoccurrenceofearthquakeortsunami,simplybyminingthecorrespondingmicrobloggingmessages.Basedontheaboveobserva-tion,Sakakietal.[47]investigatethereal-timeinteractionofeventsonTwitter.Theyconsidereachuserasasensortomonitortweetspostedrecentlyandtodetectearthquakeorrainbow.Todetectatargetevent,theworkﬂowisasfollows.First,aclassiﬁeristrainedbyusingkeywords,messagelength,andcorrespondingcontextasfeaturestoclassifytweetsintopositiveornegativecases.Second,theybuildaprobabilisticspatio-temporalmodelforthetargeteventtoidentifylocationoftheevent.Asanapplication,theauthorsconstructedanearthquake-reportingsysteminJapan,wherehasnumerousearthquakeseveryyearaswellasalargenumberofactivemicrobloggingusers.Oneimportantdirectionofeventdetectioninsocialmediaistoim-provetraditionalnewsdetection.Alargenumberofnewsstoriesaregeneratedfromvariousnewschannelsdayafterday.Amongthem,onlyarelativelyfewreceiveattentionfromusers,whicharerecognizedas“breakingnews”.Traditionally,editorsofnewspapersandwebsitesde-cidewhichstoriescanberankedhigherandassignedinanimportantplace,likethefrontpage.Inasimilarway,web-basednewsaggregatedservices,suchasGoogleNews5,giveusersaccesstobroadperspectivesontheimportantnewsstoriesbeingreportedbygroupingarticlesintorelatednewsevents.Decidingautomaticallyonwhichtopstoriestoshowisachallengingproblem[39].ApollconductedbyTechnoratifoundthat30%ofbloggersconsiderthemselvestobebloggingaboutnews-relatedtopics[41].Motivatedbythisobservation,researchersproposedtoutilizeblogo-spheretofacilitatenewsdetectionandevaluation.Leeetal.presentnovelapproachestoidentifyimportantnewsstoryheadlinesfromthe5http://news.google.com/TextAnalyticsinSocialMedia395blogosphereforagivenday[34].Theproposedsystemconsistsoftwocomponentsbasedonthelanguagemodelframework,thequerylikeli-hoodandthenewsheadlineprior.Forthequerylikelihood,theauthorsproposeseveralapproachestoestimatethequerylanguagemodelandthenewsheadlinelanguagemodel.Theyalsosuggestseveralcriteriatoevaluatetheimportanceornewsworthinessofthenewsheadlineforagivenday.Trackingthediﬀusionandevolutionofapopulareventinsocialme-diaisanotherinterestingdirectioninthisﬁeld.Diﬀerentfromi.i.d.textualdataintraditionalmedia,usergeneratedcontentinsocialme-diaisamixtureofatextstreamandanetworkstructure.Linetal.takeintoaccounttheburstinessofuserinterest,informationdiﬀusioninthenetworkstructureandtheevolutionoftextualtopicstomodelthepopularityofeventsovertime[37].Theytackletheproblemofpopulareventtrackinginonlinecommunitiesbystudyingtheinterplaybetweentextualcontentandsocialnetworks.Besidesdetectingeventsfrompuretextualdata,somemethodshavebeenproposedtominetextinformationinsocialmediatofacilitateeventdetection.Chenetal.istodetecteventsfromphotosonFlickrbyanalyzingthetagofthephotos[13].Intheproposedframework,theauthorsﬁrstanalyzetemporalandlocationaldistributionsoftagusage.Second,theyidentifytagsrelatedwithevents,andfurtherdistinguishifthetagsarerelevanttoaperiodiceventsorperiodicevents.Afterwards,tagsareclusteredintotheircorrespondingclusters.Eachclusterrepre-sentsanevent,andconsistsoftagswithsimilartemporalandlocationaldistributionpatternsaswellaswithsimilarassociatedphotos.Finally,foreachtagcluster,photoscorrespondingtotherepresentedeventareextracted.3.2CollaborativeQuestionAnsweringCollaborativequestionansweringservicesbegintoemergewiththebloomingofsocialmedia.Theybringtogetheranetworkofself-declared“experts”toanswerquestionspostedbyotherpeople.AlargevolumeofquestionsareaskedandansweredeverydayonsocialQuestionandAnswering(QA)websitessuchasYahoo!Answers.Collaborativeques-tionansweringportalsareapopulardestinationforuserslookingforadvicewithaparticularsituation,forgatheringopinions,forsharingtechnicalknowledge,forentertainment,forcommunityinteraction,andforsatisfyingone’scuriosityaboutacountlessnumberofthings.Overtime,atremendousamountofhistoricalQApairshavebuiltuptheirdatabases,andthistransformationgivesusersanalternative396MININGTEXTDATAplacetolookforinformation,asopposedtoawebsearch.InsteadoflookingthroughalistofpotentiallyrelevantdocumentsfromtheWeborpostinganewquestioninaforum,usersmaydirectlysearchforrel-evanthistoricalquestionsoranswersfromQAarchives.Asaresult,thecorrespondingbestsolutionscouldbeexplicitlyextractedandreturned.Thisproblemcouldbeconsideredfromtwosides.Ononehand,themostrelevantquestionssemanticallyrelatedtothequeryarereturned,sothatuserscanﬁndsimilarquestionsandtheircorrespondinganswers.Wangetal.[57]proposeagraphbasedapproachtoperformquestionretrievalbysegmentingmulti-sentencequestions.Theauthorsﬁrstat-tempttodetectquestionsentencesusingaclassiﬁerbuiltfrombothlexicalandsyntacticfeatures,andusesimilarityandco-referencechainbasedmethodstomeasuretheclosenessscorebetweenthequestionandcontextsentences.Ontheotherhand,systemsprovidecorrespondingqualityQApairsfromanswer’spointofview.Adamicetal.[1]evaluatethequalityofanswersforspeciﬁcquestionbyanalyzingYahoo!Answer’sknowledgesharingactivity.First,forumcategoriesareclusteredac-cordingtothecontentcharacteristicsandpatternsofinteractionamongusers.Theinteractionsindiﬀerentcategoriesrevealdiﬀerentcharac-teristics.Somecategoriesaremorelikeexpertisesharingforums,whileothersincorporatediscussion,everydayadvice,andsupport.Similarly,someusersfocusnarrowlyonspeciﬁctopics,whileothersparticipateacrosscategories.Second,theauthorsutilizethisfeaturetomaprelatedcategoriesandcharacterizetheentropyoftheusers’interests.Bothuserattributesandanswercharacteristicsarecombinedtopredict,withinagivencategory,whetheraparticularanswerwillbechosenasthebestanswerbytheasker.InordertoimproveQAarchivesmanagement,thereareanumberofworksdonebyevaluatingthequalityofQApairs.Harperetal.[25]triedtodeterminewhichquestionsandanswershavearchivalvaluebyanalyz-ingthediﬀerencesbetweenconversationalquestionsandinformationalquestions.Informationalquestionsrefertothequestionswiththeintentofobtaininginformationtheaskercouldlearnfrom.Anexampleis“IsdrinkingCokegoodforhealth?”.Conversationalquestionsrefertothequestionswiththeintentofstimulatingdiscussion.Inthesequestions,theusersmayaimatgettingopinionsorself-expression.Anexampleis“DoyoulikedrinkingCoke?”.Theauthorspresentevidencethatcon-versationalquestionstypicallyhavemuchlowerpotentialarchivalvaluethaninformationalquestions.Further,theyusedmachinelearningtech-niquestoautomaticallyclassifyquestionsasconversationalorinforma-tionalfromperspectivesoftheprocessaboutcategorical,linguistic,andsocialdiﬀerencesbetweendiﬀerentquestiontypes.Agichteinetal.[5]TextAnalyticsinSocialMedia397introducedageneralclassiﬁcationframeworkforcombiningtheevidencefromdiﬀerentsources,thatcanbetunedautomaticallyforqualitypre-dictionofQApairs.Inparticular,theyexploitfeaturesofQApairsthatareintuitivelycorrelatedwithquality,includingintrinsiccontentquality,interactionsbetweencontentcreatorsandusers,aswellasthecontentusagestatistics.Thenaclassiﬁeristrainedtoappropriatelyselectandweightthefeaturesforeachspeciﬁctypeofitem,task,andqualitydeﬁnition.3.3SocialTaggingSocialtaggingisamethodforInternetuserstoorganize,store,man-ageandsearchfortags/bookmarks(alsoasknownassocialbookmark-ing)ofresourcesonline.Unlikeﬁlesharing,theresourcesthemselvesaren’tshared,merelythetagsthatdescribesthemorbookmarksthatreferencethem6.Theriseofsocialtaggingservicespresentsapotentialgreatdealofdataforminingusefulinformationontheweb.Theusersoftaggingserviceshavecreatedalargevolumeoftaggingdatawhichhasattractedrecentattentionfromtheresearchcommunity.Fromoceansoftags,itisdiﬃcultforausertoquicklylocatetherelevantresourceshewantsviabrowsingthetags.Typically,thetaggingservicesprovidekeyword-basedsearchwhichreturnsresourcesannotatedbythegiventags.However,theresultsreturnedbythesearchmoduleareinade-quateforuserstodiscoverinterestingresourcesduetotheshortandunstructurednatureoftags.First,itisverydiﬃculttodesignanef-fectivetagrankingalgorithmduetotheshortlengthandsparsenessoftags.Second,currentsystemsaredesignedforkeywordsbasedsearch,whichfailedtocapturethesemanticrelationshipbetweentwosemanti-callyrelatedtags.Forexample,whenausersearchesforarecentevent,suchas“EgyptianRevolution”,thesystemswillreturnresultsthataretaggedas“Egyptian”or“Revolution”.Amongthem,resourcestaggedwith“Mubarak’sresignation”and“Protest”whicharehighlyrelatedto“EgyptianRevolution”willbeignored.This“semanticgap”resultsinmanyvaluableandinterestingresultsoverlookedandburiedindisorga-nizedresources.Researchworkinsocialtaggingservicescanbetypicallydividedintotwocategories:oneaimstoimprovethequalityoftagrecommendationandtheotherstudieshowtoutilizesocialtaggingresourcestofacilitateotherapplications.First,SigurbjornssonandVan[48]investigatehowtoassistusersduringthetaggingphaseinmultimediasharingsites(Flickr).6http://en.wikipedia.org/wiki/Socialbookmarking/398MININGTEXTDATATheypresentandevaluatetagrecommendationstrategiestosupporttheuserinthephotoannotationtaskbyrecommendingasetoftagsthatcanbeaddedtothephoto.Yinetal.[61]addresstheproblemoftagpredictionbyproposingaprobabilisticmodelforpersonalizedtagprediction.Ontheotherhand,socialtaggingresourcesareexploitedtoimproveotherwebapplications,includingwebobjectclassiﬁcation[62],documentrecommendation[23],websearchquality[26]etc.3.4BridgingtheSemanticGapAswediscussedinSection2,thetextualdatainsocialmediaisshortandunstructured.Whenprocessingthiskindofdata,traditionalbagofwords(BOW)approachisinherentlylimited,asitcanonlyusepiecesofinformationthatareexplicitlymentionedinthedocuments[18].Con-sideronefamousmovie“TheDarkKnight”.Byminingtheoriginalpostsrelatedtothismovie,itisinadequatetobuildthesemanticre-lationshipwithotherrelevantconceptsduetothesemanticgap.Forexample,“TheDarkKnight”and“Batman”arediﬀerentnamesofonemovie,buttheycannotbelinkedasthesameconceptwithoutaddi-tionalinformationfromexternalknowledge.Speciﬁcally,thisapproachhasnoaccesstothewealthofworldknowledgepossessedbyhumans,andiseasilypuzzledbyfactsandtermsnotmentionedinthedataset.Recently,researchershaveproposedsemanticknowledgebasestobridgethewidelyextantsemanticgapinshorttextrepresentation.Theaggregationofinformationingroupsisoftenbetterthanwhatcouldhavebeenmadebyanysinglememberofthegroup[52].Wikipediaisafree,web-based,collaborative,multilingualencyclopediaproject.Its18millionarticleshavebeenwrittencollaborativelybyvolunteersaroundtheworld,andalmostallofitsarticlescanbeeditedbyanyonewithaccesstothesite7.Unlikeotherstandardontologies,suchasWordNetorMesh,Wikipediaisnotastructuredthesauruseditedbyexperts,butitwascontributedcollaborativelybyusersontheweb.Itiscompre-hensive,uptodateandwell-formed[29].InWikipedia,eacharticleconcentratesononespeciﬁctopic.Thetitleofeacharticleisasuc-cinctphrasethatresemblesanontologyterm.Equivalentconceptsaregroupedtogetherbyredirectedlinks.Meanwhile,Wikipediacontainsahierarchicalcategorizationsystem,inwhicheacharticlebelongstoatleastonecategory.AllthesefeaturesaremakingWikipediaapotentialontologyforenhancingtextrepresentation.7http://en.wikipedia.org/wiki/Wikipedia/TextAnalyticsinSocialMedia399Somemethodswereproposedtotackletheproblemsofdatasparse-nessandthesemanticgapinshorttextsclusteringandclassiﬁcationbyexploitingsemanticknowledge.Somnathetal.[8]proposedamethodtoenrichshorttextrepresentationwithadditionalfeaturesfromWikipedia.ThemethodusedtitlesofWikipediaarticlesasadditionalexternalfea-tures,anditshowedimprovementintheaccuracyofshorttextscluster-ing.Phanetal.[45]presentedaframeworkforbuildingclassiﬁersthatdealwithshorttextsfromtheWebandachievedqualitativeenhance-ment.Theunderlyingideaoftheframeworkistocollectlarge-scaledataandthenbuildaclassiﬁeronbothlabeleddataandexternalsemanticsforeachclassiﬁcationtask.Inaddition,researchers[56,18,58]analyzedthedocumentsandfoundrelatedontologicalconceptswithinWordNetandWikipedia,inturnproducingasetoffeaturesthataugmentstan-dardBOW.TowardsimprovingthemanagementofGooglesnippets,existingmethodsfocuseitheronclassifyingthewebtextsintosmallercategories[28]orassigninglabelsforeachcategory[10]withthehelpofWikipedia.3.5ExploitingthePowerofAbundantInformationAbundantinformationassociatedwithtextualinformationisubiq-uitousinsocialmedia.OnTwitter,forexample,twomicrobloggingmessagescanbelinkedtogetherviatheirauthors’follower,followee,retweetorreplyrelationship;twomicrobloggingmessagescanbeclassi-ﬁedintothesameorsimilarcategorywhentheysharethesamehashtagorcontainsamehyperlink;semanticsimilaritybetweentwomicroblog-gingmessagescanbemeasuredbasedontheirpostingtime(timestamp),postingplace(geotag),author’spersonalinformation(proﬁle),etc.Sim-ilarphenomenacanbeobservedinFacebook,LinkedIn,Wikipediaandothersocialmediasites.Diﬀerentfromi.i.d.documentsintraditionalmedia,ifonecanutilizetheseabundantinformationavailableinsocialmedia,performanceofmanytextanalyticsmethodsmaybesigniﬁcantlyimproved.Toutilizetheabundantinformationappearingalongwithtextcon-tentinsocialmedia,recentmethodshavebeenproposedtointegratethisintotextanalyticstasks,includingclassiﬁcation,clusteringetc..Amongthesemethods,acombinationoflinkandtextcontentforminingpur-posesisbecomingpopular.Amajordiﬀerencebetweenthesetwokindsofmethodsisthattraditionalmethodsmeasurethesimilaritybetweendocumentspurelybasedonattributesimilarity(e.g.cosinesimilaritybe-tweentwoattributevectors);whilethemethodsfortextinsocialmedia400MININGTEXTDATAmeasuresdocumentsimilaritybasedonconnectivity(e.g.thenumberofpossiblepathsbetweenauthorsofthedocuments)andstructuralsimi-larity(e.g.thenumberofsharedneighbors)[68],besidestheattributesimilarityoftextcontent.Linksclearlycontainhigh-qualitysemanticalcluesthatarelostinpurelytext-basedmethods,butexploitinglinkin-formationisnoteasy.Themajordiﬃcultyisthesimilaritymeasurementbetweeneachpairofobjects,duetothecharacteristicsofdiﬀeringsocialnetworks:Multi-dimensionalsocialnetworks.Theconnectionsbetweenusersinsocialmediaareoftenmulti-dimensional[53].Userscanconnecttoeachotherfordiﬀerentreasons,e.g.,alumni,colleagues,livinginthesamecommunity,sharingsimilarinterests,etc.Diﬀerenttypesoflinkshavediﬀerentsemanticmeaningsassociatedwiththeirrespectivelatentsocialdimensions.Networkrepresentation.Traditionaltextanalyticsmethodsuti-lizelocalfeaturesorattributestorepresentdocuments.However,thereisnonaturalfeaturerepresentationforalltypesofnetworkdata[31].Whenweuseanadjacencymatrixtorepresentanet-work,thematrixwillbeverysparse,highlydimensionalanditsequalweightscannotreﬂecttiestrengthwell.Moreover,obtain-inglabelsofobjectsinsocialnetwork,whichisveryimportantforsupervisedlearningmethods,appearstobeveryexpensive.Dynamicnetworks.Diﬀerentfromconstantnewscollectionsoradocumentscorpus,socialmediaisevolvingcontinuously,withnewusersjoiningthenetwork,extantusersconnectingwitheachotherorbecomingdormant.Itisimperativetoupdatetheacquiredcommunitystructure.Asaresult,howtoeﬃcientlyintegratetheupdatednetworkinformationisveryimportantformanyapplica-tions.Manymethodshavebeenproposedtotacklethechallengesandmakeuseoflinkinformationsources.Toourknowledge,theﬁrsttopicclas-siﬁcationsystemthatsimultaneouslyutilizestextualandlinkfeatureswasdiscussedin[11].Theauthorsaimtoproposeastatisticalmodelandarelaxationlabelingtechniquetobuildaclassiﬁerbyexploitinglinkinformationformneighborsofthedocuments.SimilarlyFurnkranz[17]foundthatitispossibletoclassifydocumentsmorereliablywithinfor-mationoriginatingfrompagesthatpointtothedocumentthanwithfeaturesthatarederivedfromthedocumentitself.Later,Chakrabartietal.[6]proposedagraph-basedtextclassiﬁcationmethodbylearningTextAnalyticsinSocialMedia401fromtheirneighbors.Thediﬀerencebetweenthesetwokindsoftech-niquesisthatthelatteroneconsideredmorefactorsinsocialnetworks,includingthenetworkevolution(dynamicnetwork),pruningofedgesfromtheneighborhoodgraph,andweighingtheinﬂuenceofedgesandedgesthemselvesbycontentsimilaritymeasures.Recently,AggarwalandLi[3]presentedaneﬃcientandscalablemethodtotackletheprob-lemofnodeclassiﬁcationindynamicinformationnetworkswithbothtextcontentandlinks.Tofacilitateaneﬀectiveclassiﬁcationprocess,diﬀerentfrompreviousmodels,theyusearandomwalkapproachincon-junctionwiththecontentofthenetwork.Thisdesignmakesthemodelmorerobusttovariationsincontentandlinkagestructure.Asidefromclassiﬁcation,linkinformationhasbeenalsosuccessfullyintegratedintotheapplicationsofclustering[68]andtopicmodeling[50].Itshowsthattheuseofbothlinkandtextinformationachievedmoreeﬀectiveresultsthanamethodbasedpurelyoneitherofthetwo[4].Inadditiontointegratingnetworkinformationintotextanalyticstasks,researchersfurtherexploitabundantinformation.In[51],ahet-erogeneousinformationnetworkisdeﬁnedasaninformationnetworkcomposedofmultipletypesofobject.Theauthorsexploredclusteringofmulti-typedheterogeneousnetworkswithastarnetworkschema,al-thoughclusteringonhomogeneousnetworkshasbeenwellstudiedoverdecades.Linksacrossmulti-typedobjectsareutilizedtogeneratehigh-qualitynet-clusters.Thegeneralideaoftheproposedframeworkistoavoidmeasuringthepairwisesimilaritybetweenobjects,whichishardinheterogeneousnetworks.Instead,itmapseachtargetobjectintoalowdimensionalspacedeﬁnedbycurrentclusteringresults.Thenev-erytargetobjectintheseclusterswillbereadjustedbasedonthenewmeasure.Theclusteringresultswillbeimprovedineachiterationuntilconvergence.3.6RelatedEﬀortsAsidefromthetopicsdiscussedintheprevioussections,evenmoreattemptshavebeenexploredinminingsocialmediaresources.InSocialNetworkAnalysis,researchersutilizevariousinformationsuchastheposts,links,tags,etc.,toidentifyinﬂuentialusersintheblogsphere[2]andmicroblogsphere[7],tounderstanduserbehaviorinmicroblogspherebyanalyzingtheuserintentionsassociatedatacommunitylevel[30,33].InSentimentAnalysis,Conneretal.investigateseveralsurveysonconsumerconﬁdenceandpoliticalopinion,connectmeasuresofpublicopinionmeasuredfrompollswithsentimentmeasuredfromtext[14].Geranietal.useageneralopinionlexiconandproposeusingproximity402MININGTEXTDATAinformationinordertocaptureopiniontermrelatednesstoimproveopinionretrievalintheblogsphere[21].InKnowledgeManagement,LermanandHogg[35]useamodelofsocialdynamicstopredictthepopularityofnews.Incorporatingaspectsofwebsitedesign,themodelimprovesonpredictionsbasedonsimplyextrapolatingfromearlyvotes.Luetal.exploitcontextualinformationabouttheauthors’identitiesandsocialnetworksforimprovingreviewqualityprediction[38].Thismodelimprovespreviouswork,whichaddressedtheproblembytreatingareviewasastand-alonedocument,extractingfeaturesfromthereviewtext,andlearningafunctionbasedonthesefeaturesforpredictingthereviewquality.4.AnIllustrativeExampleInthissection,wepresentonerealworldapplicationtofurtheril-lustratehowtoutilizetextanalyticstosolveproblemsinsocialmediaapplications.Wenowintroduceaneﬀectivewaytoimprovetheshorttextrepresentationqualitybyintegratingsemanticknowledgeresources.AswediscussedinSection2,textualdatainsocialmediahastheproblemsofdatasparsenessandsemanticgap.Oneeﬀectivewaytosolvetheseproblemsistointegratesemanticknowledge,whichhasbeenfoundtobeusefulindealingwiththesemanticgap[18].Forexample,theﬁrstsearchresultreturnedbyGoogleusing“Friday”asthequerydoesnotcontainanywordsorphrasesrelatedto“RebeccaBlack”,whilewelearnthatthesingercreatesovernightsensationsbysharingthesongviaYouTube.Becausetheyhavenowordsorphrasesoverlapping,thisresultcannotbesuccessfullybuildconnectionwithRebeccarelatedcontent.Thus,oneintuitiveideaistoenrichthecontextsofbasictextrepresentationbyexploitingsemanticresources.Now,wefollowthebasicideaproposedin[28]toillustratethreestepsoffeaturegenerationindetail:SeedPhraseExtractionfromtheoriginaltextcorpus,SemanticFeaturesGenerationbasedonseedphrasesandFeatureSpaceConstruction.4.1SeedPhraseExtractionGivenatextcorpus,featurescanbederivedbyemployingdiﬀerenttechniquesinNLP.Theonlyrequirementisthattheextractedfeaturescouldbeinformativetocoverthekeysubtopicsdescribedintheshorttexts.Hereweuseshallowparsing[24]todividesentencesintoase-riesofwordsthattogethercomposeagrammaticalunit.Toensuretheextractedfeaturesareabletocovermaintopics,weusethesephrasesgeneratedbyshallowparser,withthecombinationofsentencesintheTextAnalyticsinSocialMedia403originaltext,toextracttheseedphrases.However,thereareredundan-ciesbetweenthesetwokindsoffeatures.Ifweemployallthesefeaturesasseedphrases,theywouldproducesomeduplicateinformationbetweeneachother.Therefore,tomakethetradeoﬀbetweeninformativenessandeﬀectiveness,weproposetomeasurethesemanticsimilaritybetweensen-tencelevelfeaturesandphraselevelfeaturestoeliminateinformationredundancy.Severalmethodshavebeenproposedtocalculatethesemanticsimi-laritybetweenassociations[12]usingwebsearch.However,alongwiththeincreasingscaleoftheweb,thepagecountsprovidedbysomecom-mercialsearchenginesarenotsoreliable[15].Thusinsteadofsimplyusingthesearchenginepagecounts,weproposeaphrase-phraseseman-ticsimilaritymeasuringalgorithmusingaco-occurrencedoublecheckinWikipediatoreducethesemanticduplicates.ForWikipedia,wedown-loadtheXMLcorpus[16],removexmltagsandcreateaSolr8indexofallXMLarticles.LetTdenoteasentencelevelfeature,T={t1,t2,...,tn},wheretide-notesthephraselevelfeaturecontainedinT.Thesentencelevelfeatureistoosparsetocalculateitsfrequencydirectly.Therefore,wecalculatethesemanticsimilaritybetweentiand{t1,t2,...,tn}asInfoScore(ti)instead.Weselectthephraselevelfeaturewhichhasthelargestsimi-laritywithotherfeaturesinTandremoveitastheredundantfeature.Giventwophrasestiandtj,weusetiandtjseparatelyasaquerytoretrievetopCWikipediapagesfromthebuiltindex.Thetotaloc-currencesoftiinthetopCWikipediapagesretrievedbyquerytjisdenotedasf(ti|tj);andwedeﬁnef(tj|ti)inasimilarmanner.ThetotaloccurrencesoftiinthetopCWikipediapagesretrievedbyquerytiisdenotedasf(ti),andsimilarlyforf(tj).Thevariantsofthreepopularco-occurrencemeasures[15]aredeﬁnedasbelow:WikiDice(ti,tj)=⎧⎪⎪⎨⎪⎪⎩0iff(ti|tj)=0orf(tj|ti)=0f(ti|tj)+f(tj|ti)f(ti)+f(tj)otherwise,(12.4)whereWikiDiceisavariantoftheDicecoeﬃcient.WikiJaccard(ti,tj)=min(f(ti|tj),f(tj|ti))f(ti)+f(tj)−max(f(ti|tj),f(tj|ti)),(12.5)whereWikiJaccardisavariantoftheJaccardcoeﬃcient.8http://lucene.apache.org/solr/404MININGTEXTDATAWikiOverlap(ti,tj)=min(f(ti|tj),f(tj|ti))min(f(ti),f(tj)),(12.6)whereWikiOverlapisavariantoftheOverlap(Simpson)coeﬃcient.Foreaseofcomparison,allthen22WikiDicesimilarityscoresarenor-malizedintovaluesin[0,1]rangeusingthelinearnormalizationformuladeﬁnedbelow:WDij=WikiDiceij−min(WikiDicek)max(WikiDicek)−min(WikiDicek),(12.7)wherekisfrom1ton22.WeagaindeﬁneWJijandWOijinasimilarmanner.Alinearcombinationisthenusedtoincorporatethethreesim-ilaritymeasuresintoanoverallsemanticsimilaritybetweentwophrasestiandtj,asfollows:WikiSem(ti,tj)=(1−α−β)WDij+αWJij+βWOij,(12.8)whereαandβweighttheimportanceofthethreesimilaritymeasures.Textclusteringisanunsupervisedmethodwherewedonothaveanylabeleddatatotunetheparameters.Wethusempiricallysetαandβtoequalweight.Foreachsentencelevelfeature,weranktheinformationscoredeﬁnedinEquation12.9foritschildnodefeaturesatphraselevel.InfoScore(ti)=n(cid:8)j=1,j(cid:5)=iWikiSem(ti,tj).(12.9)Finally,weremovethephraselevelfeaturet∗,whichdelegatesthemostinformationduplicatestothesentencelevelfeatureT,deﬁnedas:t∗=argmaxti∈{t1,t2,...,tn}InfoScore(ti).(12.10)4.2SemanticFeatureGenerationAfterextractingtheseedphrasesfromtheﬁrststep,weobtainaninformativeandeﬀectivebasicrepresentationoftheinputtextcorpus.Inthisstep,wediscussanalgorithmtogeneratesemanticfeaturesbasedontheseedphrasesusingWikipediaasbackgroundknowledge.4.2.1BackgroundKnowledgeBase.Wikipedia,asback-groundknowledge,hasawiderknowledgecoveragethanothersemanticknowledgebasesandisregularlyupdatedtoreﬂectrecentevents.Underthisscenario,wetakeWikipediaasthesemanticknowledgesourcetogeneratesemanticconcepts.GabrilovichandMarkovitch[19],aswellasHuetal.[27]prepro-cessedtheWikipediacorpustocollectsemanticconcepts.PreprocessingTextAnalyticsinSocialMedia405Algorithm1:GenerateFeatures(S)input:asetSofseedphrasesoutput:semanticfeaturesSFSF←nullforseedphrases∈Sdoifs∈Sentencelevelthens.Query←SolrSyntax(s,OR)elses.Query←SolrSyntax(s,AND)WikiPages←Retrive(s.Query)SF←SF+Analyze(WikiPages)returnSFFigure12.2.SemanticfeaturegenerationschemeWikipediaisonewaytobuildtheconceptsspace.However,itignoresthevaluablecontextualinformationofWikipediaplaintextsandalwaysencountersproblemswhenmappingtheoriginaltexttoappropriatecon-cepts.Therefore,inthisstudyweintroduceanotherwaytoprocesstheWikipediacorpus,itistopreservetheoriginalpagesofWikipediawiththebuilt-inSolrindex.4.2.2FeatureGenerator.ThesemanticfeaturegenerationalgorithmisillustratedinFigure12.2.Givenaseedphrase,weretrievecorrespondingWikipediapageswiththehelpoftheSolrsearchengine.ThenweextractsemanticconceptsfromtheretrievedWikipediapages.InordertoretrievetheappropriatepagesfromthelargeWikipediacorpus,wederivequeriesbasedonseedphrasearisingfromsentencelevelorphraselevelseparately.Asthekeyinformationofseedphrasesfromphraselevelismorefocused,webuildthe”AND”querywhichrequirestheretrievedpagestocontaineveryterminthephrase.Ontheotherhand,theseedphrasesfromsentencelevelareinformativebutsparse,wethusbuild”OR”query9whichmeansthereisnoguaran-teethattheretrievedWikipediapageswillcontaineveryterminthephrase.Weusethesetwokindsofqueriestoretrievethetopωarti-clesfromtheWikipediacorpora.Similarto[8],weextracttitlesandboldterms(links)fromtheretrievedWikipediapagestoserveaspart9Formoredetailsabout“AND”and“OR”querysyntax,pleaserefertohttp://wiki.apache.org/solr/SolrQuerySyntax/406MININGTEXTDATAofthesemanticfeatures.Todiscovertheintrinsicconceptshiddenintheplaintexts,weadoptaneﬀectivekeyphraseextractionalgorithm—Lingo[44],whichusesalgebraictransformationsoftheterm-documentmatrixandimplementsfrequentphraseextractionusingsuﬃxarrays.ThekeyphrasesextractedfromtheWikipediapagesareaddedtothesemanticfeaturespace.Byutilizingthismethod,wemayobtainextrin-sicconcepts“Friday”forthephrase“RebeccaBlack”andtheintrinsicconceptslike“Song”,“Singer”and“Youtube”byminingtherelatedpages.Therefore,wecanbuildsemanticrelationshipsbetweenthecon-ceptsof“Friday”and“RebeccaBlack”.4.3FeatureSpaceConstructionAstheconstructionofWikipediafollowsthenon-bindingguidelinesandthedataqualityisonlyundersocialcontrolbythecommunity[65],itoftenintroducesnoisetothecorpus.Meanwhile,asingletextmaygenerateahugenumberoffeatures.Theseoverzealoussemanticfeaturesbringadverseimpactontheeﬀectivenessanddilutetheinﬂuenceofvaluableoriginalinformation.Therefore,weconductfeatureﬁlteringtoreﬁnetheunstructuredormeaninglessfeaturesandapplyfeatureselectiontoavoidaggravatingthe“curseofdimensionality”.FeatureFiltering:Weformulateempiricalrulestoreﬁnetheun-structuredfeaturesobtainedfromWikipediapages,sometypicalrulesareasfollows:Removefeaturesgeneratedfromtoogeneralseedphrasethatre-turnsalargenumber(morethan10,000)ofarticlesfromtheindexcorpus.TransformfeaturesusedforWikipediamanagementoradminis-tration,e.g.“Listofhotels”→“hotels”,“Listoftwins”→“twins”.ApplyphrasesensestemmingusingPorterstemmer[46],e.g.“ﬁc-tionalbooks”→“ﬁctionbook”.Removefeaturesrelatedtochronology,e.g.“year”,“decade”and“centuries”.FeatureSelection:Weneedtoselectsemanticfeaturestoconstructfeaturespaceforvarioustasks.Thenumberofsemanticfeaturesweneedtocollectisdeterminedbythespeciﬁctask.Inthischapter,weutilizeasimplewaytoselectthemostfrequentfeatures.First,thetf-idfweightsofallgeneratedfeaturesarecalculated.Oneseedphrasesi(0<i≤m)maygenerateksemanticfeatures,denotedby{fi1,fi2,...,fik}.InordertoexplorethediversityofthesemanticTextAnalyticsinSocialMedia407features,weselectonefeatureforeachseedphrase.Thusmfeaturesarecollectedasfollows:f∗i=argmaxfij∈{fi1,fi2,...,fik}tfidf(fij).(12.11)Second,thetopnfeaturesareextractedfromtheremainingsemanticfeaturesbasedontheirfrequency.Thesefrequentlyappearingfeatures,togetherwiththefeaturesfromtheﬁrststep,areusedtoconstructthem+nsemanticfeatures.Nowwepreparethefeaturespaceforclustering,classiﬁcationorothertextanalyticsmethods.Fromthediscussionabove,keyideaoftheframeworkistointroducesemanticknowledgebase(Wikipedia)tobuildsemanticconnectionbetweentwoshortdocuments.Thissectionpro-videsaclearmindabouthowtoapplytextanalyticsmethodsinsocialmediaresources.5.ConclusionandFutureWorkTextualdatainsocialmediacarriesabundantinformation.User-generatedcontentprovidesdiverseanduniqueinformationinformsofcomments,postsandtags.Theusefulinformationhiddeninthetextresourcesofsocialmediaprovidesopportunitiesforresearchersofdiﬀer-entdisciplinestominepatternsandinformationofinterestthatmightnotbeobvious.Inthischapter,wediscussaboutthedistinctaspectsoftextualdatainsocialmediaandtheirchallenges,andelaboratecur-rentworkofutilizingtextanalyticsmethodstosolveproblemsinsocialmedia.Thischapterhasonlydiscussedsomeessentialissues.Thereareanumberofinterestingdirectionsforfurtherexploration.Howtobettermakeuseofthereal-timenatureinsocialmedia?Areal-timesearchsystemwhichcanﬁnd,summarizeandtrackupdatedbreakingnewsoreventsinsocialcommunitieswillbeverychallengingbutuseful.Howtohandletextualdatawithshortlengthinsocialmedia?Aswediscussed,shorttextplaysaveryimportantroleinsocialmedia.Ononehand,thesetextualdatacontainslessinformationthanstandarddocuments;ontheotherhand,itprovidespossibilityforustousetraditionalsyntax-basedNLPmodelstoperformﬁne-leveltextualanalysis,whichwereverytimeconsumingforstandardtext.408MININGTEXTDATAHowtoexploitcrossmediadatatofacilitatesocialbehavioranaly-sis?Crossmediadatahererefersdataofdiﬀerentformatsordatafromdiﬀerentsocialmediaresources[64].Thevariancetypesofdatainsocialmedia,includingtext,image,linkorevenmultilin-gualdata,havelatentrelationshipsandinteractionsbetweeneachother.Also,aneﬃcientandeﬀectivewaytointegratethesekindsofdatawillbeveryusefultoaddressthedatasparsenessproblem.Howtoprocesswebscaledataavailableinsocialmedia?Thelargevolumeandthecompactbutnoisypresentationoftextualdatainsocialmediahinderstheaccessibilityofinformationforuserstoconvenientlysearch,navigateandlocatethespeciﬁcmessagesonemightbeinterestedin.Findinganeﬃcientwaytohandletheselargescaledatatypesisverychallenging.AcknowledgmentsThisworkis,inpart,supportedbythegrantsNSF(#0812551),ONR(N000141010091)andAFOSR(FA95500810132).TheauthorswouldliketoacknowledgealloftheresearchersinArizonaStateUniversity’sDataMiningandMachineLearningLaboratory.Theviewsexpressedinthischapteraresolelyattributedtotheauthorsanddonotrepresenttheopinionsorpoliciesofanyofthefundingagencies.References[1]L.Adamic,J.Zhang,E.Bakshy,andM.Ackerman.Knowledgesharingandyahooanswers:everyoneknowssomething.InProceed-ingofthe17thinternationalconferenceonWorldWideWeb,pages665–674.ACM,2008.[2]N.Agarwal,H.Liu,L.Tang,andP.S.Yu.Identifyingtheinﬂu-entialbloggersinacommunity.InProceedingsoftheinternationalconferenceonWebsearchandwebdatamining,WSDM’08,pages207–218,NewYork,NY,USA,2008.ACM.[3]C.C.AggarwalandN.Li.Onnodeclassiﬁcationindynamiccontent-basednetworks.InTheEleventhSIAMInternationalCon-ferenceonDataMining,pages355–366,2011.[4]C.C.AggarwalandH.Wang.Textmininginsocialnetworks.SocialNetworkDataAnalytics,pages353–378,2011.[5]E.Agichtein,C.Castillo,D.Donato,A.Gionis,andG.Mishne.Findinghigh-qualitycontentinsocialmedia.InProceedingsoftheinternationalconferenceonWebsearchandwebdatamining,WSDM’08,pages183–194,NewYork,NY,USA,2008.ACM.TextAnalyticsinSocialMedia409[6]R.AngelovaandG.Weikum.Graph-basedtextclassiﬁcation:learnfromyourneighbors.InProceedingsofthe29thannualinternationalACMSIGIRconferenceonResearchanddevelopmentininforma-tionretrieval,pages485–492.ACM,2006.[7]E.Bakshy,J.Hofman,W.Mason,andD.Watts.Identifyinginﬂu-encersontwitter.InProceedingsofthefourthACMInternationalConferenceonWebSearchandDataMining,2011.[8]S.Banerjee,K.Ramanathan,andA.Gupta.Clusteringshorttextsusingwikipedia.InProceedingsofthe30thannualinternationalACMSIGIRconferenceonResearchanddevelopmentininforma-tionretrieval,pages787–788.ACM,2007.[9]G.BarbierandH.Liu.InformationProvenanceinSocialMe-dia.SocialComputing,Behavioral-CulturalModelingandPredic-tion,pages276–283,2011.[10]D.Carmel,H.Roitman,andN.Zwerdling.Enhancingclusterlabel-ingusingwikipedia.InProceedingsofthe32ndinternationalACMSIGIRconferenceonResearchanddevelopmentininformationre-trieval,pages139–146.ACM,2009.[11]S.Chakrabarti,B.Dom,andP.Indyk.Enhancedhypertextcate-gorizationusinghyperlinks.InACMSIGMODRecord,volume27,pages307–318.ACM,1998.[12]H.-H.Chen,M.-S.Lin,andY.-C.Wei.Novelassociationmea-suresusingwebsearchwithdoublechecking.InProceedingsofthe21stInternationalConferenceonComputationalLinguisticsandthe44thannualmeetingoftheAssociationforComputationalLinguis-tics,pages1009–1016.AssociationforComputationalLinguistics,2006.[13]L.ChenandA.Roy.EventdetectionfromFlickrdatathroughwavelet-basedspatialanalysis.InProceedingofthe18thACMcon-ferenceonInformationandknowledgemanagement,pages523–532.ACM,2009.[14]B.Connor,R.Balasubramanyan,B.R.Routledge,andN.A.Smith.Fromtweetstopolls:Linkingtextsentimenttopublicopiniontimeseries.InProceedingsoftheInternationalAAAIConferenceonWeblogsandSocialMedia,pages122–129,2010.[15]B.Danushka,M.Yutaka,andI.Mitsuru.Measuringsemanticsim-ilaritybetweenwordsusingwebsearchengines.InProceedingsofthe16thinternationalconferenceonWorldWideWeb,WWW’07,pages757–766,2007.410MININGTEXTDATA[16]L.DenoyerandP.Gallinari.Thewikipediaxmlcorpus.SIGIRForum,40(1):64–69,2006.[17]J.F”urnkranz.Exploitingstructuralinformationfortextclassiﬁcationonthewww.AdvancesinIntelligentDataAnalysis,pages487–497,1999.[18]E.GabrilovichandS.Markovitch.Featuregenerationfortextcate-gorizationusingworldknowledge.InInternationaljointconferenceonartiﬁcialintelligence,volume19,page1048,2005.[19]E.GabrilovichandS.Markovitch.Overcomingthebrittlenessbot-tleneckusingwikipedia:Enhancingtextcategorizationwithency-clopedicknowledge.InProceedingsoftheNationalConferenceonArtiﬁcialIntelligence,volume21,page1301,2006.[20]E.GabrilovichandS.Markovitch.Computingsemanticrelatednessusingwikipedia-basedexplicitsemanticanalysis.InProceedingsofthe20thInternationalJointConferenceonArtiﬁcialIntelligence,pages6–12,2007.[21]S.Gerani,M.J.Carman,andF.Crestani.Proximity-basedopin-ionretrieval.InProceedingofthe33rdinternationalACMSIGIRconferenceonResearchanddevelopmentininformationretrieval,SIGIR’10,pages403–410,NewYork,NY,USA,2010.ACM.[22]M.Gray,B.Team,J.Pickett,D.Hoiberg,D.Clancy,P.Norvig,J.Orwant,andS.Pinker.QuantitativeAnalysisofCultureUsingMillionsofDigitizedBooks.science,1199644(176):331,2011.[23]Z.Guan,C.Wang,J.Bu,C.Chen,K.Yang,D.Cai,andX.He.Documentrecommendationinsocialtaggingservices.InProceed-ingsofthe19thinternationalconferenceonWorldwideweb,WWW’10,pages391–400,NewYork,NY,USA,2010.ACM.[24]J.Hammerton,M.Osborne,S.Armstrong,andW.Daelemans.In-troductiontospecialissueonmachinelearningapproachestoshal-lowparsing.MachineLearningResearch,2:551–558,2002.[25]F.M.Harper,D.Moy,andJ.A.Konstan.Factsorfriends?:dis-tinguishinginformationalandconversationalquestionsinsocialqasites.InProceedingsofthe27thinternationalconferenceonHumanfactorsincomputingsystems,CHI’09,pages759–768,NewYork,NY,USA,2009.ACM.[26]P.Heymann,G.Koutrika,andH.Garcia-Molina.Cansocialbook-markingimprovewebsearch?InProceedingsoftheinternationalconferenceonWebsearchandwebdatamining,pages195–206.ACM,2008.TextAnalyticsinSocialMedia411[27]J.Hu,L.Fang,Y.Cao,H.Zeng,H.Li,Q.Yang,andZ.Chen.EnhancingtextclusteringbyleveragingWikipediasemantics.InProceedingsofthe31stannualinternationalACMSIGIRconferenceonResearchanddevelopmentininformationretrieval,pages179–186.ACM,2008.[28]X.Hu,N.Sun,C.Zhang,andT.-S.Chua.Exploitinginternalandexternalsemanticsfortheclusteringofshorttextsusingworldknowledge.InProceedingofthe18thACMconferenceonInforma-tionandknowledgemanagement,pages919–928.ACM,2009.[29]X.Hu,X.Zhang,C.Lu,E.K.Park,andX.Zhou.Exploitingwikipediaasexternalknowledgefordocumentclustering.InPro-ceedingsofthe15thACMSIGKDDinternationalconferenceonKnowledgediscoveryanddatamining,pages389–396.ACM,2009.[30]A.Java,X.Song,T.Finin,andB.Tseng.Whywetwitter:under-standingmicrobloggingusageandcommunities.InProceedingsofthe9thWebKDDand1stSNA-KDD2007workshoponWebminingandsocialnetworkanalysis,pages56–65.ACM,2007.[31]M.Ji,Y.Sun,M.Danilevsky,J.Han,andJ.Gao.Graphregularizedtransductiveclassiﬁcationonheterogeneousinformationnetworks.MachineLearningandKnowledgeDiscoveryinDatabases,pages570–586,2010.[32]G.KumaranandJ.Allan.Textclassiﬁcationandnamedentitiesforneweventdetection.InProceedingsofthe27thannualinter-nationalACMSIGIRconferenceonResearchanddevelopmentininformationretrieval,pages297–304.ACM,2004.[33]H.Kwak,C.Lee,H.Park,andS.Moon.Whatistwitter,asocialnetworkoranewsmedia?InProceedingsofthe19thinternationalconferenceonWorldwideweb,WWW’10,pages591–600,NewYork,NY,USA,2010.ACM.[34]Y.Lee,H.-y.Jung,W.Song,andJ.-H.Lee.Miningtheblogospherefortopnewsstoriesidentiﬁcation.InProceedingofthe33rdinter-nationalACMSIGIRconferenceonResearchanddevelopmentininformationretrieval,SIGIR’10,pages395–402,NewYork,NY,USA,2010.ACM.[35]K.LermanandT.Hogg.Usingamodelofsocialdynamicstopredictpopularityofnews.InProceedingsofthe19thinternationalconferenceonWorldwideweb,WWW’10,pages621–630,NewYork,NY,USA,2010.ACM.[36]D.LewisandW.Croft.Termclusteringofsyntacticphrases.InProceedingsofthe13thannualinternationalACMSIGIRconfer-412MININGTEXTDATAenceonResearchanddevelopmentininformationretrieval,pages385–404.ACM,1989.[37]C.Lin,B.Zhao,Q.Mei,andJ.Han.Pet:astatisticalmodelforpopulareventstrackinginsocialcommunities.InProceedingsofthe16thACMSIGKDDinternationalconferenceonKnowledgediscoveryanddatamining,pages929–938.ACM,2010.[38]Y.Lu,P.Tsaparas,A.Ntoulas,andL.Polanyi.Exploitingsocialcontextforreviewqualityprediction.InProceedingsofthe19thinternationalconferenceonWorldwideweb,WWW’10,pages691–700,NewYork,NY,USA,2010.ACM.[39]C.Macdonald,I.Ounis,andI.Soboroﬀ.Overviewofthetrec-2009blogtrack.ProceedingsofTREC2009,2010.[40]D.Margineantu,W.Wong,andD.Dash.Machinelearningalgo-rithmsforeventdetection.MachineLearning,79(3):257–259,2010.[41]J.McLean.StateoftheBlogosphere,introduction,2009.[42]M.Mendoza,B.Poblete,andC.Castillo.TwitterUnderCrisis:CanwetrustwhatweRT?In1stWorkshoponSocialMediaAnalytics(SOMA’10),2010.[43]S.Moturu.QuantifyingtheTrustworthinessofUser-GeneratedSocialMediaContent.PhDthesis,ArizonaStateUniversity,2009.[44]S.Osinski,J.Stefanowski,andD.Weiss.Lingo:Searchresultsclus-teringalgorithmbasedonsingularvaluedecomposition.InProceed-ingsoftheIIS:IIPWM’04Conference,page359,2004.[45]X.-H.Phan,L.-M.Nguyen,andS.Horiguchi.Learningtoclassifyshortandsparsetext&webwithhiddentopicsfromlarge-scaledatacollections.InProceedingofthe17thinternationalconferenceonWorldWideWeb,pages91–100.ACM,2008.[46]M.F.Porter.Analgorithmforsuﬃxstripping.Program,14(3):130–137,1980.[47]T.Sakaki,M.Okazaki,andY.Matsuo.Earthquakeshakestwitterusers:real-timeeventdetectionbysocialsensors.InProceedingsofthe19thinternationalconferenceonWorldwideweb,pages851–860.ACM,2010.[48]B.SigurbjornssonandR.VanZwol.Flickrtagrecommendationbasedoncollectiveknowledge.InProceedingofthe17thinterna-tionalconferenceonWorldWideWeb,pages327–336.ACM,2008.[49]A.Stavrianou,P.Andritsos,andN.Nicoloyannis.Overviewandsemanticissuesoftextmining.ACMSIGMODRecord,36(3):23–34,2007.TextAnalyticsinSocialMedia413[50]Y.Sun,J.Han,J.Gao,andY.Yu.itopicmodel:Informa-tionnetwork-integratedtopicmodeling.InDataMining,2009.ICDM’09.NinthIEEEInternationalConferenceon,pages493–502.IEEE,2009.[51]Y.Sun,Y.Yu,andJ.Han.Ranking-basedclusteringofheteroge-neousinformationnetworkswithstarnetworkschema.InProceed-ingsofthe15thACMSIGKDDinternationalconferenceonKnowl-edgediscoveryanddatamining,pages797–806.ACM,2009.[52]J.Surowiecki.Thewisdomofcrowds:Whythemanyaresmarterthanthefewandhowcollectivewisdomshapesbusiness,economies,societies,andnations.RandomHouseofCanada,2004.[53]L.TangandH.Liu.Relationallearningvialatentsocialdimensions.InProceedingsofthe15thACMSIGKDDinternationalconferenceonKnowledgediscoveryanddatamining,pages817–826.ACM,2009.[54]L.Urena-Lopez,M.Buenaga,andJ.Gomez.IntegratinglinguisticresourcesinTCthroughWSD.ComputersandtheHumanities,35(2):215–230,2001.[55]N.VanHouse.Flickrandpublicimage-sharing:distantclosenessandphotoexhibition.InCHI’07extendedabstractsonHumanfac-torsincomputingsystems,pages2717–2722.ACM,2007.[56]J.Wang,Y.Zhou,L.Li,B.Hu,andX.Hu.Improvingshorttextclusteringperformancewithkeywordexpansion.InTheSixthInter-nationalSymposiumonNeuralNetworks(ISNN2009),pages291–298.Springer,2009.[57]K.Wang,Z.Ming,X.Hu,andT.Chua.Segmentationofmulti-sentencequestions:towardseﬀectivequestionretrievalincQAser-vices.InProceedingofthe33rdinternationalACMSIGIRconfer-enceonResearchanddevelopmentininformationretrieval,pages387–394.ACM,2010.[58]P.WangandC.Domeniconi.Buildingsemantickernelsfortextclas-siﬁcationusingWikipedia.InProceedingofthe14thACMSIGKDDinternationalconferenceonKnowledgediscoveryanddatamining,pages713–721.ACM,2008.[59]X.Wang,L.Tang,H.Gao,andH.Liu.Discoveringoverlappinggroupsinsocialmedia.Inthe10thIEEEInternationalConferenceonDataMiningseries(ICDM2010),Sydney,Australia,December14-172010.[60]X.Wang,C.Zhai,X.Hu,andR.Sproat.Miningcorrelatedburstytopicpatternsfromcoordinatedtextstreams.InProceedingsofthe414MININGTEXTDATA13thACMSIGKDDinternationalconferenceonKnowledgediscov-eryanddatamining,pages784–793.ACM,2007.[61]D.Yin,Z.Xue,L.Hong,andB.D.Davison.Aprobabilisticmodelforpersonalizedtagprediction.InProceedingsofthe16thACMSIGKDDinternationalconferenceonKnowledgediscoveryanddatamining,KDD’10,pages959–968,NewYork,NY,USA,2010.ACM.[62]Z.Yin,R.Li,Q.Mei,andJ.Han.Exploringsocialtagginggraphforwebobjectclassiﬁcation.InProceedingsofthe15thACMSIGKDDinternationalconferenceonKnowledgediscoveryanddatamining,KDD’09,pages957–966,NewYork,NY,USA,2009.ACM.[63]J.Yuan,Z.Zha,Z.Zhao,X.Zhou,andT.Chua.Utilizingrelatedsamplestolearncomplexqueriesininteractiveconcept-basedvideosearch.InProceedingsoftheACMInternationalConferenceonImageandVideoRetrieval,pages66–73.ACM,2010.[64]R.ZafaraniandH.Liu.ConnectingCorrespondingIdentitiesacrossCommunities.InProceedingsofthe3rdInternationalConferenceonWeblogsandSocialMedia(ICWSM09),2009.[65]T.Zesch,C.Muller,andI.Gurevych.Extractinglexicalsemanticknowledgefromwikipediaandwiktionary.InProceedingsoftheConferenceonLanguageResourcesandEvaluation(LREC),pages1646–1652.Citeseer,2008.[66]Z.Zha,X.Hua,T.Mei,J.Wang,G.Qi,andZ.Wang.Jointmulti-labelmulti-instancelearningforimageclassiﬁcation.InComputerVisionandPatternRecognition,2008.CVPR2008.IEEEConfer-enceon,pages1–8.IEEE,2008.[67]Q.Zhao,P.Mitra,andB.Chen.Temporalandinformationﬂowbasedeventdetectionfromsocialtextstreams.InProceedingsofthe22ndnationalconferenceonArtiﬁcialintelligence-Volume2,pages1501–1506.AAAIPress,2007.[68]Y.Zhou,H.Cheng,andJ.Yu.Graphclusteringbasedonstruc-tural/attributesimilarities.ProceedingsoftheVLDBEndowment,2(1):718–729,2009.C.C. Aggarwal and C.X. Zhai (eds.), Mining Text Data, DOI 10.1007/978-1-4614-3223-4_13,

Chapter13ASURVEYOFOPINIONMININGANDSENTIMENTANALYSISBingLiuUniversityofIllinoisatChicagoChicago,ILliub@cs.uic.eduLeiZhangUniversityofIllinoisatChicagoChicago,ILlzhang32@gmail.comAbstractSentimentanalysisoropinionminingisthecomputationalstudyofpeo-ple’sopinions,appraisals,attitudes,andemotionstowardentities,in-dividuals,issues,events,topicsandtheirattributes.Thetaskistech-nicallychallengingandpracticallyveryuseful.Forexample,businessesalwayswanttoﬁndpublicorconsumeropinionsabouttheirproductsandservices.Potentialcustomersalsowanttoknowtheopinionsofexistingusersbeforetheyuseaserviceorpurchaseaproduct.Withtheexplosivegrowthofsocialmedia(i.e.,reviews,forumdis-cussions,blogsandsocialnetworks)ontheWeb,individualsandor-ganizationsareincreasinglyusingpublicopinionsinthesemediafortheirdecisionmaking.However,ﬁndingandmonitoringopinionsitesontheWebanddistillingtheinformationcontainedinthemremainsaformidabletaskbecauseoftheproliferationofdiversesites.Eachsitetypicallycontainsahugevolumeofopinionatedtextthatisnotalwayseasilydecipheredinlongforumpostingsandblogs.Theaveragehumanreaderwillhavediﬃcultyidentifyingrelevantsitesandaccuratelysum-marizingtheinformationandopinionscontainedinthem.Moreover,itisalsoknownthathumananalysisoftextinformationissubjecttocon-siderablebiases,e.g.,peopleoftenpaygreaterattentiontoopinionsthatareconsistentwiththeirownpreferences.Peoplealsohavediﬃculty,owingtotheirmentalandphysicallimitations,producingconsistent© Springer Science+Business Media, LLC 2012 415 
 
416MININGTEXTDATAresultswhentheamountofinformationtobeprocessedislarge.Au-tomatedopinionminingandsummarizationsystemsarethusneeded,assubjectivebiasesandmentallimitationscanbeovercomewithanobjectivesentimentanalysissystem.Inthepastdecade,aconsiderableamountofresearchhasbeendoneinacademia[58,76].Therearealsonumerouscommercialcompaniesthatprovideopinionminingservices.Inthischapter,weﬁrstdeﬁnetheopinionminingproblem.Fromthedeﬁnition,wewillseethekeytechnicalissuesthatneedtobeaddressed.Wethendescribevariouskeyminingtasksthathavebeenstudiedintheresearchliteratureandtheirrepresentativetechniques.Afterthat,wediscusstheissueofdetectingopinionspamorfakereviews.Finally,wealsointroducetheresearchtopicofassessingtheutilityorqualityofonlinereviews.Keywords:opinionmining,sentimentanalysis1.TheProblemofOpinionMiningInthisﬁrstsection,wedeﬁnetheopinionminingproblem,whichenablesustoseeastructurefromtheintimidatingunstructuredtextandtoprovideauniﬁedframeworkforthecurrentresearch.Theabstractionconsistsoftwoparts:opiniondeﬁnitionandopinionsummarization[31].1.1OpinionDeﬁnitionWeusethefollowingreviewsegmentoniPhonetointroducetheprob-lem(anidnumberisassociatedwitheachsentenceforeasyreference):“(1)IboughtaniPhoneafewdaysago.(2)Itwassuchanicephone.(3)Thetouchscreenwasreallycool.(4)Thevoicequalitywascleartoo.(5)However,mymotherwasmadwithmeasIdidnottellherbeforeIboughtit.(6)Shealsothoughtthephonewastooexpensive,andwantedmetoreturnittotheshop...”Thequestionis:whatwewanttomineorextractfromthisreview?Theﬁrstthingthatwenoticeisthatthereareseveralopinionsinthisreview.Sentences(2),(3)and(4)expresssomepositiveopinions,whilesentences(5)and(6)expressnegativeopinionsoremotions.Thenwealsonoticethattheopinionsallhavesometargets.Thetargetoftheopinioninsentence(2)istheiPhoneasawhole,andthetargetsoftheopinionsinsentences(3)and(4)are“touchscreen”and“voicequality”oftheiPhonerespectively.Thetargetoftheopinioninsentence(6)isthepriceoftheiPhone,butthetargetoftheopinion/emotioninsentence(5)is“me”,notiPhone.Finally,wemayalsonoticetheholdersofopinions.ASurveyofOpinionMiningandSentimentAnalysis417Theholderoftheopinionsinsentences(2),(3)and(4)istheauthorofthereview(“I”),butinsentences(5)and(6)itis“mymother”.Withthisexampleinmind,wenowformallydeﬁnetheopinionminingproblem.Westartwiththeopiniontarget.Ingeneral,opinionscanbeexpressedaboutanything,e.g.,aproduct,aservice,anindividual,anorganization,anevent,oratopic,byanypersonororganization.Weusetheentitytodenotethetargetobjectthathasbeenevaluated.Formally,wehavethefollowing:Definition13.1(Entity)Anentityeisaproduct,service,person,event,organization,ortopic.Itisassociatedwithapair,e:(T,W),whereTisahierarchyofcomponents(orparts),sub-components,andsoon,andWisasetofattributesofe.Eachcomponentorsub-componentalsohasitsownsetofattributes.Anexampleofanentityisasfollows:Example13.2Aparticularbrandofcellularphoneisanentity,e.g.,iPhone.Ithasasetofcomponents,e.g.,batteryandscreen,andalsoasetofattributes,e.g.,voicequality,size,andweight.Thebatterycom-ponentalsohasitsownsetofattributes,e.g.,batterylife,andbatterysize.Basedonthisdeﬁnition,anentityisrepresentedasatreeorhierarchy.Therootofthetreeisthenameoftheentity.Eachnon-rootnodeisacomponentorsub-componentoftheentity.Eachlinkisapart-ofrelation.Eachnodeisassociatedwithasetofattributes.Anopinioncanbeexpressedonanynodeandanyattributeofthenode.Inpractice,itisoftenusefultosimplifythisdeﬁnitionduetotworeasons:First,naturallanguageprocessingisadiﬃculttask.Toeﬀec-tivelystudythetextatanarbitrarylevelofdetailasdescribedinthedeﬁnitionisveryhard.Second,foranordinaryuser,itistoocomplextouseahierarchicalrepresentation.Thus,wesimplifyandﬂattenthetreetotwolevelsandusethetermaspectstodenotebothcomponentsandattributes.Inthesimpliﬁedtree,therootlevelnodeisstilltheentityitself,whilethesecondlevelnodesarethediﬀerentaspectsoftheentity.Forproductreviewsandblogs,opinionholdersareusuallytheauthorsofthepostings.Opinionholdersaremoreimportantinnewsarticlesastheyoftenexplicitlystatethepersonororganizationthatholdsanopinion[5,13,49].Opinionholdersarealsocalledopinionsources[107].Therearetwomaintypesofopinions:regularopinionsandcompara-tiveopinions.Regularopinionsareoftenreferredtosimplyasopinionsintheresearchliterature.Acomparativeopinionexpressesarelationofsimilaritiesordiﬀerencesbetweentwoormoreentities,and/orapref-erenceoftheopinionholderbasedonsomeofthesharedaspectsofthe418MININGTEXTDATAentities[36,37].Acomparativeopinionisusuallyexpressedusingthecomparativeorsuperlativeformofanadjectiveoradverb,althoughnotalways.Thediscussionbelowfocusesonlyonregularopinions.Com-parativeopinionswillbediscussedinSect.6.Forsimplicity,thetermsregularopinionandopinionareusedinterchangeablybelow.Anopinion(orregularopinion)issimplyapositiveornegativesen-timent,attitude,emotionorappraisalaboutanentityoranaspectoftheentityfromanopinionholder.Positive,negativeandneutralarecalledopinionorientations(alsocalledsentimentorientations,semanticorientations,orpolarities).Wearenowreadytodeﬁneanopinion[58].Definition13.3(Opinion)Anopinion(orregularopinion)isaquin-tuple,(ei,aij,ooijkl,hk,tl),whereeiisthenameofanentity,aijisanaspectofei,ooijklistheorientationoftheopinionaboutaspectaijofentityei,hkistheopinionholder,andtlisthetimewhentheopinionisexpressedbyhk.Theopinionorientationooijklcanbepositive,negativeorneutral,orbeexpressedwithdiﬀerentstrength/intensitylevels.Whenanopinionisontheentityitselfasawhole,weusethespecialaspectGENERALtodenoteit.Theseﬁvecomponentsareessential.Withoutanyofthem,itcanbeproblematicingeneral.Forexample,ifonesays“Thepicturequalityisgreat”,andwedonotknowwhosepicturequality,theopinionisoflittleuse.However,wedonotmeanthateverypieceofinformationisneededineveryapplication.Forexample,knowingeachopinionholderisnotnecessaryifwewanttosummarizeopinionsfromalargenumberofpeople.Similarly,wedonotclaimthatnothingelsecanbeaddedtothequintuple.Forexample,insomeapplicationstheusermaywanttoknowthesexandageofeachopinionholder.Animportantcontributionofthisdeﬁnitionisthatitprovidesabasisfortransformingunstructuredtexttostructureddata.Thequintuplegivesustheessentialinformationforarichsetofqualitativeandquan-titativeanalysisofopinions.Speciﬁcally,thequintuplecanberegardedasaschemaforadatabasetable.Withalargesetofopinionrecordsminedfromtext,databasemanagementsystemstoolscanbeappliedtosliceanddicetheopinionsforallkindsofanalyses.Objectiveofopinionmining:GivenacollectionofopinionateddocumentsD,discoverallopinionquintuples(ei,aij,ooijkl,hk,tl)inD.Toachievethisobjective,oneneedstoperformthefollowingtasks:Task1(entityextractionandgrouping):Extractallentityexpres-sionsinD,andgroupsynonymousentityexpressionsintoentityclusters.Eachentityexpressionclusterindicatesauniqueentityei.ASurveyofOpinionMiningandSentimentAnalysis419Task2(aspectextractionandgrouping):Extractallaspectex-pressionsoftheentities,andgroupaspectexpressionsintoclusters.Eachaspectexpressionclusterofentityeiindicatesauniqueaspectaij.Task3(opinionholderandtimeextraction):Extractthesepiecesofinformationfromthetextorunstructureddata.Task4(aspectsentimentclassiﬁcation):Determinewhethereachopiniononanaspectispositive,negativeorneutral.Task5(opinionquintuplegeneration):Produceallopinionquin-tuples(ei,aij,ooijkl,hk,tl)expressedinDbasedontheresultsoftheabovetasks.Weuseanexampleblogtoillustratethesetasks(asentenceidisassociatedwitheachsentence):Example13.4(BlogPosting)Postedby:bigXyzonNov-4-2010:(1)IboughtaMotorolaphoneandmygirlfriendboughtaNokiaphoneyesterday.(2)Wecalledeachotherwhenwegothome.(3)ThevoiceofmyMotophonewasunclear,butthecamerawasgood.(4)Mygirlfriendwasquitehappywithherphone,anditssoundquality.(5)Iwantaphonewithgoodvoicequality.(6)SoIprobablywillnotkeepit.Task1shouldextracttheentityexpressions,“Motorola”,“Nokia”and“Moto”,andgroup“Motorola”and“Moto”togetherastheyrepre-sentthesameentity.Task2shouldextractaspectexpressions“camera”,“voice”,and“sound”,andgroup“voice”and“sound”togetherastheyaresynonymsrepresentingthesameaspect.Task3shouldﬁndtheholderoftheopinionsinsentence(3)tobebigXyz(theblogauthor),andtheholderoftheopinionsinsentence(4)tobebigXyz’sgirlfriend.Itshouldalsoﬁndthetimewhentheblogwasposted,whichisNov-4-2010.Task4shouldﬁndthatsentence(3)givesanegativeopiniontothevoicequalityoftheMotorolaphone,butapositiveopiniontoitscamera.Sentence(4)givespositiveopinionstotheNokiaphoneasawholeandalsoitssoundquality.Sentence(5)seeminglyexpressesapositiveopinion,butitdoesnot.Togenerateopinionquintuplesforsentence(4),wealsoneedtoknowwhat“herphone”isandwhat“its”refersto.Allthesearechallengingproblems.Task5shouldﬁnallygen-eratethefollowingfouropinionquintuples:(Motorola,voicequality,negative,bigXyz,Nov-4-2010)(Motorola,camera,positive,bigXyz,Nov-4-2010)420MININGTEXTDATA(Nokia,GENERAL,positive,bigXyz’sgirlfriend,Nov-4-2010)(Nokia,voicequality,positive,bigXyz’sgirlfriend,Nov-4-2010)Beforegoingfurther,letusdiscusstwootherimportantconceptsrelatedtoopinionminingandsentimentanalysis,i.e.,subjectivityandemotion.Definition13.5(SentenceSubjectivity)Anobjectivesentencepresentssomefactualinformationabouttheworld,whileasubjectivesentenceexpressessomepersonalfeelings,viewsorbeliefs.Forinstance,intheaboveexample,sentences(1)and(2)areobjectivesentences,whileallothersentencesaresubjectivesentences.Subjectiveexpressionscomeinmanyforms,e.g.,opinions,allegations,desires,be-liefs,suspicions,andspeculations[87,103].Thus,asubjectivesentencemaynotcontainanopinion.Forexample,sentence(5)inExample4issubjectivebutitdoesnotexpressapositiveornegativeopinionaboutanything.Similarly,noteveryobjectivesentencecontainsnoopinion.Forexample,“theearphonebrokeintwodays”,isanobjectivesen-tencebutitimpliesanegativeopinion.Thereissomeconfusionamongresearcherstoequatesubjectivitywithopinion.Aswecansee,thecon-ceptsofsubjectivesentencesandopinionsentencesarenotthesame,al-thoughtheyhavealargeintersection.Thetaskofdeterminingwhetherasentenceissubjectiveorobjectiveiscalledsubjectivityclassiﬁcation[105],whichwewilldiscussinSect.3.Definition13.6(Emotion)Emotionsareoursubjectivefeelingsandthoughts.Accordingto[80],peoplehave6primaryemotions,i.e.,love,joy,sur-prise,anger,sadness,andfear,whichcanbesub-dividedintomanysecondaryandtertiaryemotions.Eachemotioncanalsohavediﬀerentintensities.Thestrengthsofopinionsarerelatedtotheintensitiesofcertainemotions,e.g.,joy,anger,andfear,asthesesentencesshow:(1)“Iamveryangrywiththisshop,”(2)“IamsohappywithmyiPhone,”and(3)“withthecurrenteconomiccondition,IfearthatIwilllosemyjob.”However,theconceptsofemotionsandopinionsarenotequiva-lent.Manyopinionsentencesexpressnoemotion(e.g.,“thevoiceofthisphoneisclear”),whicharecalledrationalevaluationsentences,andmanyemotionsentencesgivenoopinion,e.g.,“Iamsosurprisedtoseeyou.”1.2Aspect-BasedOpinionSummaryMostopinionminingapplicationsneedtostudyopinionsfromalargenumberofopinionholders.OneopinionfromasinglepersonisusuallyASurveyofOpinionMiningandSentimentAnalysis421notsuﬃcientforaction.Thisindicatesthatsomeformofsummaryofopinionsisdesirable.Opinionquintuplesdeﬁnedaboveprovideanex-cellentsourceofinformationforgeneratingbothqualitativeandquan-titativesummaries.Acommonformofsummaryisbasedonaspects,andiscalledaspect-basedopinionsummary(orfeature-basedopinionsummary)[31,60].Below,weuseanexampletoillustratethisformofsummary,whichiswidelyusedinindustry.Example13.7Assumewesummarizeallthereviewsofaparticularcellularphone,cellularphone1.ThesummarylookslikethatinFig.13.1,whichwasproposedin[31]andiscalledastructuredsummary.Intheﬁgure,GENERALrepresentsthephoneitself(theentity).125reviewsexpressedpositiveopinionsaboutthephoneand7expressedneg-ativeopinions.Voicequalityandsizearetwoproductaspects.120reviewsexpressedpositiveopinionsaboutthevoicequality,andonly8reviewsexpressednegativeopinions.The<individualreviewsentences>linkpointstothespeciﬁcsentencesand/orthewholereviewsthatgivethepositiveornegativeopinions.Withsuchasummary,theusercaneasilyseehowexistingcustomersfeelaboutthephone.Ifhe/sheisin-terestedinaparticularaspect,he/shecandrilldownbyfollowingthe<individualreviewsentences>linktoseewhyexistingcustomerslikeitand/ordislikeit.Cellularphone1:Aspect:GENERALPositive:125<individualreviewsentences>Negative:7<individualreviewsentences>Aspect:VoicequalityPositive:120<individualreviewsentences>Negative:8<individualreviewsentences>...Figure13.1.Anaspect-basedopinionsummaryTheaspect-basedsummaryinFig.13.1canbevisualizedusingabarchartandopinionsonmultipleproductscanalsobecomparedinavisualization(see[60]).Researchershavealsostudiedopinionsummarizationinthetraditionfashion,e.g.,producingashorttextsummary[4,11,51,89,91].Suchasummarygivesthereaderaquickoverviewofwhatpeoplethinkaboutaproductorservice.Aweaknessofsuchatext-basedsummaryisthatitisnotquantitativebutonlyqualitative,whichisusuallynotsuitable422MININGTEXTDATAforanalyticalpurposes.Forexample,atraditionaltextsummarymaysay“Mostpeopledonotlikethisproduct”.However,aquantitativesum-marymaysaythat60%ofthepeopledonotlikethisproductand40%ofthemlikeit.Inmostopinionminingapplications,thequantitativesideiscrucialjustlikeinthetraditionalsurveyresearch.Insurveyre-search,aspect-basedsummariesdisplayedasbarchartsorpiechartsarecommonlyusedbecausetheygivetheuseraconcise,quantitativeandvisualview.Recently,researchersalsotriedtoproducetextsummariessimilartothatinFig.13.1butinamorereadableform[73,81,96].2.DocumentSentimentClassiﬁcationWearenowreadytodiscusssomemainresearchtopicsofopinionmining.Thissectionfocusesonsentimentclassiﬁcation,whichhasbeenstudiedextensivelyintheliterature(seeasurveyin[76]).Itclassiﬁesanopiniondocument(e.g.,aproductreview)asexpressingapositiveornegativeopinionorsentiment.Thetaskisalsocommonlyknownasthedocument-levelsentimentclassiﬁcationbecauseitconsidersthewholedocumentasthebasicinformationunit.Definition13.8(DocumentLevelSentiment)Givenanopinion-ateddocumentdevaluatinganentitye,determinetheopinionorienta-tionooone,i.e.,determineooonaspectGENERALinthequintuple(e,GENERAL,oo,h,t).e,h,andtareassumedknownorirrelevant.Animportantassumptionaboutsentimentclassiﬁcationisasfollows:Assumption:Sentimentclassiﬁcationassumesthattheopiniondocu-mentd(e.g.,aproductreview)expressesopinionsonasingleentityeandtheopinionsarefromasingleopinionholderh.Thisassumptionholdsforcustomerreviewsofproductsandservicesbecauseeachsuchreviewusuallyfocusesonasingleproductandiswrittenbyasinglereviewer.However,itmaynotholdforaforumandblogpostingbecauseinsuchapostingtheauthormayexpressopinionsonmultipleproducts,andcomparethemusingcomparativesentences.Mostexistingtechniquesfordocument-levelsentimentclassiﬁcationarebasedonsupervisedlearning,althoughtherearealsosomeunsuper-visedmethods.Wegiveanintroductiontothembelow.2.1ClassiﬁcationbasedonSupervisedLearningSentimentclassiﬁcationobviouslycanbeformulatedasasupervisedlearningproblemwiththreeclasses,positive,negativeandneutral.Train-ingandtestingdatausedintheexistingresearcharemostlyproductre-views,whichisnotsurprisingduetotheaboveassumption.SinceeachASurveyofOpinionMiningandSentimentAnalysis423reviewalreadyhasareviewer-assignedrating(e.g.,1to5stars),train-ingandtestingdataarereadilyavailable.Forexample,areviewwith4or5starsisconsideredapositivereview,areviewwith1or2starsisconsideredanegativereviewandareviewwith3starsisconsideredaneutralreview.Anyexistingsupervisedlearningmethodscanbeappliedtosentimentclassiﬁcation,e.g.,naiveBayesianclassiﬁcation,andsupportvectorma-chines(SVM).Pangetal.[78]tookthisapproachtoclassifymoviereviewsintotwoclasses,positiveandnegative.Itwasshownthatus-ingunigrams(abagofindividualwords)asfeaturesinclassiﬁcationperformedwellwitheithernaiveBayesianorSVM.Subsequentresearchusedmanymorefeaturesandtechniquesinlearn-ing[76].Asmostmachinelearningapplications,themaintaskofsen-timentclassiﬁcationistoengineeraneﬀectivesetoffeatures.Someofthecurrentfeaturesarelistedbelow.Termsandtheirfrequency:Thesefeaturesareindividualwordsorwordn-gramsandtheirfrequencycounts.Insomecases,wordpositionsmayalsobeconsidered.TheTF-IDFweightingschemefrominformationretrievalmaybeappliedtoo.Thesefeatureshavebeenshownquiteeﬀectiveinsentimentclassiﬁcation.Partofspeech:Itwasfoundinmanyresearchesthatadjectivesareimportantindicatorsofopinions.Thus,adjectiveshavebeentreatedasspecialfeatures.Opinionwordsandphrases:Opinionwordsarewordsthatarecommonlyusedtoexpresspositiveornegativesentiments.Forex-ample,beautiful,wonderful,good,andamazingarepositiveopin-ionwords,andbad,poor,andterriblearenegativeopinionwords.Althoughmanyopinionwordsareadjectivesandadverbs,nouns(e.g.,rubbish,junk,andcrap)andverbs(e.g.,hateandlike)canalsoindicateopinions.Apartfromindividualwords,therearealsoopinionphrasesandidioms,e.g.,costsomeoneanarmandaleg.Opinionwordsandphrasesareinstrumentaltosentimentanalysisforobviousreasons.Negations:Clearly,negationwordsareimportantbecausetheirappearancesoftenchangetheopinionorientation.Forexample,thesentence“Idon’tlikethiscamera”isnegative.However,nega-tionwordsmustbehandledwithcarebecausenotalloccurrencesofsuchwordsmeannegation.Forexample,“not”in“notonly...butalso”doesnotchangetheorientationdirection(seeopinionshiftersinSect.5.1).424MININGTEXTDATASyntacticdependency:Worddependencybasedfeaturesgener-atedfromparsingordependencytreesarealsotriedbyseveralresearchers.Insteadofusingastandardmachinelearningmethod,researchershavealsoproposedseveralcustomtechniquesspeciﬁcallyforsentimentclas-siﬁcation,e.g.,thescorefunctionin[15]basedonwordsinpositiveandnegativereviews.In[74],featureweightingschemesareusedtoenhanceclassiﬁcationaccuracy.Manuallylabelingtrainingdatacanbetime-consumingandlabel-intensive.Toreducethelabelingeﬀort,opinionwordscanbeutilizedinthetrainingprocedure.In[95],Tanetal.usedopinionwordstolabelaportionofinformativeexamplesandthenlearnanewsuper-visedclassiﬁerbasedonlabeledones.Asimilarapproachisalsousedin[86].Inaddition,opinionwordscanbeutilizedtoincreasethesentimentclassiﬁcationaccuracy.In[68],Melvilleetal.proposedaframeworktoincorporatelexicalknowledgeinsupervisedlearningtoenhanceaccu-racy.Apartfromclassiﬁcationofpositiveornegativesentiments,researchhasalsobeendoneonpredictingtheratingscores(e.g.,1-5stars)ofreviews[77].Inthiscase,theproblemisformulatedasregressionsincetheratingscoresareordinal.Anotherinterestingresearchdirectionistransferlearningordomainadaptationasithasbeenshownthatsentimentclassiﬁcationishighlysensitivetothedomainfromwhichthetrainingdataisextracted.Aclassiﬁertrainedusingopinionateddocumentsfromonedomainoftenperformspoorlywhenitisappliedortestedonopinionateddocumentsfromanotherdomain.Thereasonisthatwordsandevenlanguageconstructsusedindiﬀerentdomainsforexpressingopinionscanbequitediﬀerent.Tomakemattersworse,thesamewordinonedomainmaymeanpositive,butinanotherdomainmaymeannegative.Thus,domainadaptationisneeded.Existingresearchhasusedlabeleddatafromonedomainandunlabeleddatafromthetargetdomainandgeneralopinionwordsasfeaturesforadaptation[2,7,75,112].2.2ClassiﬁcationbasedonUnsupervisedLearningItisnothardtoimaginethatopinionwordsandphrasesarethedom-inatingindicatorsforsentimentclassiﬁcation.Thus,usingunsupervisedlearningbasedonsuchwordsandphraseswouldbequitenatural.Forexample,themethodin[93]usesknownopinionwordsforclassiﬁcation,while[100]deﬁnessomephraseswhicharelikelytobeopinionated.Be-ASurveyofOpinionMiningandSentimentAnalysis425low,wegiveadescriptionofthealgorithmin[100],whichconsistsofthreesteps:Step1:Itextractsphrasescontainingadjectivesoradverbsasadjec-tivesandadverbsaregoodindicatorsofopinions.However,althoughanisolatedadjectivemayindicateopinion,theremaybeinsuﬃcientcon-texttodetermineitsopinionorientation(calledsemanticorientationin[100]).Forexample,theadjective“unpredictable”mayhaveanegativeorientationinanautomotivereview,insuchaphraseas“unpredictablesteering”,butitcouldhaveapositiveorientationinamoviereview,inaphrasesuchas“unpredictableplot”.Therefore,thealgorithmextractstwoconsecutivewords,whereonememberofthepairisanadjectiveoradverb,andtheotherisacontextword.TwoconsecutivewordsareextractediftheirPOStagsconformtoanyofthepatternsinTable13.1.Forexample,thepatterninline2meansthattwoconsecutivewordsareextractediftheﬁrstwordisanadverbandthesecondwordisanadjective,butthethirdwordcannotbeanoun.NNPandNNPSareavoidedsothatthenamesofentitiesinthereviewcannotinﬂuencetheclassiﬁcation.Example13.9Inthesentence“Thiscameraproducesbeautifulpic-tures”,”beautifulpictures”willbeextractedasitsatisﬁestheﬁrstpat-tern.Step2:Itestimatesthesemanticorientationoftheextractedphrasesusingthepointwisemutualinformation(PMI)measuregiveninEqua-tion13.1:PMI(term1,term2)=log2(cid:12)Pr(term1∧term2)Pr(term1)·Pr(term2)(cid:13)(13.1)Here,Pr(term1∧term2)istheco-occurrenceprobabilityofterm1andterm2,andPr(term1)·Pr(term2)givestheprobabilitythatthetwotermsco-occuriftheyarestatisticallyindependent.TheratiobetweenPr(term1∧term2)andPr(term1)·Pr(term2)isthusameasureofthedegreeofstatisticaldependencebetweenthem.Thelogofthisratioistheamountofinformationthatweacquireaboutthepresenceofoneofthewordswhenweobservetheother.Thesemantic/opinionorientation(SO)ofaphraseiscomputedbasedonitsassociationwiththepositivereferenceword“excellent”anditsassociationwiththenegativereferenceword“poor”:SO(phrase)=PMI(phrase,“excellent(cid:2)(cid:2))−PMI(phrase,“poor(cid:2)(cid:2))(13.2)426MININGTEXTDATAFirstWordSecondWordThirdWord(NotExtracted)1JJNNorNNSanything2RB,RBR,orRBSJJnotNNnorNNS3JJJJnotNNnorNNS4NNorNNSJJnotNNnorNNS5RB,RBR,orRBSVB,VBD,VBN,orVBGanythingTable13.1.Patternsoftagsforextractingtwo-wordphrasesTheprobabilitiesarecalculatedbyissuingqueriestoasearchengineandcollectingthenumberofhits.Foreachsearchquery,asearchengineusuallygivesthenumberofrelevantdocumentstothequery,whichisthenumberofhits.Thus,bysearchingthetwotermstogetherandseparately,wecanestimatetheprobabilitiesinEquation13.1.Theauthorof[100]usedtheAltaVistasearchenginebecauseithasaNEARoperator,whichconstrainsthesearchtodocumentsthatcontainthewordswithintenwordsofoneanotherineitherorder.Lethits(query)bethenumberofhitsreturned.Equation13.2canberewrittenasfollows:SO(phrase)=log2(cid:12)hits(phraseNEAR“excellent”)hits(“poor”)hits(phraseNEAR“poor”)hits(“excellent(cid:2)(cid:2))(cid:13)(13.3)Toavoiddivisionby0,0.01isaddedtothehits.Step3:Givenareview,thealgorithmcomputestheaverageSOofallphrasesinthereview,andclassiﬁesthereviewasrecommendediftheaverageSOispositive,notrecommendedotherwise.Finalclassiﬁcationaccuraciesonreviewsfromvariousdomainsrangefrom84%forautomobilereviewsto66%formoviereviews.Tosummarize,wecanseethatthemainadvantageofdocumentlevelsentimentclassiﬁcationisthatitprovidesaprevailingopiniononanentity,topicorevent.Themainshortcomingsarethatitdoesnotgivedetailsonwhatpeoplelikedand/ordislikedanditisnoteasilyappli-cabletonon-reviews,e.g.,forumandblogpostings,becausemanysuchpostingsevaluatemultipleentitiesandcomparethem.3.SentenceSubjectivityandSentimentClassiﬁcationNaturallythesamedocument-levelsentimentclassiﬁcationtechniquescanalsobeappliedtoindividualsentences.Thetaskofclassifyingasen-tenceassubjectiveorobjectiveisoftencalledsubjectivityclassiﬁcationASurveyofOpinionMiningandSentimentAnalysis427intheexistingliterature[30,87,88,106,109,110,113].Theresultingsubjectivesentencesarealsoclassiﬁedasexpressingpositiveornegativeopinions,whichiscalledsentence-levelsentimentclassiﬁcation.Definition13.10Givenasentences,twosub-tasksareperformed:1Subjectivityclassiﬁcation:Determinewhethersisasubjectivesen-tenceoranobjectivesentence,2Sentence-levelsentimentclassiﬁcation:Ifsissubjective,determinewhetheritexpressesapositive,negativeorneutralopinion.Noticethatthequintuple(e,a,oo,h,t)isnotusedindeﬁningtheprob-lemherebecausesentence-levelclassiﬁcationisoftenanintermediatestep.Inmostapplications,oneneedstoknowwhatentitiesoraspectsoftheentitiesarethetargetsofopinions.Knowingthatsomesentenceshavepositiveornegativeopinionsbutnotaboutwhat,isoflimiteduse.However,thetwosub-tasksarestillusefulbecause(1)itﬁltersoutthosesentenceswhichcontainnoopinions,and(2)afterweknowwhatenti-tiesandaspectsoftheentitiesaretalkedaboutinasentence,thisstepcanhelpusdeterminewhethertheopinionsabouttheentitiesandtheiraspectsarepositiveornegative.Mostexistingresearchesstudybothproblems,althoughsomeofthemfocusonlyonone.Bothproblemsareclassiﬁcationproblems.Thus,tra-ditionalsupervisedlearningmethodsareagainapplicable.Forexample,oneoftheearlyworksreportedin[104]performedsubjectivityclassi-ﬁcationusingthenaiveBayesianclassiﬁer.Subsequentresearchesalsousedotherlearningalgorithms.Muchoftheresearchonsentence-levelsentimentclassiﬁcationmakesthefollowingassumption:Assumption:Thesentenceexpressesasingleopinionfromasingleopinionholder.Thisassumptionisonlyappropriateforsimplesentenceswithasingleopinion,e.g.,“Thepicturequalityofthiscameraisamazing.”However,forcompoundandcomplexsentences,asinglesentencemayexpressmorethanoneopinion.Forexample,thesentence,“Thepicturequalityofthiscameraisamazingandsoisthebatterylife,buttheviewﬁnderistoosmallforsuchagreatcamera”,expressesbothpositiveandnegativeopinions(ithasmixedopinions).For“picturequality”and“batterylife”,thesentenceispositive,butfor“viewﬁnder”,itisnegative.Itisalsopositiveforthecameraasawhole(i.e.,theGENERALaspect).Manypapershavebeenpublishedonsubjectivityclassiﬁcationandsentence-levelsentimentclassiﬁcation.In[113],forsubjectivityclassi-ﬁcation,itappliedsupervisedlearning.Forsentimentclassiﬁcationof428MININGTEXTDATAeachsubjectivesentence,itusedasimilarmethodtothatinSect.2.2butwithmanymoreseedwords,andthescorefunctionwaslog-likelihoodratio.Thesameproblemwasalsostudiedin[30]consideringgradableadjectives,andin[23]usingsemi-supervisedlearning.In[48-50],re-searchersalsobuiltmodelstoidentifysomespeciﬁctypesofopinions.Aswementionedearlier,sentence-levelclassiﬁcationisnotsuitableforcompoundandcomplexsentences.Itwaspointedoutin[109]thatnotonlyasinglesentencemaycontainmultipleopinions,butalsobothsub-jectiveandfactualclauses.Itisusefultopinpointsuchclauses.Itisalsoimportanttoidentifythestrengthofopinions.Astudyofautomaticsen-timentclassiﬁcationwaspresentedtoclassifyclausesofeverysentencebythestrengthoftheopinionsbeingexpressedinindividualclauses,downtofourlevelsdeep(neutral,low,medium,andhigh).Thestrengthofneutralindicatestheabsenceofopinionorsubjectivity.Strengthclas-siﬁcationthussubsumesthetaskofclassifyingasentenceassubjectiveversusobjective.In[108],theproblemwasstudiedfurtherusingsuper-visedlearningbyconsideringcontextualsentimentinﬂuencerssuchasnegation(e.g.,notandnever)andcontrary(e.g.,butandhowever).Alistofinﬂuencerscanbefoundin[82].However,inmanycases,identify-ingonlyclausesareinsuﬃcientbecausetheopinionscanbeembeddedinphrases,e.g.,“Appleisdoingverywellinthisterribleeconomy.”Inthissentence,theopinionon“Apple”isclearlypositivebuton“economy”itisnegative.Besidesanalyzingopinionsentencesinreviews,researchhasbeendoneinthreadeddiscussions,whichincludesforumdiscussions,emails,andnewsgroups.Inthreadeddiscussions,peoplenotonlyexpresstheiropin-ionsonatopicbutalsointeractwitheachother.However,thediscus-sionscouldbehighlyemotionalandheatedwithmanyemotionalstate-mentsbetweenparticipants.In[115],Zhaietal.proposedamethodtoidentifythoseevaluativesentencesfromforumdiscussions,whichonlyexpresspeople’sopinionsonentitiesortopicsandtheirdiﬀerentaspects.In[28],Hassanetal.proposedanapproachtoﬁndsentenceswithatti-tudesofparticipantstowardoneanother.Thatis,itpredictswhetherasentencecontainsanattitudetowardatextrecipientornot.Finally,weshouldbearinmindthatnotallsubjectivesentenceshaveopinionsandthosethatdoformonlyasubsetofopinionatedsentences.Manyobjectivesentencescanimplyopinionstoo.Thus,tomineopin-ionsfromtextoneneedstominethemfrombothsubjectiveandobjec-tivesentences.ASurveyofOpinionMiningandSentimentAnalysis4294.OpinionLexiconExpansionIntheprecedingsections,wementionedthatopinionwordsareem-ployedinmanysentimentclassiﬁcationtasks.Wenowdiscusshowsuchwordsaregenerated.Intheresearchliterature,opinionwordsarealsoknownasopinion-bearingwordsorsentimentwords.Positiveopinionwordsareusedtoexpresssomedesiredstateswhilenegativeopinionwordsareusedtoexpresssomeundesiredstates.Examplesofpositiveopinionwordsare:beautiful,wonderful,good,andamazing.Examplesofnegativeopinionwordsarebad,poor,andterrible.Apartfromindividualwords,therearealsoopinionphrasesandidioms,e.g.,costsomeoneanarmandaleg.Collectively,theyarecalledtheopinionlexicon.Theyareinstrumentalforopinionminingforobviousreasons.Inordertocompileorcollecttheopinionwordlist,threemainap-proacheshavebeeninvestigated:manualapproach,dictionary-basedap-proach,andcorpus-basedapproach.Themanualapproachisverytime-consumingandthusitisnotusuallyusedalone,butcombinedwithautomatedapproachesastheﬁnalcheckbecauseautomatedmethodsmakemistakes.Below,wediscussthetwoautomatedapproaches.4.1DictionarybasedapproachOneofthesimpletechniquesinthisapproachisbasedonbootstrap-pingusingasmallsetofseedopinionwordsandanonlinedictionary,e.g.,WordNet[69]orthesaurus[71].Thestrategyistoﬁrstcollectasmallsetofopinionwordsmanuallywithknownorientations,andthentogrowthissetbysearchingintheWordNetorthesaurusfortheirsynonymsandantonyms.Thenewlyfoundwordsareaddedtotheseedlist.Thenextiterationstarts.Theiterativeprocessstopswhennomorenewwordsarefound.Thisapproachisusedin[31,49].Afterthepro-cesscompletes,manualinspectioncanbecarriedouttoremoveand/orcorrecterrors.Researchershavealsousedadditionalinformation(e.g.,glosses)inWordNetandadditionaltechniques(e.g.,machinelearning)togeneratebetterlists[1,19,20,45].Severalopinionwordlistshavebeenproduced[17,21,31,90,104].Thedictionarybasedapproachandtheopinionwordscollectedfromithaveamajorshortcoming.Theapproachisunabletoﬁndopinionwordswithdomainandcontextspeciﬁcorientations,whichisquitecommon.Forexample,foraspeakerphone,ifitisquiet,itisusuallynegative.However,foracar,ifitisquiet,itispositive.Thecorpus-basedapproachcanhelpdealwiththisproblem.430MININGTEXTDATA4.2Corpus-basedapproachandsentimentconsistencyThemethodsinthecorpus-basedapproachrelyonsyntacticorco-occurrencepatternsandalsoaseedlistofopinionwordstoﬁndotheropinionwordsinalargecorpus.Oneofthekeyideasistheonepro-posedbyHazivassiloglouandMcKeown[29].Thetechniquestartswithalistofseedopinionadjectives,andusesthemandasetoflinguisticconstraintsorconventionsonconnectivestoidentifyadditionaladjec-tiveopinionwordsandtheirorientations.OneoftheconstraintsisabouttheconjunctionAND,whichsaysthatconjoinedadjectivesusu-allyhavethesameorientation.Forexample,inthesentence,“Thiscarisbeautifulandspacious,”if“beautiful”isknowntobepositive,itcanbeinferredthat“spacious”isalsopositive.Thisissobecausepeopleusuallyexpressthesameopiniononbothsidesofaconjunction.Thefollowingsentenceisratherunnatural,”Thiscarisbeautifulanddiﬃculttodrive”.Ifitischangedto”Thiscarisbeautifulbutdiﬃculttodrive”,itbecomesacceptable.Rulesorconstraintsarealsodesignedforotherconnectives,OR,BUT,EITHER-OR,andNEITHER-NOR.Thisideaiscalledsentimentconsistency.Ofcourse,inpracticeitisnotalwaysconsistent.Learningisappliedtoalargecorpustodetermineiftwoconjoinedadjectivesareofthesameordiﬀerentorientations.Sameanddiﬀerent-orientationlinksbetweenadjectivesformagraph.Finally,clus-teringisperformedonthegraphtoproducetwosetsofwords:positiveandnegative.In[46],KanayamaandNasukawaexpandedthisapproachbyintroducingtheideaofintra-sentential(withinasentence)andinter-sentential(betweenneighboringsentences)sentimentconsistency(calledcoherencyin[46]).Theintra-sententialconsistencyissimilartothatin[29].Inter-sententialconsistencyappliestheideatoneighboringsen-tences.Thatis,thesameopinionorientation(positiveornegative)isusuallyexpressedinafewconsecutivesentences.Opinionchangesareindicatedbyadversativeexpressionssuchasbutandhowever.Somecriteriatodeterminewhethertoaddawordtothepositiveornegativelexiconarealsoproposed.ThisstudywasbasedonJapanesetext.InSect.5.4,arelatedbutalsoquitediﬀerentmethodwillbedescribed.Otherrelatedworkincludes[43,44].In[17],Dingetal.exploredtheideaofintra-sententialandinter-sententialsentimentconsistencyfurther.Insteadofﬁndingdomainde-pendentopinionwords,theyshowedthatthesamewordcouldindicatediﬀerentorientationsindiﬀerentcontextseveninthesamedomain.ThisfactwasalsoclearlydepictedbythebasicrulesofopinionsinSect.5.2.Forexample,inthedigitalcameradomain,theword“long”expressesASurveyofOpinionMiningandSentimentAnalysis431oppositeopinionsinthetwosentences:“Thebatterylifeislong”(pos-itive)and“Thetimetakentofocusislong”(negative).Thus,ﬁndingdomaindependentopinionwordsisinsuﬃcient.Theythenproposedtoconsiderbothpossibleopinionwordsandaspectstogether,andusethepair(aspect,opinionword)astheopinioncontext,e.g.,thepair(“batterylife”,“long”).Theirmethodthusdeterminesopinionwordsandtheirorientationstogetherwiththeaspectsthattheymodify.Theaboverulesaboutconnectivesarestillapplied.Theworkin[24]adoptedthesamecontextdeﬁnitionbutuseditforanalyzingcomparativesen-tences.In[63],Luetal.proposedanoptimizationframeworktolearnaspect-dependentsentimentsinopinioncontextbasedonintegerlinearprogramming[14].Infact,themethodin[94,100]canalsobeconsid-eredasamethodforﬁndingcontextspeciﬁcopinions,butitdoesnotusethesentimentconsistencyidea.Itsopinioncontextisbasedonsyn-tacticPOSpatternsratherthanaspectsandopinionwordsthatmodifythem.Allthesecontextdeﬁnitions,however,arestillinsuﬃcientasthebasicrulesofopinionsdiscussedinSect.5.2show,i.e.,manycontextscanbemorecomplex,e.g.,consumingalargeamountofresources.In[9],theproblemofextractingopinionexpressionswithanynumberofwordswasstudied.TheConditionalRandomFields(CRF)method[52]wasusedasasequencelearningtechniqueforextraction.In[84,85],adouble-propagationmethodwasproposedtoextractionbothopinionwordsandaspectstogether.WedescribeitinSect.5.4.Usingthecorpus-basedapproachalonetoidentifyallopinionwords,however,isnotaseﬀectiveasthedictionary-basedapproachbecauseitishardtoprepareahugecorpustocoverallEnglishwords.However,aswementionedabove,thisapproachhasamajoradvantagethatthedictionary-basedapproachdoesnothave.Itcanhelpﬁnddomainandcontextspeciﬁcopinionwordsandtheirorientationsusingadomaincorpus.Finally,weshouldrealizethatpopulatinganopinionlexicon(domaindependentornot)isdiﬀerentfromdeterminingwhetherawordorphraseisactuallyexpressinganopinionandwhatitsorientationisinaparticularsentence.Justbecauseawordorphraseislistedinanopinionlexicondoesnotmeanthatitactuallyisexpressinganopinioninasentence.Forexample,inthesentence,“Iamlookingforagoodhealthinsurance”,“good”doesnotexpresseitherapositiveornegativeopiniononanyparticularinsurance.Thesameistrueforopinionorientation.Weshouldalsorememberthatopinionwordsandphrasesarenottheonlyexpressionsthatbearopinions.TherearemanyothersaswewillseeinSect.5.2.432MININGTEXTDATA5.Aspect-BasedSentimentAnalysisAlthoughclassifyingopinionatedtextsatthedocumentleveloratthesentencelevelisusefulinmanycases,itdoesnotprovidetheneces-sarydetailneededformanyotherapplications.Apositiveopinionateddocumentaboutaparticularentitydoesnotmeanthattheauthorhaspositiveopinionsonallaspectsoftheentity.Likewise,anegativeopin-ionateddocumentdoesnotmeanthattheauthordislikeseverything.Inatypicalopinionateddocument,theauthorwritesbothpositiveandnegativeaspectsoftheentity,althoughthegeneralsentimentontheentitymaybepositiveornegative.Documentandsentencesentimentclassiﬁcationdoesnotprovidesuchinformation.Toobtainthesedetails,weneedtogototheaspectlevel.Thatis,weneedthefullmodelofSect.1.1,i.e.,aspect-basedopinionmining.Insteadoftreatingopinionminingsimplyasaclassiﬁcationofsentiments,aspect-basedsentimentanalysisintroducesasuiteofproblemswhichrequiredeepernaturallanguageprocessingcapabilities,andalsoproducearichersetofresults.Recallthat,attheaspectlevel,theminingobjectiveistodiscovereveryquintuple(ei,aij,ooijkl,hk,tl)inagivendocumentd.Toachievetheobjective,ﬁvetasksneedtobeperformed.Thissectionmainlyfocusesonthefollowingtwocoretasksandtheyhavealsobeenstudiedmoreextensivelybyresearchers(inSect.7,wewillbrieﬂydiscusssomeothertasks):1Aspectextraction:Extractaspectsthathavebeenevaluated.Forexample,inthesentence,“Thepicturequalityofthiscameraisamazing,”theaspectis“picturequality”oftheentityrepresentedby“thiscamera”.Notethat“thiscamera”doesnotindicatetheGENERALaspectbecausetheevaluationisnotaboutthecameraasawhole,butaboutitspicturequality.However,thesentence“Ilovethiscamera”evaluatesthecameraasawhole,i.e.,theGENERALaspectoftheentityrepresentedby“thiscamera”.Bearinmindwheneverwetalkaboutanaspect,wemustknowwhichentityitbelongsto.Inourdiscussionbelow,weoftenomittheentityjustforsimplicityofpresentation.2Aspectsentimentclassiﬁcation:Determinewhethertheopin-ionsondiﬀerentaspectsarepositive,negativeorneutral.Intheﬁrstexampleabove,theopiniononthe“picturequality”aspectispositive,andinthesecondexample,theopinionontheGENERALaspectisalsopositive.ASurveyofOpinionMiningandSentimentAnalysis4335.1AspectSentimentClassiﬁcationWestudythesecondtaskﬁrst,determiningtheorientationofopinionsexpressedoneachaspectinasentence.Clearly,thesentence-levelandclause-levelsentimentclassiﬁcationmethodsdiscussedinSect.3areusefulhere.Thatis,theycanbeappliedtoeachsentenceorclausewhichcontainssomeaspects.Theaspectsinitwilltaketheopinionorientationofthesentenceorclause.However,thesemethodshavediﬃcultydealingwithmixedopinionsinasentenceandopinionsthatneedphraselevelanalysis,e.g.,“Appleisdoingverywellinthisterribleeconomy.”Clause-levelanalysisalsoneedstechniquestoidentifyclauseswhichitselfisachallengingtask,especiallywithinformaltextofblogsandforumdiscussions,whichisfullofgrammaticalerrors.Here,wedescribealexicon-basedapproachtosolvingtheproblem[17,31],whichtriestoavoidtheseproblemsandhasbeenshowntoperformquitewell.TheextensionofthismethodtohandlingcomparativesentencesisdiscussedinSect.6.Inthediscussionbelow,weassumethatentitiesandtheiraspectsareknown.TheirextractionwillbediscussedinSect.5.3,5.4,and7.Thelexicon-basedapproachbasicallyusesanopinionlexicon,i.e.,alistofopinionwordsandphrases,andasetofrulestodeterminetheorientationsofopinionsinasentence[17,31].Italsoconsidersopinionshiftersandbut-clauses.Theapproachworksasfollows:1Markopinionwordsandphrases:Givenasentencethatcon-tainsoneormoreaspects,thisstepmarksallopinionwordsandphrasesinthesentence.Eachpositivewordisassignedtheopinionscoreof+1,eachnegativewordisassignedtheopinionscoreof-1.2Handleopinionshifters:Opinionshifters(alsocalledvalenceshifters[82])arewordsandphrasesthatcanshiftorchangeopin-ionorientations.Negationwordslikenot,never,none,nobody,nowhere,neitherandcannotarethemostcommontype.Addi-tionally,sarcasmchangesorientationtoo,e.g.,“Whatagreatcar,itfailedtostarttheﬁrstday.”Althoughitiseasytorecognizesuchshiftersmanually,spottingthemandhandlingthemcorrectlyinactualsentencesbyanautomatedsystemisbynomeanseasy.Furthermore,noteveryappearanceofanopinionshifterchangestheopinionorientation,e.g.,“notonly...butalso”.Suchcasesneedtobedealtwithcarefully.3Handlebut-clauses:InEnglish,butmeanscontrary.Asen-tencecontainingbutishandledbyapplyingthefollowingrule:theopinionorientationbeforebutandafterbutareoppositetoeach434MININGTEXTDATAotheriftheopinionononesidecannotbedetermined.Asinthecaseofnegation,noteverybutmeanscontrary,e.g.,“notonly...butalso”.Suchnon-butphrasescontaining“but”alsoneedtobeconsideredseparately.Finally,weshouldnotethatcontrarywordsandphrasesdonotalwaysindicateanopinionchange,e.g.,“Car-xisgreat,butCar-yisbetter”.Suchcasesneedtobeidentiﬁedanddealtwithseparately.4Aggregatingopinions:Thisstepappliesanopinionaggregationfunctiontotheresultingopinionscorestodeterminetheﬁnalori-entationoftheopiniononeachaspectinthesentence.Letthesentencebes,whichcontainsasetofaspects{a1...am}andasetofopinionwordsorphrases{ow1...own}withtheiropinionscoresobtainedfromsteps1,2and3.Theopinionorientationforeachaspectaiinsisdeterminedbythefollowingopinionaggregationfunction:score(ai,s)=(cid:9)owj∈sowj·oodist(owj,ai)(13.4)whereowjisanopinionword/phraseins,dist(owj,ai)isthedis-tancebetweenaspectaiandopinionwordowjins.owj.ooistheopinionscoreofowi.Themultiplicativeinverseisusedtogivelowerweightstoopinionwordsthatarefarawayfromaspectai.Iftheﬁnalscoreispositive,thentheopiniononaspectaiinsispositive.Iftheﬁnalscoreisnegative,thentheopinionontheaspectisnegative.Itisneutralotherwise.Thissimplealgorithmcanperformquitewellinmanycases,butitisnotsuﬃcientinothers.Onemainshortcomingisthatopinionwordsandphrasesdonotcoveralltypesofexpressionsthatconveyorimplyopinions.Thereareinfactmanyotherpossibleopinionbearingexpres-sions.Mostofthemarealsohardertodealwith.Below,welistsomeofthem,whichwecallthebasicrulesofopinions[58,59].5.2BasicRulesofOpinionsAnopinionruleexpressesaconceptthatimpliesapositiveornegativeopinion[58,59].Inactualsentences,theconceptcanbeexpressedinmanydiﬀerentwaysinnaturallanguage.WepresenttheserulesusingaformalismthatissimilartotheBNFform.Thetoplevelrulesareasfollows:ASurveyofOpinionMiningandSentimentAnalysis4351.POSITIVE::=P2.|PO3.|orientationshifterN4.|orientationshifterNE5.NEGATIVE::=N6.|NE7.|orientationshifterP8.|orientationshifterPOThenon-terminalsPandPOrepresenttwotypesofpositiveopinionex-pressions.Thenon-terminalNandNErepresenttwotypesofnegativeopinionexpressions.‘opinionshifterN’and‘opinionshifterNE’repre-sentthenegationofNandNErespectively,and‘opinionshifterP’and‘opinionshifterPO’representthenegationofPandPOrespectively.WecanseethatthesearenotexpressedintheactualBNFformbutapseudo-languagestatingsomeconcepts.Thereasonisthatweareun-abletospecifythempreciselybecauseforexample,inanactualsentence,theopinionshiftermaybeinanyformandcanappearbeforeorafterN,NE,P,orPO.POSITIVEandNEGATIVEaretheﬁnalorientationsusedtodeterminetheopinionsontheaspectsinasentence.WenowdeﬁneN,NE,PandPO,whichcontainnoopinionshifters.Theseopinionexpressionsaregroupedinto6conceptualcategoriesbasedontheircharacteristics:1Opinionwordorphrase:Thisisthemostcommonlyusedcate-gory,inwhichopinionwordsorphrasesalonecanimplypositiveornegativeopinionsonaspects,e.g.,“great”in“Thepicturequal-ityisgreat”.ThesewordsorphrasesarereducedtoPandN.9.P::=apositiveopinionwordorphrase10.N::=annegativeopinionwordorphraseAgain,thedetailsoftheright-hand-sidesarenotspeciﬁed(whichalsoapplytoallthesubsequentrules).Itisassumedthatasetofpositiveandnegativeopinionwords/phrasesexistforanapplica-tion.2Desirableorundesirablefact:Inthiscase,itisafactualstatement,andthedescriptionusesnoopinionwords,butinthecontextoftheentity,thedescriptionimpliesapositiveornegativeopinion.Forexample,thesentence“AftermywifeandIsleptonitfortwo436MININGTEXTDATAweeks,Inoticedamountaininthemiddleofthemattress”indi-catesanegativeopinionaboutthemattress.However,theword”mountain”itselfdoesnotcarryanyopinion.Thus,wehavethefollowingtworules:11.P::=desirablefact12.N::=undesirablefact3High,low,increasedanddecreasedquantityofapositiveorneg-ativepotentialitem:Forsomeaspects,asmallvalue/quantityofthemisnegative,andalargevalue/quantityofthemisposi-tive,e.g.,“Thebatterylifeisshort”and“Thebatterylifeislong.”Wecallsuchaspectspositivepotentialitems(PPI).Here“batterylife”isapositivepotentialitem.Forsomeotheraspects,asmallvalue/quantityofthemispositive,andalargevalue/quantityofthemisnegative,e.g.,“Thisphonecostsalot”and“Sonyreducedthepriceofthecamera.”Wecallsuchaspectsnegativepotentialitems(NPI).“cost”and“price”arenegativepotentialitems.Bothpositiveandnegativepotentialitemsthemselvesexpressnoopin-ions,i.e.,“batterylife”and“cost”,butwhentheyaremodiﬁedbyquantityadjectivesorquantitychangewordsorphrases,positiveornegativeopinionsareimplied.13.PO::=no,low,lessordecreasedquantityofNPI14.|large,larger,orincreasedquantityofPPI15.NE::=no,low,less,ordecreasedquantityofPPI16.|large,larger,orincreasedquantityofNPI17.NPI::=anegativepotentialitem18.PPI::=apositivepotentialitem4Decreasedandincreasedquantityofanopinionateditem(NandP):Thissetofrulesissimilartothenegationrules3,4,7,and8above.Decreasingorincreasingthequantityassociatedwithanopinionateditem(oftennounsandnounphrases)canchangetheorientationoftheopinion.Forexample,inthesentence“Thisdrugreducedmypainsigniﬁcantly”,“pain”isanegativeopinionword,andthereductionof“pain”indicatesadesirableeﬀectofthedrug.Hence,decreasedpainimpliesapositiveopiniononthedrug.Theconceptofdecreasingalsoextendstoremovalanddisappearance,e.g.,“Mypainhasdisappearedaftertakingthedrug.”ASurveyofOpinionMiningandSentimentAnalysis43719.PO::=lessordecreasedN20.|moreorincreasedP21.NE::=lessordecreasedP22.|moreorincreasedNRules20and22maynotbeneededasthereisnochangeofopinionorientation,buttheycanchangetheopinionintensity.Thekeydiﬀerencebetweenthissetofrulesandtherulesinthepreviouscategoryisthatnoopinionwordsorphrasesareinvolvedinthepreviouscategory.5Deviationfromthenormorsomedesiredvaluerange:Insomeapplicationdomains,thevalueofanaspectmayhaveadesiredrangeornorm.Ifitisaboveorbelowthenormalrange,itisnegative,e.g.,“Thisdrugcauseslow(orhigh)bloodpressure”and“Thisdrugcausesmybloodpressuretoreach200.”Noticethatnoopinionwordappearedinthesesentences.23.PO::=withinthedesiredvaluerange24.NE::=aboveorbelowthedesiredvaluerange6Producingandconsumingresourcesandwastes:Ifanentitypro-ducesalotofresources,itispositive.Ifitconsumesalotofresources,itisnegative.Forexample,waterisaresource.Thesentence,“Thiswasherusesalotofwater”givesanegativeopin-ionaboutthewasher.Likewise,ifanentityproducesalotofwastes,itisnegative.Ifitconsumesalotofwastes,itispositive.25.PO::=producealargequantityoformoreresource26.|produceno,littleorlesswaste27.|consumeno,littleorlessresource28.|consumealargequantityoformorewaste29.NE::=produceno,littleorlessresource30.|producesomeormorewaste31.|consumealargequantityoformoreresource32.|consumeno,littleorlesswasteWeshouldnotethattheserulesarenottheonlyrulesthatgovernexpres-sionsofpositiveandnegativeopinions.Withfurtherresearch,additionalnewrulesmaybediscovered.438MININGTEXTDATA5.3AspectExtractionExistingresearchonaspectextraction(moreprecisely,aspectexpres-sionextraction)ismainlycarriedoutinonlinereviews.Wethusfocusonreviewshere.Wedescribesomeunsupervisedmethodsforﬁndingaspectexpressionsthatarenounsandnounphrases.Theﬁrstmethodisdueto[31].Themethodconsistsoftwosteps:1Findfrequentnounsandnounphrases.Nounsandnounphrases(orgroups)areidentiﬁedbyaPOStagger.Theiroccurrencefre-quenciesarecounted,andonlythefrequentonesarekept.Afrequencythresholdcanbedecidedexperimentally.Thereasonforusingthisapproachisthatwhenpeoplecommentondiﬀer-entaspectsofaproduct,thevocabularythattheyuseusuallyconverges.Thus,thosenounsthatarefrequentlytalkedaboutareusuallygenuineandimportantaspects.Irrelevantcontentsinreviewsareoftendiverse,i.e.,theyarequitediﬀerentindiﬀerentreviews.Hence,thoseinfrequentnounsarelikelytobenon-aspectsorlessimportantaspects.2Findinfrequentaspectsbyexploitingtherelationshipsbetweenaspectsandopinionwords.Theabovestepcanmissmanygenuineaspectexpressionswhichareinfrequent.Thissteptriestoﬁndsomeofthem.Theideaisasfollows:Thesameopinionwordcanbeusedtodescribeormodifydiﬀerentaspects.Opinionwordsthatmodifyfrequentaspectscanalsomodifyinfrequentaspects,andthuscanbeusedtoextractinfrequentaspects.Forexample,“picture”hasbeenfoundtobeafrequentaspect,andwehavethesentence,“Thepicturesareabsolutelyamazing.”Ifweknowthat“amazing”isanopinionword,then“software”canalsobeextractedasanaspectfromthefollowingsentence,“Thesoftwareisamazing.”becausethetwosentencesfollowthesamedependencypatternand“software”inthesentenceisalsoanoun.Thisideaofusingthemodifyingrelationshipofopinionwordsandaspectstoextractaspectswaslatergeneralizedtousingdependencyrelations[120],whichwasfurtherdevelopedintothedouble-propagationmethodforsimultaneouslyextractingbothopinionwordsandaspects[85].Thedouble-propagationmethodwillbedescribedinSect.5.4.Theprecisionofstep1oftheabovealgorithmwasimprovedin[83].Theiralgorithmtriestoremovethosenounphrasesthatmaynotbeproductaspects/features.ItevaluateseachnounphrasebycomputingASurveyofOpinionMiningandSentimentAnalysis439apointwisemutualinformation(PMI)scorebetweenthephraseandsomemeronymydiscriminatorsassociatedwiththeproductclass,e.g.,ascannerclass.Themeronymydiscriminatorsforthescannerclassare,“ofscanner”,“scannerhas”,“scannercomeswith”,etc.,whichareusedtoﬁndcomponentsorpartsofscannersbysearchingtheWeb.PMI(a,d)=hits(a∧d)hits(a)·hits(d)(13.5)whereaisacandidateaspectidentiﬁedinstep1anddisadiscriminator.Websearchisusedtoﬁndthenumberofhitsofindividualtermsandalsotheirco-occurrences.Theideaofthisapproachisclear.IfthePMIvalueofacandidateaspectistoolow,itmaynotbeacomponentoftheproductbecauseaandddonotco-occurfrequently.Otherrelatedworksonaspectextractionuseexistingknowledge,su-pervisedlearning,semi-supervisedlearning,topicmodelingandcluster-ing.Forexample,manyinformationextractiontechniquescanalsobeapplied,e.g.,ConditionalRandomFields(CRF)[33,52],andHiddenMarkovModels(HMM)[22,34,35],andsequentialrulemining[60].Wuetal.[111]useddependencytreekernels.Suetal.[92]proposedaclusteringmethodwithmutualreinforcementtoidentifyimplicitas-pects.Topicmodelingmethodshavealsobeenattemptedasanunsupervisedandknowledge-leanapproach.TitovandMcDonald[99]showedthatglobaltopicmodelssuchasLDA(LatentDirichletallocation[6])mightnotbesuitablefordetectingrateableaspects.Theyproposedmulti-graintopicmodelstodiscoverlocalrateableaspects.Hereeachdiscoveredas-pectisaunigramlanguagemodel,i.e.,amultinomialdistributionoverwords.Sucharepresentationisthusnotaseasytointerpretasaspectsextractedbypreviousmethods,butitsadvantageisthatdiﬀerentwordsexpressingthesameorrelatedaspects(morepreciselyaspectexpres-sions)canusuallybeautomaticallygroupedtogetherunderthesameaspect.However,TitovandMcDonald[99]didnotseparateaspectsandopinionwordsinthediscovery.LinandHe[57]proposedajointtopic-sentimentmodelalsobyextendingLDA,whereaspectwordsandopinionwordswerestillnotexplicitlyseparated.Toseparateaspectsandopin-ionwordsusingtopicmodels,Meietal.[67]proposedtouseapositivesentimentmodelandanegativesentimentmodelinadditionaltoaspectmodels.BrodyandElhadad[10]proposedtoﬁrstidentifyaspectsusingtopicmodelsandthenidentifyaspect-speciﬁcopinionwordsbyconsid-eringadjectivesonly.Zhaoetal.[119]proposedaMaxEnt-LDAhybridmodeltojointlydiscoverbothaspectwordsandaspect-speciﬁcopinionwords,whichcanleveragesyntacticfeaturestohelpseparateaspects440MININGTEXTDATAandopinionwords.TopicmodelingbasedapproacheswerealsousedbyLiuetal.[62]andLuetal.[65].Anotherlineofworkistoassociateaspectswithopinion/sentimentratings.Itaimstopredictratingsbasedonlearnedaspectsorjointlymodelaspectsandratings.TitovandMcDonald[98]proposedasta-tisticalmodelthatisabletodiscoveraspectsfromtextandtoextracttextualevidencefromreviewssupportingeachaspectrating.Luetal.[66]deﬁnedaproblemofratedaspectsummarization.Theyproposedtousethestructuredprobabilisticlatentsemanticanalysismethodtolearnaspectsfromabagofphrases,andalocal/globalmethodtopredictas-pectratings.Wangetal.[102]proposedtoinferbothaspectratingsandaspectweightsatthelevelofindividualreviewsbasedonlearnedlatentaspects.JoandOh[41]proposedanAspectandSentimentUniﬁcationModel(ASUM)tomodelsentimentstowarddiﬀerentaspects.5.4SimultaneousOpinionLexiconExpansionandAspectExtractionIn[84,85],amethodwasproposedtoextractbothopinionwordsandaspectssimultaneouslybyexploitingsomesyntacticrelationsofopinionwordsandaspects.Themethodneedsonlyaninitialsetofopinionwordseedsastheinputandnoseedaspectsarerequired.Itisbasedontheobservationthatopinionsalmostalwayshavetargets.Hencetherearenaturalrelationsconnectingopinionwordsandtargetsinasentenceduetothefactthatopinionwordsareusedtomodifytargets.Furthermore,itwasfoundthatopinionwordshaverelationsamongthemselvesandsodotargetsamongthemselvestoo.Theopiniontargetsareusuallyaspects.Thus,opinionwordscanberecognizedbyidentiﬁedaspects,andaspectscanbeidentiﬁedbyknownopinionwords.Theextractedopinionwordsandaspectsareutilizedtoidentifynewopinionwordsandnewaspects,whichareusedagaintoextractmoreopinionwordsandaspects.Thispropagationorbootstrappingprocessendswhennomoreopinionwordsoraspectscanbefound.Astheprocessinvolvesprop-agationthroughbothopinionwordsandaspects,themethodiscalleddoublepropagation.Extractionrulesaredesignedbasedondiﬀerentre-lationsbetweenopinionwordsandaspects,andalsoopinionwordsandaspectsthemselves.Speciﬁcally,foursubtasksareperformed:1extractingaspectsusingopinionwords;2extractingaspectsusingtheextractedaspects;3extractingopinionwordsusingtheextractedaspects;ASurveyofOpinionMiningandSentimentAnalysis4414extractingopinionwordsusingboththegivenandtheextractedopinionwords.Dependencygrammar[97]wasadoptedtodescribetherelations.Thealgorithmusesonlyasimpletypeofdependenciescalleddirectdepen-denciestomodeltherelations.Adirectdependencyindicatesthatoneworddependsontheotherwordwithoutanyadditionalwordsintheirdependencypathortheybothdependonathirdworddirectly.Someconstraintsarealsoimposed.Opinionwordsareconsideredtobeadjec-tivesandaspectsnounsornounphrases.Forexample,inanopinionsentence“CanonG3producesgreatpic-tures”,theadjective“great”isparsedasdirectlydependingonthenoun“pictures”throughrelationmod.Ifweknow“great”isanopinionwordandaregiventherule‘anounonwhichanopinionworddirectlyde-pendsthroughmodistakenasanaspect’,wecanextract“pictures”asanaspect.Similarly,ifweknow“pictures”isanaspect,wecanextract“great”asanopinionwordusingasimilarrule.6.MiningComparativeOpinionsDirectlyorindirectlyexpressingpositiveornegativeopinionsaboutanentityanditsaspectsisonlyoneformofevaluation.Comparingtheentitywithsomeothersimilarentitiesisanother.Comparisonsarerelatedtobutarealsoquitediﬀerentfromregularopinions.Theynotonlyhavediﬀerentsemanticmeanings,butalsodiﬀerentsyntacticforms.Forexample,atypicalregularopinionsentenceis“Thepicturequalityofthiscameraisgreat”,andatypicalcomparativesentenceis“ThepicturequalityofCamera-xisbetterthanthatofCamera-y.”Thissectionﬁrstdeﬁnestheproblem,andthenpresentssomeexistingmethodstosolveit[15,18,24,37].Ingeneral,acomparativesentenceexpressesarelationbasedonsimi-laritiesordiﬀerencesofmorethanoneentity.Thecomparisonisusuallyconveyedusingthecomparativeorsuperlativeformofanadjectiveoradverb.Acomparativesentencetypicallystatesthatoneentityhasmoreorlessofacertainattributethananotherentity.Asuperlativesentencetypicallystatesthatoneentityhasthemostorleastofacer-tainattributeamongasetofsimilarentities.Ingeneral,acomparisoncanbebetweentwoormoreentities,groupsofentities,andoneentityandtherestoftheentities.Itcanalsobebetweenanentityanditspreviousversions.Twotypesofcomparatives:InEnglish,comparativesareusuallyformedbyaddingthesuﬃx-erandsuperlativesareformedbyadding442MININGTEXTDATAthesuﬃx-esttotheirbaseadjectivesandadverbs.Forexample,in“ThebatterylifeofCamera-xislongerthanthatofCamera-y”,“longer”isthecomparativeformoftheadjective“long”.In“Thebatterylifeofthiscameraisthelongest”,“longest”isthesuperlativeformofthead-jective“long”.WecallthistypeofcomparativesandsuperlativesasType1comparativesandsuperlatives.Notethatforsimplicity,weoftenusecomparativetomeanbothcomparativeandsuperlativeifsuperlativeisnotexplicitlystated.Adjectivesandadverbswithtwosyllablesormoreandnotendinginydonotformcomparativesorsuperlativesbyadding-eror-est.In-stead,more,most,lessandleastareusedbeforesuchwords,e.g.,morebeautiful.WecallthistypeofcomparativesandsuperlativesasType2comparativesandsuperlatives.BothType1andType2arecalledreg-ularcomparativesandsuperlatives.InEnglish,therearealsoirregularcomparativesandsuperlatives,i.e.,more,most,less,least,better,best,worse,worst,further/fartherandfurthest/farthest,whichdonotfollowtheaboverules.However,theybehavesimilarlytoType1comparativesandarethusgroupedunderType1.Apartfromthesestandardcomparativesandsuperlatives,manyotherwordsorphrasescanalsobeusedtoexpresscomparisons,e.g.,preferandsuperior.Forexample,thesentence,“Camera-x’squalityissupe-riortoCamera-y”,saysthat“Camera-xisbetterorpreferred.”In[36],JindalandLiuidentiﬁedalistofsuchwords.SincethesewordsbehavesimilarlytoType1comparatives,theyarealsogroupedunderType1.Typesofcomparativerelations:Comparativerelationsorcompar-isonscanbegroupedintofourmaintypes.Theﬁrstthreetypesarecalledthegradablecomparisonsandthelastonethenon-gradablecom-parisons.1Non-equalgradablecomparisons:Relationsofthetypegreaterorlessthanthatexpressanorderingofsomeentitieswithregardtosomeoftheirsharedaspects,e.g.,“TheIntelchipisfasterthanthatofAMD”.Thistypealsoincludesuserpreferences,e.g.,“IpreferInteltoAMD”.2Equativecomparisons:Relationsofthetypeequaltothatstatetwoormoreentitiesareequalwithregardtosomeoftheirsharedaspects,e.g.,“TheperformanceofCar-xisaboutthesameasthatofCar-y.”3Superlativecomparisons:Relationsofthetypegreaterorlessthanallothersthatrankoneentityoverallothers,e.g.,“TheIntelchipisthefastest”.ASurveyofOpinionMiningandSentimentAnalysis4434Non-gradablecomparisons:Relationsthatcompareaspectsoftwoormoreentities,butdonotgradethem.Therearethreemainsub-types:EntityAissimilartoordiﬀerentfromentityBwithregardtosomeoftheirsharedaspects,e.g.,“CoketastesdiﬀerentlyfromPepsi.”EntityAhasaspecta1,andentityBhasaspecta2(a1anda2areusuallysubstitutable),e.g.,“DesktopPCsuseexternalspeakersbutlaptopsuseinternalspeakers.”EntityAhasaspecta,butentityBdoesnothave,e.g.,“Phone-xhasanearphone,butPhone-ydoesnothave.”Comparativewordsusedinnon-equalgradablecomparisonscanbefurthercategorizedintotwogroupsaccordingtowhethertheyexpressincreasedordecreasedquantities,whichareusefulinopin-ionanalysis.•Increasingcomparatives:Suchacomparativeexpressesanin-creasedquantity,e.g.,moreandlonger.•Decreasingcomparatives:Suchacomparativeexpressesade-creasedquantity,e.g.,lessandfewer.Objectiveofminingcomparativeopinions:Givenacollec-tionofopinionateddocumentsD,discoverinDallcomparativeopinionsextuplesoftheform(E1,E2,A,PE,h,t),whereE1andE2aretheentitysetsbeingcomparedbasedontheirsharedas-pectsA(entitiesinE1appearbeforeentitiesinE2inthesentence),PE(∈{E1,E2})isthepreferredentitysetoftheopinionholderh,andtisthetimewhenthecomparativeopinionisexpressed.Example13.11Considerthecomparativesentence“Canon’sopticsisbetterthanthoseofSonyandNikon.”writtenbyJohnin2010.Theextractedcomparativeopinionis:({Canon},{Sony,Nikon},{optics},preferred:{Canon},John,2010)TheentitysetE1is{Canon},theentitysetE2is{Sony,Nikon},theirsharedaspectsetAbeingcomparedis{optics},thepreferredentitysetis{Canon},theopinionholderhisJohnandthetimetwhenthiscom-parativeopinionwaswrittenis2010.Tominecomparativeopinions,thetasksofextractingentities,aspects,opinionholdersandtimesarethesameasthoseforminingregularopin-ions.In[37],amethodbasedonlabelsequentialrules(LSR)isproposedtoextractentitiesandaspectsthatarecompared.Asimilarapproach444MININGTEXTDATAisdescribedin[54]forextractingthecomparedentities.Clearly,theapproachesdiscussedinprevioussectionsareapplicableaswell,andsoaremanyotherinformationextractionmethods.See[37,24,18]forsomeexistingmethodsforperformingsentimentanalysisofcompara-tivesentences,i.e.,identifyingcomparativesentencesandidentifyingthepreferredentityset.7.SomeOtherProblemsBesidestheproblemsdiscussedinprevioussections,therearemanyotherchallengesinopinionmining.Thissectiongivesanintroductiontosomeofthem.Aswewillsee,mostoftheseproblemsarerelatedtotheirgeneralproblemsthathavebeenstudiedbeforebuttheopiniontextpro-videsmorecluesfortheirsolutionsandalsohasadditionalrequirements.Entity,opinionholder,andtimeextraction:Insomeapplications,itisusefultoidentifyandextractentities,opinionholders,andthetimeswhenopinionsaregiven.TheseextractiontasksarecollectivelycalledNamedEntityRecognition(NER).Theyhavebeenstudiedextensivelyintheliterature.InthecaseofsocialmediaontheWeb,theopinionholdersareoftentheauthorsofthediscussionpostings,bloggers,orreviewers,whoseloginidsareknownalthoughtheirtrueidentitiesintherealworldmaybeunknown.Thedateandtimewhenanopinionissubmittedarealsoknownanddisplayedonthepage,sotheirextractioniseasy[59].Forentitynameextraction,thereisadiﬀerencefromNER.Inatypi-calopinionminingapplication,theuserwantstoﬁndopinionsonsomecompetingentities,e.g.,competingproductsorbrands.However,he/sheoftencanonlyprovideafewnamesbecausetherearesomanydif-ferentbrandsandmodels.Furthermore,Webusersalsowritenamesofthesameproductbrandsinmanyways.Forexample,“Motorola”maybewrittenas“Moto”or“Mot”,and“Samsung”maybewrittenas“Sammy”.Productmodelnameshaveevenmorevariations.Itisthusimportantforasystemtoautomaticallydiscoverthemfromarelevantcorpus.Thekeyrequirementisthatthediscoveredentitiesmustbeofthesametypeasentitiesprovidedbytheuser(e.g.,phonebrandsandmodels).In[55],thisproblemwasmodeledasasetexpansionproblem[25,79],whichexpandsasetofgivenseedentities(e.g.,productnames).Formally,theproblemisstatedasfollows:GivenasetQofseedentitiesofaparticularclassC,andasetDofcandidateentities,wewishtodeterminewhichoftheentitiesinDbelongtoC.Thatis,we“grow”theclassCbasedonthesetofseedexamplesQ.AlthoughthisisaASurveyofOpinionMiningandSentimentAnalysis445classiﬁcationproblem,inpractice,theproblemisoftensolvedasarank-ingproblem,i.e.,toranktheentitiesinDbasedontheirlikelihoodsofbelongingtoC.Itwasshownthatlearningfrompositiveandunlabeledexamplesprovidesamoreeﬀectivemethodthanthetraditionaldistri-butionalsimilaritymethods[53,79]andthemachinelearningtechniqueBayesianSets[25]whichwasdesignedspeciﬁcallyforsetexpansion.Objectiveexpressionsimplyingsentiments:Muchoftheresearchonsentimentanalysisfocusesonsubjectivesentences,whichareregardedasopinionbearing.However,manyobjectivesentencescanbearopin-ionsaswell.Forexample,inamattressreview,thesentence“Withinamonth,avalleyformedinthemiddleofthemattress”isnotasubjectivesentence,butanobjectivesentence.However,itimpliesanegativeopin-ionaboutthemattress.Speciﬁcally,“valley”inthiscontextindicatesthequalityofthemattress(aproductaspect)andimpliesanegativeopinion.Objectivewords(orsentences)thatimplyopinionsareverydiﬃculttorecognizebecausetheirrecognitiontypicallyrequiresthecommonsenseorworldknowledgeoftheapplicationdomain.In[116],amethodwasproposedtodealwiththeproblemofproductaspectswhicharenounsandimplyopinionsusingalargecorpus.Ourexperimentalresultsshowsomepromisingresults.However,theaccuracyisstilllow,andmuchfurtherresearchisstillneeded.Groupingaspectexpressionsindicatingthesameaspects:Itiscommonthatpeopleusediﬀerentwordsorphrases(whicharecalledaspectexpressionsinSect.1)todescribethesameaspect.Forexample,photoandpicturerefertothesameaspectindigitalcamerareviews.Identifyingandgroupingaspectexpressionsindicatingthesameaspectareessentialforapplications.AlthoughWordNet[69]andotherthe-saurusdictionarieshelptosomeextent,theyarefarfromsuﬃcientduetothefactthatmanysynonymsaredomaindependent.Forexample,pictureandmoviearesynonymsinmoviereviews,buttheyarenotsyn-onymsindigitalcamerareviewsaspictureismorerelatedtophotowhilemoviereferstovideo.Itisalsoimportanttonotethatalthoughmostas-pectexpressionsofanaspectaredomainsynonyms,theyarenotalwayssynonyms.Forexample,“expensive”and“cheap”canbothindicatetheaspectpricebuttheyarenotsynonymsofprice.Careninietal[12]proposedtheﬁrstmethodtosolvethisprobleminthecontextofopinionmining.Theirmethodisbasedonseveralsimilaritymetricsdeﬁnedusingstringsimilarity,synonymsanddistancesmeasuredusingWordNet.Itrequiresataxonomyofaspectstobegivenforaparticulardomain.Thealgorithmmergeseachdiscoveredaspect446MININGTEXTDATAexpressiontoanaspectnodeinthetaxonomy.ExperimentsbasedondigitalcameraandDVDreviewsshowedpromisingresults.In[114],Zhaietal.proposedasemi-supervisedlearningmethodtogroupaspectexpressionsintotheuserspeciﬁedaspectgroups.Eachgrouprepresentsaspeciﬁcaspect.Toreﬂecttheuserneeds,he/sheﬁrstmanuallylabelsasmallnumberofseedsforeachgroup.Thesystemthenassignstherestofthediscoveredaspectexpressionstosuitablegroupsusingsemi-supervisedlearningbasedonlabeledseedsandunla-beledexamples.ThemethodusedtheExpectation-Maximization(EM)algorithm.TwopiecesofpriorknowledgewereusedtoprovideabetterinitializationforEM,i.e.,(1)aspectexpressionssharingsomecommonwordsarelikelytobelongtothesamegroup,and(2)aspectexpressionsthataresynonymsinadictionaryarelikelytobelongtothesamegroup.Mappingimplicitaspectexpressionstoaspects:Therearemanytypesofimplicitaspectexpressions.Adjectivesareperhapsthemostcommontype.Manyadjectivesmodifyordescribesomespeciﬁcat-tributesorpropertiesofentities.Forexample,theadjective”heavy”usuallydescribestheaspectweightofanentity.”Beautiful”isnormallyusedtodescribe(positively)theaspectlookorappearanceofanentity.Bynomeans,however,doesthissaythattheseadjectivesonlydescribesuchaspects.Theirexactmeaningscanbedomaindependent.Forex-ample,“heavy”inthesentence“thetraﬃcisheavy”doesnotdescribetheweightofthetraﬃc.Onewaytomapimplicitaspectexpressionstoaspectsistomanuallycompilealistofsuchmappingsduringtrainingdataannotation,whichcanthenbeusedinthesamedomaininthefu-ture.However,weshouldnotethatsomeimplicitaspectexpressionsareverydiﬃculttoextractandtomap,e.g.,“ﬁtinpockets”inthesentence“Thisphonewillnoteasilyﬁtinpockets”.Coreferenceresolution:ThisproblemhasbeenextensivelystudiedintheNLPcommunity.However,thesentimentanalysiscontexthasadditionalneeds.In[16],theproblemofentityandaspectcoreferenceresolutionwasproposed.Itdetermineswhichmentionsofentitiesand/oraspectsrefertothesameentities.Thekeyinterestingpointswerethedesignandtestingoftwoopinion-relatedfeaturesformachinelearning.Theﬁrstfeatureisbasedonopinionanalysisofregularsentencesandcomparativesentences,andtheideaofsentimentconsistency.Forexam-ple,wehavethesentences,“TheSonycameraisbetterthantheCanoncamera.Itischeaptoo.”Itisclearthat“It”means“Sony”becauseintheﬁrstsentence,theopinionabout“Sony”ispositive(comparativepositive),butitisnegative(comparativenegative)about“Canon”,andASurveyofOpinionMiningandSentimentAnalysis447thesecondsentenceispositive.Thus,wecanconcludethat“It”refersto“Sony”becausepeopleusuallyexpresssentimentsinaconsistentway.Itisunlikelythat“It”refersto“Canon”.Aswecansee,toobtainthisfeature,thesystemneedstohavetheabilitytodeterminepositiveandnegativeopinionsexpressedinregularandcomparativesentences.Thesecondfeatureconsiderswhatentitiesandaspectsaremodiﬁedbywhatopinionwords.Considerthesesentences,“ThepicturequalityoftheCanoncameraisverygood.Itisnotexpensiveeither.”Theques-tioniswhat“It”refersto,“Canoncamera”or“picturequality”.Clearly,weknowthat“It”refersto“Canoncamera”because“picturequality”cannotbeexpensive.Toobtainthisfeature,thesystemneedstoidentifywhatopinionwordsareusuallyassociatedwithwhatentitiesoraspects,whichmeansthatthesystemneedstodiscoversuchrelationshipsfromthecorpus.Thesetwofeaturescanboostthecoreferenceresolutionac-curacy.Crosslingualopinionmining:Thisresearchinvolvesopinionminingforalanguagecorpusbasedonthecorporafromotherlanguages.Itisneededinfollowingscenarios.Firstly,therearemanyEnglishsentimentcorporaontheWebnowadays,butforotherlanguages(e.g.Chinese),theannotatedsentimentcorporaarelimited[101].Anditisnotatriv-ialtasktolabelthemmanually.UtilizingEnglishcorporaforopinionmininginChinesecanrelievethelabelingburden.Secondly,therearemanysituationswhereopinionminingresultsneedtobemultilanguage-comparable.Forexample,globalcompaniesneedtoanalyzecustomerfeedbackfortheirproductsandservicesfrommanycountriesindiﬀer-entlanguages[47].Thus,cross-lingualopinionminingisnecessary.Thebasicideaofthecurrentresearchistoutilizeavailablelanguagecor-poratotrainsentimentclassiﬁersforthetargetlanguagedata.Machinetranslationistypicallyused[3,8,27,47,101].8.OpinionSpamDetectionIthasbecomeacommonpracticeforpeopletoﬁndandtoreadopin-ionsontheWebformanypurposes.Forexample,ifonewantstobuyaproduct,onetypicallygoestoamerchantorreviewsite(e.g.,ama-zon.com)toreadsomereviewsofexistingusersoftheproduct.Ifoneseesmanypositivereviewsoftheproduct,oneisverylikelytobuytheproduct.However,ifoneseesmanynegativereviews,he/shewillmostlikelychooseanotherproduct.Positiveopinionscanresultinsigniﬁcantﬁnancialgainsand/orfamesfororganizationsandindividuals.This,unfortunately,givesgoodincentivesforopinionspam,whichrefersto448MININGTEXTDATAhumanactivities(e.g.,writespamreviews)thattrytodeliberatelymis-leadreadersorautomatedopinionminingsystemsbygivingundeservingpositiveopinionstosometargetentitiesinordertopromotetheentitiesand/orbygivingunjustorfalsenegativeopinionstosomeotherentitiesinordertodamagetheirreputation.Suchopinionsarealsocalledfakeopinions,bogusopinions,orfakereviews.TheproblemofdetectingfakeorspamopinionswasintroducedbyJindalandLiuin[38,39].IndividualSpammersandGroupSpammers:Aspammermayactindividually(e.g.,theauthorofabook)orasamemberofagroup(e.g.,agroupofemployeesofacompany).Individualspammers:Inthiscase,aspammer,whodoesnotworkwithanyoneelse,writesspamreviews.Thespammermayregisteratare-viewsiteasasingleuser,orasmanyfakeusersusingdiﬀerentuser-ids.He/shecanalsoregisteratmultiplereviewsitesandwritespamre-views.Groupspammers:Agroupofspammersworkstogethertopromoteatargetentityand/ortodamagethereputationofanother.Theymayalsoregisteratmultiplesitesandspamonthesesites.Groupspamcanbeverydamagingbecausetheymaytakecontrolofthesentimentonaproductandcompletelymisleadpotentialcustomers.8.1SpamDetectionBasedonSupervisedLearningIngeneral,spamdetectioncanbeformulatedasaclassiﬁcationprob-lemwithtwoclasses,spamandnon-spam.However,manuallylabelingthetrainingdataforlearningisveryhard,ifnotimpossible.Theprob-lemisthatidentifyingspamreviewsbysimplyreadingthereviewsisextremelydiﬃcultbecauseaspammercancarefullycraftaspamreviewthatisjustlikeanyinnocentreview.Sincemanuallylabelingtrainingdataishard,otherwayshavetobeexploredinordertoﬁndtrainingexamplesfordetectingpossiblefakereviews.In[38],itexploitedduplicatereviews.Intheirstudyof5.8millionreviews,2.14millionreviewersand6.7millionproductsfromamazon.com,alargenumberofduplicateandnear-duplicatereviewswerefound.Certaintypesofduplicateandnear-duplicatereviewswereregardedasspamreviews,andtherestofthereviewsasnon-spamre-views.In[38,39],threesetsoffeatureswereidentiﬁedforlearning:ASurveyofOpinionMiningandSentimentAnalysis4491Reviewcentricfeatures:Thesearefeaturesaboutthecontentofreviews.Examplefeaturesincludeactualwordsinareview,thenumberoftimesthatbrandnamesarementioned,thepercentageofopinionwords,thereviewlength,andthenumberofhelpfulfeedbacks.2Reviewercentricfeatures:Thesearefeaturesabouteachreviewer.Examplefeaturesincludetheaverageratinggivenbythereviewer,thestandarddeviationinrating,theratioofthenumberofreviewsthatthereviewerwrotewhichweretheﬁrstreviewsoftheproductstothetotalnumberofreviewsthathe/shewrote,andtheratioofthenumberofcasesinwhichhe/shewastheonlyreviewer.3Productcentricfeatures:Thesearefeaturesabouteachproduct.Examplefeaturesincludethepriceoftheproduct,thesalesrankoftheproduct(amazon.comassignssalesrankto‘nowsellingprod-ucts’accordingtotheirsalesvolumes),theaveragereviewratingoftheproduct,andthestandarddeviationinratingsofthereviewsfortheproduct.Logisticregressionwasusedformodelbuilding.Experimentalresultsshowedsomeinterestingresults.8.2SpamDetectionBasedonAbnormalBehaviorsDuetothediﬃcultyofmanuallylabelingtrainingdata,treatingopin-ionspamdetectionasasupervisedlearningproblemisproblematicbe-causemanynon-duplicatedreviewscanbespamtoo.Here,wedescribetwotechniquesthattrytoidentifyatypicalbehaviorsofreviewersfordetectingspammers.Forexample,ifareviewerwroteallnegativere-viewsforabrandbutotherreviewerswereallpositiveaboutthebrand,thenthisreviewerisnaturallyaspamsuspect.Theﬁrsttechnique[56]identiﬁesseveralunusualreviewerbehaviormodelsbasedondiﬀerentreviewpatternsthatsuggestspamming.Eachmodelassignsanumericspammingbehaviorscoretoareviewerbymea-suringtheextenttowhichthereviewerpracticesspammingbehaviorofthetype.Allthescoresarethencombinedtoproduceaﬁnalspamscoreforeachreviewer.Thesecondtechnique[40]identiﬁesunusualreviewerbehaviorpat-ternsviaunexpectedrulediscovery.Thisapproachformulatestheprob-lemasﬁndingunexpectedclassassociationrules[59]fromdata.Fourtypesofunexpectedrulesarefoundbasedonfourunexpectednessdeﬁ-nitions.Below,anexamplebehaviorisgivenforeachtypeofunexpect-450MININGTEXTDATAednessdeﬁnition.Theirdetaileddeﬁnitionsforthesetypesofunexpect-ednessareinvolved[40].Below,webrieﬂyintroducethembygivinganexamplebehaviorforeachunexpectedness.ConﬁdenceUnexpectedness:Usingthismeasure,wecanﬁndreviewerswhogiveallhighratingstoproductsofabrand,butmostotherreviewersaregenerallynegativeaboutthebrand.SupportUnexpectedness:Usingthismeasure,wecanﬁndre-viewerswhowritemultiplereviewsforasingleproduct,whileotherreviewersonlywriteonereview.AttributeDistributionUnexpectedness:Usingthismeasure,wecanﬁndthatmostpositivereviewsforabrandofproductsarefromonlyonerevieweralthoughtherearealargenumberofreviewerswhohavereviewedtheproductsofthebrand.AttributeUnexpectedness:Usingthismeasure,wecanﬁndreviewerswhowriteonlypositivereviewstoonebrand,andonlynegativereviewstoanotherbrand.Experimentalresultsofbothpapers[40,56]usingamazon.comreviewsshowedthatmanyspammerscanbedetectedbasedontheirbehaviors.8.3GroupSpamDetectionAgroupspamdetectionalgorithmwasreportedin[72].Itﬁndsgroupsofspammerswhoworktogethertopromoteordemotesomeproducts.Themethodworksintwosteps:1Frequentpatternmining:First,itextractsthereviewdatatoproduceasetoftransactions.Eachtransactionrepresentsauniqueproductandconsistsofallthereviewers(theirids)whohavereviewedthatproduct.Usingallthetransactions,itper-formsfrequentpatternmining.Thepatternsthusgiveusasetofcandidategroupswhomighthavespammedtogether.Thereasonforusingfrequentpatternminingisasfollows:Ifagroupofre-viewerswhoonlyworkedtogetheroncetopromoteortodemoteasingleproduct,itcanbehardtodetectbasedontheircollec-tiveorgroupbehavior.However,thesefakereviewers(especiallythosewhogetpaidtowrite)cannotbejustwritingonereviewforasingleproductbecausetheywouldnotmakeenoughmoneythatway.Instead,theyworkonmanyproducts,i.e.,writemanyreviewsaboutmanyproducts,whichunfortunatelyalsogivethemaway.Frequentpatternminingcanbeusedtoﬁndthemworkingtogetheronmultipleproducts.ASurveyofOpinionMiningandSentimentAnalysis4512Rankgroupsbasedonasetofgroupspamindicators:Thegroupsdiscoveredinstep1maynotallbespammergroups.Manyofthereviewersaregroupedtogetherinpatternminingsimplyduetochance.Then,thisstepﬁrstusesasetofindicatorstocatchdiﬀerenttypesofunusualgroupbehaviors.Theseindicatorsincludingwritingreviewstogetherinashorttimewindow,writingreviewsrightaftertheproductlaunch,groupcontentsimilarity,groupratingdeviation,etc(see[72]fordetails).Itthenranksthediscoveredgroupsfromstep1basedontheirindicatorvaluesusingSVMrank(alsocalledRankingSVM)[42].9.UtilityofReviewsArelatedproblemthathasalsobeenstudiedinthepastfewyearsisthedeterminationoftheusefulness,helpfulnessorutilityofeachreview[26,50,61,118,64,70,117].Thisisameaningfultaskasitisdesir-abletorankreviewsbasedonutilitiesorqualitieswhenshowingreviewstotheuser,withthemostusefulreviewsﬁrst.Infact,manyreviewaggregationsiteshavebeenpracticingthisforyears.Theyobtainthehelpfulnessorutilityscoreofeachreviewbyaskingreaderstoprovidehelpfulnessfeedbackstoeachreview.Forexample,inamazon.com,thereadercanindicatewhetherhe/sheﬁndsareviewhelpfulbyrespondingtothequestion“Wasthereviewhelpfultoyou?”justbeloweachreview.Thefeedbackresultsfromallthoserespondedarethenaggregatedanddisplayedrightbeforeeachreview,e.g.,“15of16peoplefoundthefol-lowingreviewhelpful”.Althoughmostreviewsitesalreadyprovidetheservice,automaticallydeterminingthequalityofareviewisstillusefulbecausemanyreviewshavefewornofeedbacks.Thisisespeciallytruefornewreviews.Determiningtheutilityofreviewsisusuallyformulatedasaregressionproblem.Thelearnedmodelassignsautilityvaluetoeachreview,whichcanbeusedinreviewranking.Inthisareaofresearch,thegroundtruthdatausedforbothtrainingandtestingareusuallytheuser-helpfulnessfeedbackgiventoeachreview,whichaswediscussedaboveisprovidedforeachreviewatmanyreviewsites.Sounlikefakereviewdetection,thetrainingandtestingdatahereisnotanissue.Researchershaveusedmanytypesoffeaturesformodelbuilding.Examplefeaturesincludereviewlength,reviewrating(thenumberofstars),countsofsomespeciﬁcPOStags,opinionwords,tf-idfweightingscores,wh-words,productattributementions,comparisonwithprod-uctspeciﬁcations,comparisonwitheditorialreviews,andmanymore.Subjectivityclassiﬁcationwasalsoappliedin[26].In[61],Liuetal.452MININGTEXTDATAformulatedtheproblemslightlydiﬀerently.Theymadeitabinaryclas-siﬁcationproblem.Insteadofusingtheoriginalhelpfulnessfeedbackasthetargetordependentvariable,theyperformedmanualannotationbasedonwhetherthereviewevaluatesmanyproductaspectsornot.Finally,weshouldnotethatreviewutilityregression/classiﬁcationandreviewspamdetectionsarediﬀerentconcepts.Not-helpfulorlowqualityreviewsarenotnecessarilyfakereviewsorspam,andhelpfulreviewsmaynotbenon-spam.Auseroftendetermineswhetherareviewishelpfulornotbasedonwhetherthereviewexpressesopinionsonmanyaspectsoftheproduct.Aspammercansatisfythisrequirementbycarefullycraftingareviewthatisjustlikeanormalhelpfulreview.Usingthenumberofhelpfulfeedbackstodeﬁnereviewqualityisalsoproblematicbecauseuserfeedbackscanbespammedtoo.Feedbackspamisasub-problemofclickfraudinsearchadvertising,whereapersonorrobotclicksonsomeonlineadvertisementstogivetheimpressionofrealcustomerclicks.Here,arobotorahumanspammercanalsoclickonhelpfulnessfeedbackbuttontoincreasethehelpfulnessofareview.Anotherimportantpointisthatalowqualityreviewisstillavalidreviewandshouldnotbediscarded,butaspamreviewisuntruthfuland/ormaliciousandshouldberemovedoncedetected.10.ConclusionsThischapterintroducedandsurveyedtheﬁeldofsentimentanalysisandopinionmining.Duetomanychallengingresearchproblemsandawidevarietyofpracticalapplications,ithasbeenaveryactiveresearchareainrecentyears.Infact,ithasspreadfromcomputersciencetomanagementscience.Thischapterﬁrstpresentedanabstractmodelofsentimentanalysis,whichformulatedtheproblemandprovidedacom-monframeworktounifydiﬀerentresearchdirections.Itthendiscussedthemostwidelystudiedtopicofsentimentandsubjectivityclassiﬁcation,whichdetermineswhetheradocumentorsentenceisopinionated,andifsowhetheritcarriesapositiveornegativeopinion.Wethendescribedaspect-basedsentimentanalysiswhichexploitsthefullpoweroftheab-stractmodel.Afterthatwebrieﬂyintroducedtheproblemofanalyzingcomparativesentences.Lastbutnotleast,wediscussedopinionspam,whichisincreasinglybecominganimportantissueasmoreandmorepeoplearerelyingonopinionsontheWebfordecisionmaking.Severalinitialalgorithmsweredescribed.Finally,weconcludethechapterbysayingthatallthesentimentanalysistasksareverychallenging.Ourunderstandingandknowledgeoftheproblemanditssolutionarestilllimited.Themainreasonisthatitisanaturallanguageprocessingtask,ASurveyofOpinionMiningandSentimentAnalysis453andnaturallanguageprocessinghasnoeasyproblems.However,manysigniﬁcantprogresseshavebeenmade.Thisisevidentfromthelargenumberofstart-upcompaniesthatoﬀersentimentanalysisoropinionminingservices.Thereisarealandhugeneedintheindustryforsuchservicesbecauseeverycompanywantstoknowhowconsumersperceivetheirproductsandservicesandthoseoftheircompetitors.Theseprac-ticalneedsandthetechnicalchallengeswillkeeptheﬁeldvibrantandlivelyforyearstocome.References[1]Andreevskaia,A.andS.Bergler.MiningWordNetforfuzzysenti-ment:SentimenttagextractionfromWordNetglosses.InProceed-ingsofConferenceoftheEuropeanChapteroftheAssociationforComputationalLinguistics(EACL-06),2006.[2]Aue,A.andM.Gamon.Customizingsentimentclassiﬁerstonewdomains:acasestudy.InProceedingsofRecentAdvancesinNaturalLanguageProcessing(RANLP-2005),2005.[3]Banea,C.,R.MihalceaandJ.Wiebe.Multilingualsubjectivity:aremorelanguagesbetter?.InProceedingsofInternationalConferenceonComputationalLinguistics(COLING-2010),2010.[4]Beineke,P.,T.Hastie,C.Manning,andS.Vaithyanathan.Anexplo-rationofsentimentsummarization.InProceedingsofAAAISpringSymposiumonExploringAttitudeandAﬀectinText:TheoriesandApplications,2003.[5]Bethard,S.,H.Yu,A.Thornton,V.Hatzivassiloglou,andD.Juraf-sky.Automaticextractionofopinionpropositionsandtheirholders.InProceedingsoftheAAAISpringSymposiumonExploringAttitudeandAﬀectinText,2004.[6]Blei,D.,A.Ng,andM.Jordan.Latentdirichletallocation.TheJournalofMachineLearningResearch,2003,3:p.993-1022.[7]Blitzer,J.,M.Dredze,andF.Pereira.Biographies,bollywood,boom-boxesandblenders:Domainadaptationforsentimentclassiﬁcation.InProceedingsofAnnualMeetingoftheAssociationforComputa-tionalLinguistics(ACL-2007),2007.[8]Boyd-Graber,J.andP.Resnik.Holisticsentimentanalysisacrosslanguages:multilingualsupervisedlatentdirichletallocation.InPro-ceedingsoftheHumanLanguageTechnologyConferenceandtheConferenceonEmpiricalMethodsinNaturalLanguageProcessing(HLT/EMNLP-2010),2010.454MININGTEXTDATA[9]Breck,E.,Y.Choi,andC.Cardie.Identifyingexpressionsofopinionincontext.InProceedingsoftheInternationalJointConferenceonArtiﬁcialIntelligence(IJCAI-2007),2007.[10]Brody,S.andS.Elhadad.Anunsupervisedaspect-sentimentmodelforonlinereviews.InProceedingsofThe2010AnnualConferenceoftheNorthAmericanChapteroftheACL,2010.[11]Carenini,G.,R.Ng,andA.Pauls.Multi-documentsummarizationofevaluativetext.InProceedingsoftheEuropeanChapteroftheAssociationforComputationalLinguistics(EACL-2006),2006.[12]Carenini,G.,R.Ng,andE.Zwart.Extractingknowledgefromeval-uativetext.InProceedingsofThirdIntl.Conf.onKnowledgeCap-ture(K-CAP-05),2005.[13]Choi,Y.,C.Cardie,E.Riloﬀ,andS.Patwardhan.Identifyingsourcesofopinionswithconditionalrandomﬁeldsandextractionpatterns.InProceedingsoftheHumanLanguageTechnologyConfer-enceandtheConferenceonEmpiricalMethodsinNaturalLanguageProcessing(HLT/EMNLP-2005),2005.[14]Choi,Y.andC.Claire.Adaptingapolaritylexiconusingintegerlinearprogrammingfordomain-speciﬁcsentimentclassiﬁcation.InProceedingsoftheConferenceonEmpiricalMethodsinNaturalLan-guageProcessing(EMNLP-2009),2009.[15]Dave,K.,S.Lawrence,andD.Pennock.Miningthepeanutgallery:Opinionextractionandsemanticclassiﬁcationofproductreviews.InProceedingsofInternationalConferenceonWorldWideWeb(WWW-2003),2003.[16]Ding,X.andB.Liu.Resolvingobjectandattributecoreferenceinopinionmining.InProceedingsofInternationalConferenceonComputationalLinguistics(COLING-2010),2010.[17]Ding,X.,B.Liu,andP.Yu.Aholisticlexicon-basedapproachtoopinionmining.InProceedingsoftheConferenceonWebSearchandWebDataMining(WSDM-2008),2008.[18]Ding,X.,B.Liu,andL.Zhang.Entitydiscoveryandassignmentforopinionminingapplications.InProceedingsofACMSIGKDDInternationalConferenceonKnowledgeDiscoveryandDataMining(KDD-2009),2009.[19]Esuli,A.andF.Sebastiani.Determiningtermsubjectivityandtermorientationforopinionmining.InProceedingsofConf.oftheEuropeanChapteroftheAssociationforComputationalLinguistics(EACL-2006),2006.ASurveyofOpinionMiningandSentimentAnalysis455[20]Esuli,A.andF.Sebastiani.Determiningthesemanticorientationoftermsthroughglossclassiﬁcation.InProceedingsofACMInter-nationalConferenceonInformationandKnowledgeManagement(CIKM-2005),2005.[21]Esuli,A.andF.Sebastiani.SentiWordNet:apubliclyavailablelexi-calresourceforopinionmining.InProceedingsofLanguageResourcesandEvaluation(LREC-2006),2006.[22]Freitag,D.andA.McCallum.InformationextractionwithHMMstructureslearnedbystochasticoptimization.InProceedingsofNa-tionalConf.onArtiﬁcialIntelligence(AAAI-2000),2000.[23]Gamon,M.,A.Aue,S.Corston-Oliver,andE.Ringger.Pulse:Min-ingcustomeropinionsfromfreetext.AdvancesinIntelligentDataAnalysisVI,2005:p.121-132.[24]Ganapathibhotla,M.andB.Liu.Miningopinionsincomparativesentences.InProceedingsofInternationalConferenceonComputa-tionalLinguistics(COLING-2008),2008.[25]Ghahramani,Z.andK.Heller.Bayesiansets.AdvancesinNeuralInformationProcessingSystems(NIPS-2005),2005.[26]Ghose,A.andP.Ipeirotis.Designingnovelreviewrankingsystems:predictingtheusefulnessandimpactofreviews.InProceedingsoftheInternationalConferenceonElectronicCommerce,2007.[27]Guo,H.,H.Zhu.,X.Zhang.,andZ.Su.OpinionIt:atextminingsystemforcross-lingualopinionanalysis.InProceedingsofACMIn-ternationalConferenceonInformationandknowledgemanagement(CIKM-2010),2010.[28]Hassan,A.,V.Qazvinian.,D.Radev.What’swiththeattitude?identifyingsentenceswithattitudeinonlinediscussion.InProceed-ingsoftheConferenceonEmpiricalMethodsinNaturalLanguageProcessing(EMNLP-2010),2010.[29]Hatzivassiloglou,V.andK.McKeown.Predictingthesemanticori-entationofadjectives.InProceedingsofAnnualMeetingoftheAs-sociationforComputationalLinguistics(ACL-1997),1997.[30]Hatzivassiloglou,V.andJ.Wiebe.Eﬀectsofadjectiveorientationandgradabilityonsentencesubjectivity.InProceedingsofInter-nationalConferenceonComputationalLinguistics(COLING-2000),2000.[31]Hu,M.andB.Liu.Miningandsummarizingcustomerreviews.InProceedingsofACMSIGKDDInternationalConferenceonKnowl-edgeDiscoveryandDataMining(KDD-2004),2004.456MININGTEXTDATA[32]Huang,X.andW.B.Croft.Auniﬁedrelevancemodelforopin-ionretrieval.InProceedingsofACMInternationalConferenceonInformationandknowledgemanagement(CIKM-2009),2009.[33]Jakob,N.andI.Gurevych.Extractingopiniontargetsinasingle-andcross-domainsettingwithconditionalrandomﬁelds.InPro-ceedingsofConferenceonEmpiricalMethodsinNaturalLanguageProcessing(EMNLP-2010),2010.[34]Jin,W.andH.Ho.AnovellexicalizedHMM-basedlearningframe-workforwebopinionmining.InProceedingsofInternationalCon-ferenceonMachineLearning(ICML-2009),2009.[35]Jin,W.andH.Ho.OpinionMiner:anovelmachinelearningsys-temforwebopinionminingandextraction.InProceedingsofACMSIGKDDInternationalConferenceonKnowledgeDiscoveryandDataMining(KDD-2009),2009.[36]Jindal,N.andB.Liu.Identifyingcomparativesentencesintextdocuments.InProceedingsofACMSIGIRConf.onResearchandDevelopmentinInformationRetrieval(SIGIR-2006),2006.[37]Jindal,N.andB.Liu.Miningcomparativesentencesandrelations.InProceedingsofNationalConf.onArtiﬁcialIntelligence(AAAI-2006),2006.[38]Jindal,N.andB.Liu.Opinionspamandanalysis.InProceedingsoftheConferenceonWebSearchandWebDataMining(WSDM-2008),2008.[39]Jindal,N.andB.Liu.Reviewspamdetection.InProceedingsofInternationalConferenceonWorldWideWeb(WWW-2007),2007.[40]Jindal,N.,B.Liu,andE.Lim.Findingunusualreviewpatternsusingunexpectedrules.InProceedingsofACMInternationalCon-ferenceonInformationandKnowledgeManagement(CIKM-2010),2010.[41]Jo,Y.andA.Oh.Aspectandsentimentuniﬁcationmodelforonlinereviewanalysis.InProceedingsoftheConferenceonWebSearchandWebDataMining(WSDM-2011),2011.[42]Joachims,T.Optimizingsearchenginesusingclickthroughdata.InProceedingsoftheACMConferenceonKnowledgeDiscoveryandDataMining(KDD-2002),2002.[43]Kaji,N.andM.Kitsuregawa.Automaticconstructionofpolarity-taggedcorpusfromHTMLdocuments.InProceedingsofCOL-ING/ACL2006MainConferencePosterSessions(COLING-ACL-2006),2006.ASurveyofOpinionMiningandSentimentAnalysis457[44]Kaji,N.andM.Kitsuregawa.Buildinglexiconforsentimentanal-ysisfrommassivecollectionofHTMLdocuments.InProceedingsoftheJointConferenceonEmpiricalMethodsinNaturalLanguageProcessingandComputationalNaturalLanguageLearning(EMNLP-2007),2007.[45]Kamps,J.,M.Marx,R.Mokken,andM.DeRijke.UsingWordNettomeasuresemanticorientationofadjectives.InProc.ofLREC-2004,2004.[46]Kanayama,H.andT.Nasukawa.Fullyautomaticlexiconexpansionfordomain-orientedsentimentanalysis.InProceedingsofConferenceonEmpiricalMethodsinNaturalLanguageProcessing(EMNLP-2006),2006.[47]Kim,J.,J.Li.,andJ.Lee.Evaluatingmultilanguage-comparabilityofsubjectiveanalysissystem.InProceedingsofAnnualMeetingoftheAssociationforComputationalLinguistics(ACL-2010),2010.[48]Kim,S.andE.Hovy.Crystal:analyzingpredictiveopinionsontheweb.InProceedingsoftheJointConferenceonEmpiricalMethodsinNaturalLanguageProcessingandComputationalNaturalLanguageLearning(EMNLP/CoNLL-2007),2007.[49]Kim,S.andE.Hovy.Determiningthesentimentofopinions.InProceedingsofInterntionalConferenceonComputationalLinguistics(COLING-2004),2004.[50]Kim,S.,P.Pantel,T.Chklovski,andM.Pennacchiotti.Automat-icallyassessingreviewhelpfulness.InProceedingsoftheConferenceonEmpiricalMethodsinNaturalLanguageProcessing(EMNLP-2006),2006.[51]Ku,L.,Y.Liang,andH.Chen.Opinionextraction,summarizationandtrackinginnewsandblogcorpora.InProceedingsofAAAI-CAAW-2006,2006.[52]Laﬀerty,J.,A.McCallum,andF.Pereira.Conditionalrandomﬁelds:probabilisticmodelsforsegmentingandlabelingsequencedata.InProceedingsofInternationalConferenceonMachineLearn-ing(ICML-2001),2001.[53]Lee,L.Measuresofdistributionalsimilarity.InProceedingsofAn-nualMeetingoftheAssociationforComputationalLinguistics(ACL-1999),1999.[54]Li,S.,C.Lin,Y.Song,andZ.Li.Comparableentityminingfromcomparativequestions.InProceedingsofAnnualMeetingoftheAs-sociationforComputationalLinguistics(ACL-2010),2010.458MININGTEXTDATA[55]Li,X.,L.Zhang,B.Liu,andS.Ng.Distributionalsimilarityvs.PUlearningforentitysetexpansion.InProceedingsofAnnualMeetingoftheAssociationforComputationalLinguistics(ACL-2010),2010.[56]Lim,E.,V.Nguyen,N.Jindal,B.Liu,andH.Lauw.Detectingproductreviewspammersusingratingbehaviors.InProceedingsofACMInternationalConferenceonInformationandKnowledgeMan-agement(CIKM-2010),2010.[57]Lin,C.andY.He.Jointsentiment/topicmodelforsentimentanaly-sis.InProceedingsofACMInternationalConferenceonInformationandKnowledgeManagement(CIKM-2009),2009.[58]Liu,B.Sentimentanalysisandsubjectivity.InHandbookofNat-uralLanguageProcessing,SecondEdition,N.IndurkhyaandF.J.Damerau,Editors.2010.[59]Liu,B.WebDataMining:ExploringHyperlinks,Contents,andUsageData.SecondEdition,Springer,2011.[60]Liu,B.,M.Hu,andJ.Cheng.Opinionobserver:analyzingandcom-paringopinionsontheweb.InProceedingsofInternationalConfer-enceonWorldWideWeb(WWW-2005),2005.[61]Liu,J.,Y.Cao,C.Lin,Y.Huang,andM.Zhou.Low-qualityprod-uctreviewdetectioninopinionsummarization.InProceedingsoftheJointConferenceonEmpiricalMethodsinNaturalLanguagePro-cessingandComputationalNaturalLanguageLearning(EMNLP-CoNLL-2007),2007.[62]Liu,Y.,X.Huang,A.An,andX.Yu.ARSA:asentiment-awaremodelforpredictingsalesperformanceusingblogs.InProceedingsofACMSIGIRConf.onResearchandDevelopmentinInformationRetrieval(SIGIR-2007),2007.[63]Lu,Y.,M.Castellanos,U.Dayal,andC.Zhai.Automaticcon-structionofacontext-awaresentimentlexicon:anoptimizationap-proach.InProceedingsofInternationalConferenceonWorldWideWeb(WWW-2011),2011.[64]Lu,Y.,P.Tsaparas.,A.Ntoulas.,andL.Polanyi.Exploitingsocialcontextforreviewqualityprediction.InProceedingsofInternationalConferenceonWorldWideWeb(WWW-2010),2010.[65]Lu,Y.andC.Zhai.Opinionintegrationthroughsemi-supervisedtopicmodeling.InProceedingsofInternationalConferenceonWorldWideWeb(WWW-2008),2008.[66]Lu,Y.,C.Zhai,andN.Sundaresan.Ratedaspectsummarizationofshortcomments.InProceedingsofInternationalConferenceonWorldWideWeb(WWW-2009),2009.ASurveyofOpinionMiningandSentimentAnalysis459[67]Mei,Q.,X.Ling,M.Wondra,H.Su,andC.Zhai.Topicsentimentmixture:modelingfacetsandopinionsinweblogs.InProceedingsofInternationalConferenceonWorldWideWeb(WWW-2007),2007.[68]Melville,P.,W.Gryc.,R.D.Lawrence.Sentimentanalysisofblogsbycombininglexicalknowledgewithtextclassiﬁcation.InProceed-ingsofACMSIGKDDInternationalConferenceonKnowledgeDis-coveryandDataMining(KDD-2009),2009.[69]Miller,G.,R.Beckwith,C.Fellbaum,D.Gross,andK.Miller.WordNet:anon-linelexicaldatabase.OxfordUniv.Press.,1990.[70]Mishne,G.andN.Glance.Predictingmoviesalesfrombloggersentiment.InProceedingsofAAAISymposiumonComputationalApproachestoAnalysingWeblogs(AAAI-CAAW-2006),2006.[71]Mohammad,S.,C.Dunne.,andB.Dorr.Generatinghigh-coveragesemanticorientationlexiconsfromoverlymarkedwordsandathe-saurus.InProceedingsoftheConferenceonEmpiricalMethodsinNaturalLanguageProcessing(EMNLP-2009),2009.[72]Mukherjee,A.,B.Liu,J.Wang,N.Glance,andN.Jindal.Detectinggroupreviewspam.InProceedingsofInternationalConferenceonWorldWideWeb(WWW-2011),2011.[73]Nishikawa,H.,T.Hasegawa,Y.Matsuo,andG.Kikui.Optimiz-inginformativenessandreadabilityforsentimentsummarization.InProceedingsofAnnualMeetingoftheAssociationforComputationalLinguistics(ACL-2010),2010.[74]Paltoglou,G.andM.Thelwall.Astudyofinformationretrievalweightingschemesforsentimentanalysis.InProceedingsofAnnualMeetingoftheAssociationforComputationalLinguistics(ACL-2010),2010.[75]Pan,S.,X.Ni,J.Sun,Q.Yang,andZ.Chen.Cross-domainsenti-mentclassiﬁcationviaspectralfeaturealignment.InProceedingsofInternationalConferenceonWorldWideWeb(WWW-2010),2010.[76]Pang,B.andL.Lee.Opinionminingandsentimentanalysis.Foun-dationsandTrendsinInformationRetrieval,2(1-2):p.1-135,2008.[77]Pang,B.andL.Lee.Seeingstars:Exploitingclassrelationshipsforsentimentcategorizationwithrespecttoratingscales.InProceedingsofMeetingoftheAssociationforComputationalLinguistics(ACL-2005),2005.[78]Pang,B.,L.Lee,andS.Vaithyanathan.Thumbsup?:sentimentclassiﬁcationusingmachinelearningtechniques.InProceedingsofConferenceonEmpiricalMethodsinNaturalLanguageProcessing(EMNLP-2002),2002.460MININGTEXTDATA[79]Pantel,P.,E.Crestan,A.Borkovsky,A.Popescu,andV.Vyas.Web-scaledistributionalsimilarityandentitysetexpansion.InPro-ceedingsofConferenceonEmpiricalMethodsinNaturalLanguageProcessing(EMNLP-2009),2009.[80]Parrott,W.Emotionsinsocialpsychology:Essentialreadings.Psy-chologyPress,2001.[81]Paul,M.,C.Zhai,andR.Girju.Summarizingcontrastiveview-pointsinopinionatedtext.InProceedingsofConferenceonEmpiri-calMethodsinNaturalLanguageProcessing(EMNLP-2010),2010.[82]Polanyi,L.andA.Zaenen.Contextualvalenceshifters.InPro-ceedingsoftheAAAISpringSymposiumonExploringAttitudeandAﬀectinText,2004.[83]Popescu,A.andO.Etzioni.Extractingproductfeaturesandopin-ionsfromreviews.InProceedingsofConferenceonEmpiricalMeth-odsinNaturalLanguageProcessing(EMNLP-2005),2005.[84]Qiu,G.,B.Liu,J.Bu,andC.Chen.Expandingdomainsentimentlexiconthroughdoublepropagation.InProceedingsofInternationalJointConferenceonArtiﬁcialIntelligence(IJCAI-2009),2009.[85]Qiu,G.,B.Liu,J.Bu,andC.Chen.Opinionwordexpansionandtargetextractionthroughdoublepropagation.ComputationalLin-guistics,2011.[86]Qiu,L.,W.Zhang.,C.Hu.,andK.Zhao.SELC:Aself-supervisedmodelforsentimentclassiﬁcation.InProceedingsofACMInter-nationalConferenceonInformationandknowledgemanagement(CIKM-2009),2009.[87]Riloﬀ,E.,S.Patwardhan,andJ.Wiebe.Featuresubsumptionforopinionanalysis.InProceedingsoftheConferenceonEmpiricalMethodsinNaturalLanguageProcessing(EMNLP-2006),2006.[88]Riloﬀ,E.andJ.Wiebe.Learningextractionpatternsforsubjectiveexpressions.InProceedingsofConferenceonEmpiricalMethodsinNaturalLanguageProcessing(EMNLP-2003),2003.[89]Seki,Y.,K.Eguchi,N.Kando,andM.Aono.Opinion-focusedsum-marizationanditsanalysisatDUC2006.InProceedingsoftheDoc-umentUnderstandingConference(DUC),2006.[90]Stone,P.Thegeneralinquirer:acomputerapproachtocontentanalysis.JournalofRegionalScience,8(1),1968.[91]Stoyanov,V.andC.Cardie.Partiallysupervisedcoreferencereso-lutionforopinionsummarizationthroughstructuredrulelearning.InProceedingsofConferenceonEmpiricalMethodsinNaturalLan-guageProcessing(EMNLP-2006),2006.ASurveyofOpinionMiningandSentimentAnalysis461[92]Su,Q.,X.Xu,H.Guo,Z.Guo,X.Wu,X.Zhang,B.Swen,andZ.Su.Hiddensentimentassociationinchinesewebopinionmin-ing.InProceedingsofInternationalConferenceonWorldWideWeb(WWW-2008),2008.[93]Taboada,M.,J,Brooke,M.Toﬁloski,K.Voll,andM.Stede,Lexicon-basedmethodsforsentimentanalysis.ComputationalIn-telligence,2010.[94]Takamura,H.,T.Inui,andM.Okumura.Extractingsemanticorien-tationsofphrasesfromdictionary.InProceedingsoftheJointHumanLanguageTechnology/NorthAmericanChapteroftheACLConfer-ence(HLT-NAACL-2007),2007.[95]Tan,S.,Y.Wang.,andX.Cheng.Combininglearn-basedandlexicon-basedtechniquesforsentimentdetectionwithoutusingla-beledexamples.InProceedingsofACMSIGIRConferenceonRe-searchandDevelopmentinInformationRetrieval(SIGIR-2008),2008.[96]Tata,S.andB.DiEugenio.Generatingﬁne-grainedreviewsofsongsfromalbumreviews.InProceedingsofAnnualMeetingoftheAsso-ciationforComputationalLinguistics(ACL-2010),2010.[97]Tesniere,L.Elementsdesyntaxestructurale:Pref.deJeanFour-quet.1959:C.Klincksieck.[98]Titov,I.andR.McDonald.Ajointmodeloftextandaspectratingsforsentimentsummarization.InProceedingsofAnnualMeetingoftheAssociationforComputationalLinguistics(ACL-2008),2008.[99]Titov,I.andR.McDonald.Modelingonlinereviewswithmulti-graintopicmodels.InProceedingsofInternationalConferenceonWorldWideWeb(WWW-2008),2008.[100]Turney,P.Thumbsuporthumbsdown?:semanticorientationap-pliedtounsupervisedclassiﬁcationofreviews.InProceedingsofAn-nualMeetingoftheAssociationforComputationalLinguistics(ACL-2002),2002.[101]Wan,X.Co-trainingforcross-lingualsentimentclassiﬁcation.InProceedingsofAnnualMeetingoftheAssociationforComputationalLinguistics(ACL-2009),2009.[102]Wang,H.,Y.Lu,andC.Zhai.Latentaspectratinganalysisonreviewtextdata:aratingregressionapproach.InProceedingsofACMSIGKDDInternationalConferenceonKnowledgeDiscoveryandDataMining(KDD-2010),2010.[103]Wiebe,J.Learningsubjectiveadjectivesfromcorpora.InProceed-ingsofNationalConf.onArtiﬁcialIntelligence(AAAI-2000),2000.462MININGTEXTDATA[104]Wiebe,J.,R.Bruce,andT.O’Hara.Developmentanduseofagold-standarddatasetforsubjectivityclassiﬁcations.InProceedingsoftheAssociationforComputationalLinguistics(ACL-1999),1999.[105]Wiebe,J.andE.Riloﬀ.Creatingsubjectiveandobjectivesentenceclassiﬁersfromunannotatedtexts.ComputationalLinguisticsandIntelligentTextProcessing,p.486-497,2005.[106]Wiebe,J.,T.Wilson,R.Bruce,M.Bell,andM.Martin.Learningsubjectivelanguage.ComputationalLinguistics,30(3):p.277-308,2004.[107]Wiebe,J.,T.Wilson,andC.Cardie.Annotatingexpressionsofopinionsandemotionsinlanguage.LanguageResourcesandEvalu-ation,39(2):p.165-210,2005.[108]Wilson,T.,J.Wiebe,andP.Hoﬀmann.Recognizingcontextualpolarityinphrase-levelsentimentanalysis.InProceedingsoftheHu-manLanguageTechnologyConferenceandtheConferenceonEmpir-icalMethodsinNaturalLanguageProcessing(HLT/EMNLP-2005),2005.[109]Wilson,T.,J.Wiebe,andR.Hwa.Justhowmadareyou?ﬁndingstrongandweakopinionclauses.InProceedingsofNationalConfer-enceonArtiﬁcialIntelligence(AAAI-2004),2004.[110]Wilson,T.,J.Wiebe,andR.Hwa.Recognizingstrongandweakopinionclauses.ComputationalIntelligence,22(2):p.73-99,2006.[111]Wu,Y.,Q.Zhang,X.Huang,andL.Wu.Phrasedependencypars-ingforopinionmining.InProceedingsofConferenceonEmpiricalMethodsinNaturalLanguageProcessing(EMNLP-2009),2009.[112]Yang,H.,L.Si,andJ.Callan.KnowledgetransferandopiniondetectionintheTREC2006blogtrack.InProceedingsofTREC,2006.[113]Yu,H.andV.Hatzivassiloglou.Towardsansweringopinionques-tions:separatingfactsfromopinionsandidentifyingthepolarityofopinionsentences.InProceedingsofConferenceonEmpiricalMeth-odsinNaturalLanguageProcessing(EMNLP-2003),2003.[114]Zhai,Z.,B.Liu,H.Xu,andP.Jia.Groupingproductfeaturesus-ingsemi-supervisedlearningwithsoft-constraints.InProceedingsofInternationalConferenceonComputationalLinguistics(COLING-2010),2010.[115]Zhai,Z.,B.Liu.,L.Zhang.,H.Xu.,andP.Jia.Identifyingevalua-tivesentencesinonlinediscussions.InProceedingsofNationalConf.onArtiﬁcialIntelligence(AAAI-2011),2011.ASurveyofOpinionMiningandSentimentAnalysis463[116]Zhang,L.andB.Liu.Identifyingnounproductfeaturesthatimplyopinions.InProceedingsofAnnualMeetingoftheAssociationforComputationalLinguistics(ACL-2011),2011.[117]Zhang,M.andX.Ye.Agenerationmodeltounifytopicrelevanceandlexicon-basedsentimentforopinionretrieval.InProceedingsofACMSIGIRConferenceonResearchandDevelopmentinInforma-tionRetrieval(SIGIR-2008),2008.[118]Zhang,Z.andB.Varadarajan.Utilityscoringofproductreviews.InProceedingsofACMInternationalConferenceonInformationandKnowledgeManagement(CIKM-2006),2006.[119]Zhao,W.,J.Jiang,H.Yan,andX.Li.Jointlymodelingas-pectsandopinionswithaMaxEnt-LDAhybridInProceedingsofConferenceonEmpiricalMethodsinNaturalLanguageProcessing(EMNLP-2010),2010.[120]Zhuang,L.,F.Jing,andX.Zhu.Moviereviewminingandsum-marization.InProceedingsofACMInternationalConferenceonIn-formationandKnowledgeManagement(CIKM-2006),2006.    C.C. Aggarwal and C.X. Zhai (eds.), Mining Text Data, DOI 10.1007/978-1-4614-3223-4_14,

Chapter14BIOMEDICALTEXTMINING:ASURVEYOFRECENTPROGRESSMatthewS.SimpsonListerHillNationalCenterforBiomedicalCommunicationsUnitedStatesNationalLibraryofMedicine,NationalInstitutesofHealthsimpsonmatt@mail.nih.govDinaDemner-FushmanListerHillNationalCenterforBiomedicalCommunicationsUnitedStatesNationalLibraryofMedicine,NationalInstitutesofHealthddemner@mail.nih.govAbstractThebiomedicalcommunitymakesextensiveuseoftextminingtech-nology.Inthepastseveralyears,enormousprogresshasbeenmadeindevelopingtoolsandmethods,andthecommunityhasbeenwitnesstosomeexcitingdevelopments.Althoughthestateofthecommunityisregularlyreviewed,thesheervolumeofworkrelatedtobiomedicaltextminingandtherapidpaceinwhichprogresscontinuestobemademakethisaworthwhile,ifnotnecessary,endeavor.Thischapterpro-videsabriefoverviewofthecurrentstateoftextmininginthebiomed-icaldomain.Emphasisisplacedontheresourcesandtoolsavailabletobiomedicalresearchersandpractitioners,aswellasthemajortextminingtasksofinteresttothecommunity.Thesetasksincludetherecognitionofexplicitfactsfrombiomedicalliterature,thediscoveryofpreviouslyunknownorimplicitfacts,documentsummarization,andquestionanswering.Foreachtopic,itsbasicchallengesandmethodsareoutlinedandrecentandinﬂuentialworkisreviewed.Keywords:Biomedicalinformationextraction,namedentityrecognition,relations,events,summarization,questionanswering,literature-baseddiscovery© Springer Science+Business Media, LLC 2012  465 
 
466MININGTEXTDATA1.IntroductionThestateofbiomedicaltextminingisreviewedrelativelyregularly.Therecentsurveys[238,237],specialjournalissues[85,29],andbooks[12]inthisareaindicatethatgeneral-purposetextanddataminingtoolsarenotwell-suitedforthebiomedicaldomainbecauseitishighlyspecialized.Despitetherestrictednatureofthedomain,biomedicaltextminingisofinterestnotonlytoresearchersbuttothegeneralpublicaswell(perhapsunbeknownsttothem).Therecentbiomedicaladvancesthathavepreventedoralteredthecourseofmanydiseasesareundoubtedlyvaluedbyall.Progressinbiomedicineisattributabletoadvancesintheunderstandingofdiseasemechanismsandthesocietalandcommercialvalueofresearchingthesemechanismsaswellastheapproachesforthepreventionandcureofdiseases.Biomedicaltextminingholdsthepromiseof,andinsomecasesdeliv-ersareductionincostandanaccelerationofdiscovery,providingtimelyaccesstoneededfactsandexplicitandimplicitassociationsamongfacts.Duetothespeciﬁcgoalsofbiomedicaltextmining,biologistsandclin-iciansarebetterpositionedtodeﬁneusefultextminingtasks.CohenandHunter[33]notethatthemostfruitfulapproachestobiomedicaltextminingwillcombinetheeﬀortsandleveragetheabilitiesofbothbiolo-gistsandcomputationallinguists.Biologistsandclinicianswillleveragetheirabilitytofocusonspeciﬁctasksandexperienceinusingtheun-paralleledpubliclyavailabledomain-speciﬁcknowledgesourceswhereastextminingspecialistswillprovidesystemcomponentsanddesignandevaluatemethods.Thesheersizeoftheso-calledbibliome(theentiretyofthetextsrel-evanttobiologyandmedicine)dictatesastepwiseapproachtobiomed-icaltextmining.Thegoaloftheﬁrststepistoreducethesetoftextdocumentstobemined.Thisreductionismostcommonlyachievedusingdomain-speciﬁcinformationretrievalapproaches,asdescribedinInformationRetrieval:AHealthandBiomedicalPerspective[65].Al-ternatively,documentsetscanbeselectedusingclusteringandclassiﬁ-cation[98,177,22].Asdiscussedlaterinthischapter,themeaningandgrammarofbiomedicaltextsaresointertwinedthatallsurveysdedicateasectiontonaturallanguagepreprocessingandgrammaticalanalysis.However,thischapterpresentsthesemethods(e.g.,tokenization,part-of-speechtagging,parsing,etc.)asneededtodescribethereviewedtextminingapproaches.Thissurveyofrecentadvancesinbiomedicaltextminingbeginswithadiscussionoftheresourcesavailableforminingthebiomedicalliter-ature.ItthenproceedstodescribethebasictasksofnamedentityBiomedicalTextMining:ASurveyofRecentProgress467recognitionandrelationandeventextraction.Themorecomplextasksofsummarization,questionanswering,andliteraturebaseddiscoveryaredescribedthereafter.Thechapterconcludeswithadiscussionofopentasksandpotentiallyhigh-impactavenuesforfurtherdevelopmentofthedomain.2.ResourcesforBiomedicalTextMiningTheprimaryresourceforbiomedicaltextminingisobviouslytext,andthissectionintroducessomewidely-usedtextcollectionsinthebiomedi-caldomain.Althoughtextminingdoesnotrequiretheuseofspecializedorannotatedcorpora,manuallyannotatedcollectionsareoftenmoreuse-fulthantheoriginaltextsalone.Forexample,theoriginalconceptionofliterature-baseddiscovery[189]wasfacilitatedbytheuseofMedi-calSubjectHeadings(MeSHR(cid:2)),whicharecontrolledvocabularytermsaddedtobibliographiccitationsduringtheprocessofMEDLINER(cid:2)in-dexing.Withthegrowthofpubliclyavailableannotatedcollections,thebiomedicallanguageprocessingcommunityhasbegunfocusingoncommoninterchangeableannotationformats,guidelines,andstandards,whichthissectionalsodiscusses.Afterdescribingtheseresources,thesectionconcludeswithadescriptionofequallyimportantlexicalandknowledge-basedrepositories,widely-usedbiomedicaltextminingtoolsandframeworks,andregistriesthatprovideoverviewsandlinkstotextcollectionsandotherresources.2.1CorporaWhethertextminingisviewedinthestrictsenseofdiscoveryorinthebroadersensethatincludesalltextprocessingandretrievalstepsleadingtowardsdiscovery,MEDLINEwastheﬁrst—andremainstheprimary—resourceinbiomedicaltextmining.TheMEDLINEdatabasecontainsbibliographicreferencestojournalarticlesinthelifescienceswithaconcentrationonbiomedicine,anditismaintainedbytheU.S.NationalLibraryofMedicineR(cid:2)(NLMR(cid:2)).The2011MEDLINEcontainsover18millionreferencespublishedfrom1946tothepresentinover5,500journalsworldwide.Abstractsofbiomedicalliteraturecanbeobtainedinavarietyofdif-ferentways.Fortextminingpurposes,MEDLINE/PubMedR(cid:2)recordscanbedownloadedusingtheEntrezProgrammingUtilities[131].Al-ternatively,subsetsofMEDLINEcitationscanbeobtainedfromthearchivesofcommunity-wideevaluationsthatuseMEDLINE,aswellasindividualresearchgroupsthatsharetheirannotations.Suchcollec-tionsincludethehistoricOHSUMED[200]setcontainingallMEDLINE468MININGTEXTDATAcitationsin270medicaljournalspublishedoveraﬁve-yearperiod(1987–1991)andamorerecentsetofTRECGenomicsTrackdata[201]thatcontainstenyearsofMEDLINEcitations(1994–2003).Stand-oﬀanno-tationssupportinginformationretrievalrelevance,documentclassiﬁca-tion,andquestionansweringareavailableforportionsofthesecollec-tions.WhereasTRECcollectionsprovideaccesstoMEDLINEspansoveragiventimeperiod,othercollectionsaretask-oriented.Forexam-ple,theGENIAcorpus[90]contains1,999MEDLINEabstractsretrievedusingtheMeSHterms“human,”“bloodcells,”and“transcriptionfac-tors.”TheGENIAcorpusiscurrentlythemostthoroughlyannotatedcollectionofMEDLINEabstracts.Itisannotatedforpart-of-speech,syntax,coreference,biomedicalconceptsandevents,cellularlocaliza-tion,disease-geneassociations,andpathways.Inaddition,theGENIAcorpusisoneofthethreeconstituentsoftheBioScopecorpus[217],whichprovidesGENIAMEDLINEabstracts,ﬁvefull-textarticles,andacollectionofradiologyreportsannotatedwithnegationandmodalitycuesaswellasscope.Othertopically-annotatedcollectionsofMED-LINEabstractsincludetheearlierBioCreAtIvecollections[69,97]andthePennBioIEcorpus[105,106].ThePennBioIEcorpuscontains1100abstractsforcytochromeP-450enzymesand1157oncologyabstractswithannotationsforparagraphs,sentences,tokens,parts-of-speech,syn-tax,andbiomedicalentities.Finally,theCollaborativeAnnotationofaLargeBiomedicalCorpus(CALBC)initiative[26]hasproposedthecre-ationofa“silverstandard”corpusthatcontainsMEDLINEabstractsthathavebeenautomaticallyannotatedwithbiomedicalentitiesbytheinitiativeparticipants.Thiscorpushasjustrecentlybecomepubliclyavailable.Beinginformativeandundoubtedlyusefulfortextmining,MEDLINEabstractsdonotcontainalltheinformationpresentedinfull-textarti-cles.Someinformation(e.g.,theexactsettingsofanexperimentorthediscussionoftheresults)isalmostexclusivelycontainedinthebodyofanarticle.Thepromiseofaqualitativeincreaseintheamountofusefulinformationbroughtaboutseveralfull-textcollections.Forexample,theTRECGenomicsTrackdatasetcontainsabout160,000full-textarticlesfromabout49genomics-relatedjournals,whichwereobtainedinHTMLformatfromtheHighwirePress[66]electronicdistributionofthejour-nals.Anothercollectionoffull-textarticlesannotatedwithrelevancetopatients’casedescriptionswasdevelopedintheImageCLEFevalua-tions[127,84].TheColoradoRichlyAnnotatedFullTextCorpus[38]addstothegrowingbodyofsemanticallyandsyntacticallyannotatedfulltextcollections(includingthefull-textportionoftheBioScopecol-lectionmentionedabove).Finally,thelargestpubliclyavailablesourceBiomedicalTextMining:ASurveyofRecentProgress469oforiginal,full-textarticlesistheOpenAccesssubsetofPubMedCen-tral[154].Withthegrowinginterestinclinicaltextminingandbiosurveillance,severalpubliccollectionsofclinicaltexthaverecentlybecomeavailable.ThesecollectionsincludereportsintheMultiparameterIntelligentMon-itoringinIntensiveCare(MIMICII)database[171],thePittsburghcol-lectionofclinicalreports[211],andtheannotatedi2b2collections[214,213,215,216].SeveralrecentstudiesusedtheWeb(i.e,Twitterandhealth-relatedblogsandcommunitysites)asacorpus,butitisnotclearifthecollectionscreatedforthesestudiesarepubliclyavailableornot.2.2AnnotationTheannotationofbiomedicaltextaddsinformationtoadocumentcol-lectionthatcanlaterbeexploitedfortextminingpurposes.Ingeneral,documentannotationinthebiomedicaldomainfollowstheprinciplessetforthinopen-domainnaturallanguageprocessing(NLP)byaddingannotationsatmultiplelevelsoflinguisticanalysis.Thevariousaspectsinvolvegrammatical(includingmorphologicalandsyntactical),seman-tic,andpragmaticannotations[103].Grammarandmeaningaresointertwinedthatmostannotationeﬀortscombinethetwo.Forexample,corpuscreatorsmightdecidetoannotatenamedentitiesofinterestonlyinnounphrases.Asanalternative,Wilburetal.[222]focusonannotat-ingthe“information-bearingfragmentswithinscientiﬁctext”withoutspecifyinganygrammarrestrictions.Theauthorsdeﬁnethefollowingﬁveannotationaxes:Focus,Polarity,Certainty,Evidence,andDirec-tion.Theseclassesareprimarilyusedatthesentencelevel,andsen-tencesmaybebrokenasneededifachangeinoneoftheannotationsaspectsisdetected.However,evenmeaning-centricannotationscannotbecompletelygrammar-free.Forexample,oneofthecluesforannotat-ingfragmentsasEvidenceisapasttenseverbindicatinganobservationorﬁnding.Theguidelinespublishedbytheauthors[178]areagoodstartingpointfordevelopingothertext-miningannotationguidelinesinthebiomedicaldomain.Therearethreeapproachestotheannotationofbiomedicaltext.Thesemethodsinclude(1)acompletemanualannotationthatisbasedonannotators’knowledge;(2)anassistedannotation,inwhichtheout-putofanannotationtoolismanuallycorrected;and(3)anontology-basedannotation—eithermanualorassisted—inwhichonlytermsandrelationspresentinanexistingknowledgesourceareannotated.Eachoftheseapproacheshasitsstrengthsandweaknesses.Forexample,an470MININGTEXTDATAassistedannotationisusuallymoreconsistent,butitmaybebiased.Similarly,anontology-basedannotationwilllikelybebiasedtowardsknownfacts.Havingmorethanoneannotatorforeachtextdocumentandhavingvariousannotatorgroupscancompensateforsuchbiases[15].Inadditiontogenericinformationextractiontoolsthatcanbeusedtoassistinannotation(describedbelow),severaltextminingtoolshavebeendevelopedtospeciﬁcallysupporttheannotationprocess.Exam-plesofwidely-usedtoolsforannotatingbiomedicaltextincludeKnowta-tor[140]andeHOST(ExtensibleHumanOracleSuiteofTools)[48],thelaterofwhichisincreasinglyusedfortheannotationofclinicaltext.Inorderforsuchtoolstobeuseful,theymustbeeasytouse,supportvar-iousannotationtypes,andallowcollaborativeannotation,amongotherfactors[115,47].2.3KnowledgeSourcesThebiomedicaldomainoﬀersarichsetofknowledgesourcessupport-ingtextminingapplications.TheUniﬁedMedicalLanguageSystemR(cid:2)(UMLSR(cid:2))[111],acompendiumofcontrolledvocabulariesthatismain-tainedbyNLM,isthemostcomprehensiveresource,unifyingover100dictionaries,terminologies,andontologiesinitsMetathesaurus.ItalsoprovidesasemanticnetworkthatrepresentsrelationsbetweenMetathe-saurusentries,alexiconthatcontainslexicographicinformationaboutbiomedicaltermsandcommonEnglishwords,andasetoflexicaltools.Overall,NLMprovidesover200knowledgesourcesandtoolsthatcanbeusedfortextmining[210].OthersetsofontologiesaremaintainedbycollaborativeeﬀortintheOBOFoundry[143]andtheNationalCen-terforBiomedicalOntology(NCBO)[129].TheNCBOontologiesareaccessedandsharedthroughBioPortal[130].OthermajorcentersthatmaintainspecializedresourcesforbiomedicaltextminingincludetheBritishNationalCentreforTextMining[132]andtheEuropeanBioin-formaticsInstitute[52].Inadditiontothesebroad-coverageresources,thebiomedicaldomainoﬀersin-depthknowledgesourcesfocusedonspeciﬁcsubdomainsofbiomedicine.Forexample,thePharmacogenomicsKnowledgeBase[152]isacollectionofscientiﬁcpublicationsannotatedwithprimarygenotypeandphenotypedata,genevariants,andgene-drug-diseaserelationships.Theannotationsaredownloadableforindividualresearchpurposes.An-otherspecializedsource,theNeuroscienceInformationFramework[134],includesanontologycoveringbrainanatomy,cells,organisms,diseases,techniques,andotherareasofneuroscience.BiomedicalTextMining:ASurveyofRecentProgress471Thebestknowledgesourceforagiventextminingtaskisdeterminedbythenatureoftheproblemathand.Forexample,miningthescientiﬁcliteratureforrelationsbetweengenes,diseases,anddrugsﬁrstrequiresrecognizinginstancesoftheseentities.Toaidinthistask,aresearchermightrelyonknowledgeoftheterms’correspondingsemantictypesintheUMLSorinsteadmaychosetouseindividualknowledgesources,suchastheGeneOntology[16],SNOMEDClinicalTermsR(cid:2)[188],ortheFDAApprovedDrugProductswithTherapeuticEquivalenceEval-uations(OrangeBook)[209].Approachestothevarioustextminingtasksinthebiomedicaldomainmakeextensiveuseoftheresourcesde-scribedinthissectionandsometimesderivemeta-resourcesforaspeciﬁctask.Forexample,Rinaldietal.[163]deﬁneseveralentitytypesneededforminingtheliteratureforproteininteractions(protein/genenames,chemicalcompounds,celllines,etc.)andthenautomaticallyaggregatetermsextractedfromcuratedresourcessuchastheUMLS,Aﬀymetrixidentiﬁersformicroarrayprobes,organismdatabases,andothersintoalistof2,347,734terms.2.4SupportingToolsThevarietyandpurposeofthetoolssupportingbiomedicaltextminingechoesthatoftheknowledgesourcesdescribedabove.Thefollowingdiscussionoftextminingtoolsomitsapplicationsdescribedinrecentsurveysandinsteadfocusesonthebasic,widelyusedtoolsforidentifyingnamedentitiesandrelationsandtheplatformsthatallowbuildingtextminingpipelines.ThemostwidelyusedtoolfornamedentityrecognitionthatisbasedupontheUMLSisMetaMap[14].MetaMapisahighlyconﬁgurableapplicationthatidentiﬁesUMLSMetathesaurusconceptsinfreetext.BecauseMetaMapprovidesawiderangeofconﬁgurationoptionsandreliesontheentireUMLSMetathesaurus,itisnoteasytodeterminethebestconﬁgurationforagiventask.However,exploringtheoptionsusingtheinteractiveMetaMapwebsitemayaidwithsuchchoices.MetaMap,whichwasprovidedasserviceuntilrecently,isnowopensourceandavailablefordownload.TwostatisticaltoolswidelyusedforbiologicalnamedentityrecognitionareABNER[176]andBANNER[101].BothABNERandBANNERarebasedonconditionalrandomﬁeldsandrelyonawidearrayoffeatures.UnlikeABNER,BANNERavoidsseman-ticfeatures,butitusessyntacticfeatures.Bothsystemsexploitsuchdomain-speciﬁclanguagecharacteristicsascapitalization,wordshapes,preﬁxes,suﬃxes,andGreekletters.472MININGTEXTDATAToolsforrelationextractionarenotyetasreadilyaccessibleasentityrecognitiontools.Kabiljoetal.[83]comparedavailabletoolsforiden-tifyingbiomedicalrelations(AkanePPI,Whatizit,andOpenDMAP)toasimple,regularexpression-basedapproachandfoundthatthesimpleapproachperformedsurprisinglywell.Theauthorsconcludethathighrecall(around90%)isachievableforextractinggene-proteinrelationswhentheavailabletoolsarecombined.Arecenttrendintooldevelopmentanduseistheassemblageofpipelinesbasedonopen-sourceframeworks,suchastheGeneralizedArchitectureforTextEngineering(GATE)[39]andtheUnstructuredInformationManagementArchitecture(UIMA)[54].Themostmaturesystemforclinicaltextprocessing(rangingfromidentifyingpatients’problemstoevents)isMedLEE[58].Descriptionsofothersystemsandclinicaltextminingtaskscanbefoundinarecentreview[41].Thissectionhaspresentedonlyasnapshotofopen-domainbiomed-icaltextminingresources.Byitsnature,theinformationcontainedhereinwillbecomedatedsoonerthantheothermaterialpresentedinthischapter.Tocompensatefortherapidprogressofresearchrelatedtobiomedicaltextmining,manyresearchersmaintainwebsiteswithlinkstousefulresources(e.g.,BioNLP[19]).Realizingthatthistaskistootimeconsumingforindividualresearchers,theU.S.DepartmentofVet-eransAﬀairsandNLMprovidearegistryofbiomedicaltextminingtools,knownasORBIT,whichismaintainedbytheresearchcommunity[144].3.InformationExtractionAgoalofmanybiomedicaltextminingtasksistheidentiﬁcationofexplicitlystatedfacts.Informationextractionreferstotheprocessbywhichstructuredfactsareautomaticallyderivedfromunstructuredorsemi-structuredtext.Inthebiomedicaldomain,unstructuredtextcom-monlyincludesscientiﬁcarticlesappearinginthebiomedicalliteratureaswellasclinicalnarrativesfoundinelectronichealthrecordsorotherclinicalinformationsystems.Althoughtheinformationextractedfromthesesourcescanbethetargetofinformationretrievalsystems,infor-mationextractionisoftenperformedasaninitialprocessingstepforotherbiomedicaltextmingapplications(Sections4–6).Biomedicalinformationextractiontechnologyhasundergonerapiddevelopmentinrecentyears,spurredinpartbycommunity-wideevalu-ationsthathavebeenfocussedspeciﬁcallyontextminingwithinthebiomedicaldomain.Someexamplesofrecentevaluationforumsin-cludeBioCreAtivE[69,97],BioNLP[89,88],i2b2[214,213,215,216],JNLPBA[91],andLLL[133]sharedtasks.ThestronginterestinBiomedicalTextMining:ASurveyofRecentProgress473community-wideevaluationeﬀortssuchastheseisreﬂectiveofthegrow-ingvolumeofunstructuredbiomedicaltextavailableelectronicallyindatabasessuchasMEDLINEorinclinicalinformationsystems.Threemajorsubtasksofinformationextractionareparticularlyrele-vantforprocessingbiomedicaltext.First,namedentityrecognitionisataskthatseekstoidentifyandclassifybiomedicalentitiesintoprede-ﬁnedcategoriessuchasthenamesofproteins,genes,ordiseases.Often,extractedentitiesarenormalizedtocanonical,unambiguousrepresen-tationswiththeaidofontologicalresourcesandfurtherclassiﬁedintosemanticcategories.Thesecondsubtaskofinformationextractionrele-vanttothebiomedicaldomainisrelationextraction,whichaimstode-tectbinaryrelationshipsamongnamedentities.Examplesincludegene-diseaserelationships,protein-proteininteractions,andmedicalproblem-treatmentrelationships.Finally,thethirdmajorsubtask,eventextrac-tion,seekstoidentifyhighlycomplexrelationsamongextractedentities.Eventsrelevanttothebiomedicaldomaininclude,forexample,geneex-pressionandregulationandproteinbinding.Althougheachofthesesubtasksaredistinctinthetypeofinforma-tiontheyaimtoextract,theyachievetheirgoalsbyemployingsimilarmethods,whichincludemachinelearning,statisticalanalysisandothertechniquesofnaturallanguageprocessing.Challengesandapproachestothesubtasksofbiomedicalinformationextractionarediscussedbelow.3.1NamedEntityRecognitionBiomedicalNamedEntityRecognition(NER)referstothetaskofau-tomaticallyidentifyingoccurrencesofbiologicalormedicaltermsinun-structuredtext.Commonentitiesofinterestincludegeneandproteinnames,medicalproblemsandtreatments,drugnamesandtheirdosages,andothersemanticallywell-deﬁneddataclassiﬁablewithinthebiomedi-caldomain[104].Althoughcommonlydiscussedasasingletask,NERistypicallyathree-stepprocessthatinvolvesdetermininganentity’ssub-stringboundarieswithinthetext,assigningtheentitytoapredeﬁnedclassorcategory,andselectingthepreferrednameoruniqueidentiﬁeroftheconceptthattheentitynames.Thislastsubtask,entitynormal-ization,issometimesaddressedasaseparateproblemfromNER,butitisbrieﬂydiscussedhereinthecontextofdescribingthemanyissuesthatmakeNERachallengingtaskinthebiomedicaldomain.NERisparticularlychallengingforbiomedicaltextduetoavarietyofreasons.Themostbasicobstacleresultsfromthedynamicnatureofscientiﬁcdiscovery.Inthebiomedicaldomain,thereexistsavastamountofsemanticallyrelevantentitiesthatisconstantlyandrapidly474MININGTEXTDATAincreasingasnewscientiﬁcdiscoveriesaremade[226].Thisever-growinglistofrelevanttermsisproblematicforNERsystemsthatrelyonlyonadictionaryofknowntermsorothercuratedresourcestoidentifynamedentitiessincetheseresourcescanneverbecompleteaslongasscientiﬁcprogresscontinues.AnotherchallengetobiomedicalNERissynonymy.Inbiomedicallit-erature,thesameconceptmaybeexpressedusingdiﬀerentwords.Forexample,“heartattack”and“myocardialinfarction”refertothesamemedicalproblemsoanNERsystemshouldrecognizethesetermsasin-stancesofthesameconcept,despitebeingexpresseddiﬀerently.Whenmanysynonymsforaparticularconceptareinuse,itbecomesdiﬃculttointegrateknowledgefrommultiplesourceswithoutacomprehensivesynonymyresourcesuchastheUMLSMetathesaurusorGeneOntol-ogy.However,giventherapidlyincreasingnumberofbiomedicalenti-ties,theseresourcesareunlikelytobecompleteatanygivenmoment,resultinginsomesynonymyrelationshipsthatmaynotbecaptured.Finally,theabundantuseofacronymsandabbreviationsinbiomedi-calliteraturemakeitdiﬃculttoautomaticallyidentifytheconceptstowhichthesetermsrefer.Often,successfulacronymandabbreviationresolutiondependsgreatlyonthecontextinwhichthetermsappearsincethesametermcanrefertodiﬀerentconcepts.Forexample,theabbreviationRAcanreferto“rightatrium,”“rheumatoidarthritis,”“re-fractoryanemia,”“renalartery,”oroneofseveralotherconcepts[148].Toaddressthechallengesassociatedwithacronyms,abbreviations,andsynonymy,NERsystemstypicallyperformsomeformofentitynormal-ization.EntitynormalizationisasubtaskofNERandreferstotheprocessofmappingentityoccurrencestotheircanonical,preferrednames.Al-thoughachallengingtaskitself,entitynormalizationcanhelpresolveissuesresultingfromsynonymoustermsandambiguousacronymsandabbreviationsbyassociatingtheseentitieswithunique,unambiguousrepresentations.Often,sincetheremaynotbecommunity-wideagree-mentonthepreferrednameforagivenentity,thegoalofentitynormal-izationistomapanentityinstancetotheuniqueidentiﬁerofaconceptinaterminologyresource.Ingeneral,entitynormalizationrequirestheexistenceofsuchterminologyresources,thoughtheymaybeincomplete.SincenormalizationissuchacrucialcomponentofmanyNERsystems,itisoftenanimpliedprocessingstepafteridentifyingentityboundariesandassigningthemtoacategory.However,theentitynormalizationsubtaskmaybeevaluatedindependentlyofthesesubtasks,aswasthecaseinrecentBioCreAtivEsharedtaskevaluations[67,126].BiomedicalTextMining:ASurveyofRecentProgress475ForNERsystemsthatanalyzelargeamountsofbiomedicaltext,itisimportanttoconsiderthequalitythatcanbeexpectedofthemethodsbeingutilized.Typically,theperformanceofNERsystemsismeasuredintermsofprecision,recall,andF-score.However,avarietyofissuesmakethesemeasurementsdiﬃculttoreliablyobtainandcompare.Oneissueistheavailabilityoflarge,high-qualityannotatedcorporatoserveasthegroundtruthonwhichtobaseNERsystemevaluations.Thegroundtruthcorporamustbelargeenoughtoallowtheextrapola-tionofexperimentalresultstolargetextcollections,suchastheentiretyofMEDLINE,andtheannotationsshouldexhibithighinter-annotatoragreementandreﬂectexpert-leveljudgement.However,whilethesizeofagroundtruthdatasetiscrucial,annotationerrorsdonotneces-sarilyposeaninsurmountableproblemtosystemevaluation,especiallyifthedatasetissuﬃcientlylarge.Forexample,Uzuneretal.[216]demonstratedthaterrorsinthegroundtruthforarecenti2b2sharedtaskevaluationcouldaﬀecttherelativeperformanceofcompetingNERsystemsby0.05%atmost.AnotherissuetoconsiderwhenevaluatingNERsystemsishowtodeﬁnetheboundariesofacorrectlyidentiﬁedentity.Astrictevalua-tionrequiresboththeleftandrightboundariesofanextractedentitytoexactlymatchthoseofthegroundtruthannotationswhilealooseevaluationrequiresonlythattheextractedentityboundariesoverlapthoseoftheannotations[104].Olssonetal.[142]showedthatthechoiceofastrictorlooseevaluationaﬀectstherelativeperformanceofNERsystemsandsuggestedseveralscoringcriteriafordiﬀerentapplicationneeds.Recentcommunity-wideevaluationshavedemonstratedthatNERsystemsaretypicallycapableofachievingfavorableresults.Forex-ample,thebestperformingsystemsachievedF-scoresof0.83and0.87fortheﬁrst[226]andsecond[187]BioCreAtIvegenementionrecogni-tiontasks,0.85forthei2b2conceptextractiontask[216],and0.73fortheJNLPBAbio-entityrecognitiontask[91].AlthoughNERsystemsmaybetailoredforaparticularinformationextractiontask,theirpri-marymethodscanbroadlybegroupedasfollowingoneofseveralbasicapproaches,whicharediscussedbelow.Dictionary-basedmethods,oneofthemostbasicbiomedicalNERapproaches,utilizecomprehensivelistsofbiomedicaltermsinordertoidentifyentityoccurrencesintext.Suchsystemsdeterminewhetherawordorgroupofwordsselectedfromthetextexactlymatchesatermfromsomebiomedicalresource.Whenusedasstand-alonemethods,dictionary-basedapproachesgenerallyexhibitreasonablyhighprecision,buttheysuﬀerfrompoorrecallduetotheexistenceofspellingmistakes476MININGTEXTDATAandmorphologicalvariants[207].However,lowprecisionisalsopossibleduetohomonymy[68].Forexample,manygenenamesandabbrevi-ations(e.g,“an,”“by,”and“can”)sharelexicalrepresentationswithcommonEnglishwords[99].Forthesereasons,someformofinexactstringmatchingiscommonlyutilizedtoimprovetheprecisionandrecallofdictionary-basedapproaches.Somemethodsimproveperformancebyﬁrstgeneratingspellingvariantsforthetermsinabiomedicalresource,andthenbyappendingtheseadditionaltermstotheunderlyingwordlists[205,204].Themethodsarethenableperformexactmatchingusingtheaugmentedresource.OthermethodsutilizealgorithmssuchasBLASTR(cid:2)[10,11]toperformapproximatestringmatchinginsteadofexactmatching[100].Despitetheseimprovements,dictionary-basedmethodsaremostoftenusedinconjunctionwithmoreadvancedNERapproaches.AnotherapproachtoNERistodeﬁnerulesthatdescribethecompo-sitionpatternsofnamedbiomedicalentitiesandtheircontext.Exam-plesofrule-basedapproachesincludetheEMPathIEandPASTAsys-tems[78,61],whichusecontextfreegrammarsthatrecognizeenzymeinteractionsandproteinstructures.Othersystemsutilizepattern-basedrulesthatexploittheorthographicandlexicalcharacteristicsoftargetedentityclassesinordertorecognizeprotein[59]andchemical[128]names.Thesesimplermethodsmaybeimprovedbyadditionallyconsideringcontextualinformation[70]andtheresultsofsyntacticparsingforde-terminingentityboundaries[57].However,whilerule-basedapproachestypicallyachievebetterperformancethandictionary-basedapproaches,manualgenerationoftherequiredrulesisatime-consumingprocess,and,sincetherulesareusuallyveryspeciﬁcinordertoachievehighprecision,theyarediﬃculttoextendtootherentityclasses.ItisincreasinglycommonforNERapproachestorelyonstatisti-calmethodsinsteadof,orincombinationwith,dictionary-andrule-basedapproaches.Unlikethepreviouslydescribedapproaches,statisti-calmethodstypicallyrelyonsomeformofmachinelearningalgorithmtoidentifybiomedicalentities.Whilesupervisedmachinelearningap-proachesmustbetrainedwithobservationstakenfromlargeannotatedcorpora,recentworkhasinvestigatedtheautomaticgenerationoftrain-ingdatafortheNERtaskthroughtheuseofbootstrappingandothersemi-supervisedstatisticaltechniques[218,125,212].Commonstatis-ticalmethodsusedforNERcanbegroupedaseitherclassiﬁcation-orsequence-basedapproaches.Classiﬁcation-basedapproachestransformtheNERtaskintoaclas-siﬁcationproblem,whichcaneitherbeappliedtoindividualwordsorgroupsofwords.CommonclassiﬁersusedforbiomedicalNERincludeBiomedicalTextMining:ASurveyofRecentProgress477Na¨ıveBayes[139]andSupportVectorMachine(SVM)[86,118,196,224]classiﬁers.Althoughitispossibletoclassifymulti-wordphrases,apopularapproachfollowstheBIOtaggingscheme[157],whereindi-vidualtokensareclassiﬁedasbeingatthebeginning(B)ofanentity,inside(I)theboundariesofanentity,oroutside(O)theboundariesofanentity.However,despiteitssuccess,thistaggingschemecanbeprob-lematicifentityboundariesoverlap,andseveralauthorshaveaddressedtheproblemofrecognizingnestedbiomedicalentities[62,8].Theper-formanceofclassiﬁcation-basedapproachesishighlydependentonthechoiceoffeaturesusedfortraining,andmanyauthorshaveexploredvariousfeaturecombinations.Forexample,Kazamaetal.[86]andMit-sumorietal.[118],considermorpho-syntacticpropertiesofnameden-tities,TakeuchiandCollier[196]considerorthographicandhead-nounfeatures,andYamamotoetal.[224]exploreavarietyoffeaturesen-compassingboundary,morpho-lexical,andsyntacticpropertiesaswellasadictionary-basedfeaturethatindicateswhetherawordappearsinabiomedicalresource.Giventhesensitivityofclassiﬁcation-basedapproachestothechoiceoffeatures,automaticfeatureselectionisanimportantconsideration.Hakenbergetal.[63]performasystematicevaluationofcommonfeaturesanddiscusstheirinﬂuenceonthepredic-tivequalityofclassiﬁcation-basedNERsystems.Unlikeclassiﬁcation-basedapproaches,sequence-basedNERsystemsconsidercompletesequencesofwordsinsteadofonlyindividualwordsorphrases.Theyaretrainedontaggedcorporaandaimtopredictthemostlylikelytagsforagivensequenceofobservations.AcommonstatisticalframeworkusedforbiomedicalNERistheHiddenMarkovModel(HMM)[36,179,124,93].MethodsbasedontheMaximumEn-tropyMarkovModelarealsocommon[55,37].However,ConditionalRandomFields(CRF)[141,175]areoftendemonstratedtobesuperiorstatisticalframeworksforbiomedicalNER.Forexample,CRFswereutilizedbythebestperformingsystemonthei2b2medicalconceptex-tractiontask[216]andbyhighlyrankedsystemsontheBioCreAtIvegenementionrecognitiontasks[226,187]andtheJNLPBAbio-entityrecognitiontask[91].Likeotherstatisticalmethods,sequence-basedap-proachescanbetrainedonavarietyoffeaturesincludingorthographicfeatures[36,124],preﬁxandsuﬃxinformation[179],andpart-of-speechtagsetsaugmentedtoincludetagsforentityclasses[93].Manyapproachesdonotjustutilizeasinglemethodforperform-ingbiomedicalNERandinsteadrelyonmultipletechniquesandvar-iousresources.Thesehybridapproachesareoftenquitesuccessfulatcombiningdictionary-orrule-basedapproacheswithstatisticalmeth-ods.Asevidenceoftheadvantagesofhybridapproaches,Abachaet478MININGTEXTDATAal.[2]comparedtheperformanceofcommonrule-basedandstatisti-calapproachestomedicalentityrecognitionandconcludedthathybridapproachesutilizingmachinelearninganddomainknowledgeperformbest.TherearenumeroushybridbiomedicalNERsystems.Forexam-ple,Sasakietal.[173]useadictionary-basedapproachtoidentifyknownproteinnamesinparallelwithpart-of-speechtagging.TheythenuseaCRF-basedapproachtoreducethenumberoffalsepositivesandfalsenegativesintheresultingtaggedsequence.Othermethodscreatemeta-learnersfrommultiplestatisticalmethods.Forexample,Zhouetal.[236]utilizeameta-learnercomposedoftwoHMMstrainedondiﬀerentcor-porawhoseoutputsarecombinedwithoneSVMtorecognizeproteinandgenenames.Similarly,MikaandRost[117]composeameta-learnertorecognizeproteinnamesfromthreeSVMstrainedondiﬀerentcoporaandfeaturesetswhoseoutputsarethencombinedwithafourthSVM.Finally,CaiandCheng[25]presentanapproachtobiomedicalNERthatutilizesthreediﬀerentclassiﬁerstoimprovethegeneralizationabilityofthesystem.AmorethoroughanalysisofNERapproachesinthebiomedicaldo-maincanbefoundintheseveralliteraturesurveysdedicatedtothesubject[99,104].3.2RelationExtractionMostinformationextractiontasksinthebiomedicaldomaingobeyondsimplyidentifyingnamedentitiesand,inaddition,involvedeterminingrelationshipsamongthoseentities.Intheirsimplestform,associationsamongbiomedicalentitiesarebinary,involvingonlythepair-wiserela-tionsbetweentwoentities.However,biomedicalrelationshipscanin-volvemorethanjusttwoentities,andthesecomplexassociationsarediscussedlaterwiththeeventextractiontask.Thegoaloftherelationextractiontask,therefore,istoidentifyoccurrencesofparticulartypesofrelationshipsbetweenpairsofgivenentities.Althoughcommonen-tityclasses(e.g.,genesordrugs)aregenerallyquitespeciﬁc,thetypesofidentiﬁedrelationshipsmaybebroad,includinganytypeofbiomedicalassociation,ortheymaybespeciﬁc,forexample,bycharacterizingonlygeneregulatoryassociations.Avarietyofbiomedicalrelationshavebeenthesubjectofinformationextractiontasksintheliterature.Inthecurrentgenomicera,muchofthisworkhasfocussedonautomaticallyextractinginteractionsbetweengenesandproteins.Inparticular,becauseofitscriticalroleinun-derstandingbiologicalprocesses,Protein-ProteinInteraction(PPI)hasbeenoneofthemostwidelyresearchedtopicsinbiomedicalinformationBiomedicalTextMining:ASurveyofRecentProgress479extraction.Otherassociationsofinterestincludeinteractionsbetweenproteinsandpointmutations[102],proteinsandtheirbindingsites[28],genesanddiseases[31],andgenesandphenotypiccontext[113].Intheclinicaldomain,relationshipsbetweenpatients’presentedmedicalproblemsandthetestsortreatmentstheymayundergo[216]isanin-creasinglyimportanttypeofrelation,especiallyconsideringthegrowingprominenceofelectronichealthrecordsystems.BiomedicalrelationextractionfacesmanyofthesamechallengesasNER,includingthecreationofhighqualityannotatedcorporafortrain-ingandevaluatingrelationextractionsystems.Comparedwiththean-notationofnamedentities,theannotationofrelationsisconsiderablymorecomplicatedsincerelationsaregenerallyexpressedasdiscontin-uousspansoftextandthetypesofrelationsconsideredareusuallyapplication-speciﬁc[13].Additionally,sincethereisoftenlittleconsen-susregardinghowtobestannotategiventypesofrelations,theresultingresourcesarelargelyincompatible,and,asaresult,thequalityofthemethodsutilizingtheseresourcesisdiﬃculttoevaluate.Forexample,Pyysaloetal.[155]performedacomparativeanalysisofﬁvePPIcorporaandfoundthattheperformanceofstate-of-the-artPPIextractionsys-tems,measuredintermsofF-score,variedonaverageby19percentagepointsandbyasmuchas30percentagepointsontheevaluatedcor-pora.Participationincommunity-wideevaluationsthatarededicatedtotherelationextractiontaskisindispensableforobtainingannotatedcorpora.Relationextractiontaskshavebeenacomponentofseveralrecentevaluationforums,andthesetasksincludetheLLLgenicinteractionchallenge[133],theBioCreAtIvePPIextractiontask[96],andthei2b2relationextractiontask[216].ThepurposeoftheLLLchallengewastoextractproteinandgenerelationshipsfromabstractscontainedinMEDLINE,andthebest-performingsystemachievedanF-scoreof0.54identifyingtheseassociations.TheBioCreAtIvetaskconsistedoffoursubtasksrelatedtoPPIextraction.Thesechallengesincludedtheclas-siﬁcationofPubMedabstractsastowhethertheywererelevantforPPIannotation,theidentiﬁcationofbinaryprotein-proteininteractionsfromfull-textarticles,theextractionofproteininteractionmethods,andtheretrievaloftextualevidencedescribingtheinteractions.Thebest-performingsystemachievedaprecisionof0.37atrecall0.33forextractingbinaryPPIrelations.Finally,theaimofthei2b2relationex-tractionchallengewastoidentifymedicalproblem-treatment,problem-test,andproblem-problemrelationshipsinclinicalnotes.Participantsweretasked,forexample,withdeterminingwhethertwoco-occurringproblemandtreatmentconceptswererelated,andifso,whetherthe480MININGTEXTDATApatient’streatmentimproved,worsened,orcausedthemedicalproblem.Thebest-performingsystemonthei2b2relationextractionchallengedachievedanF-scoreof0.74.LiketheforumsdedicatedtoevaluatingtheNERtask,community-wideevaluationssuchasthesehavebeeninstrumentalinthedevelopmentandevolutionofrelationextractionapproaches.Relationextractionapproacheshaveshownanevolutionfromsimplesystemsthatrelysolelyonco-occurrencestatisticstocomplexsystemsutilizingsyntacticanalysisanddependencyparsing.Somerecentap-proachestotherelationextractiontaskaredescribedbelow.Anac-countingofadditionalmethodscanbefoundinotherbiomedicaltextminingsurveysthatcovertherelationextractiontask[13,32,238].Thesimplestmethodofidentifyingrelationsbetweenbiomedicalenti-tiesistocollectinstanceswheretheentitiesco-occur.Iftheentitiesarerepeatedlymentionedtogether,thenthereisagreaterchancethattheymayberelatedinsomeway,althoughthetypeanddirectionofthisre-lationtypicallycannotbedeterminedbyco-occurrencestatisticsalone.Forexample,Chenetal.[30]applyco-occurrencestatisticstocomputethedegreeofassociationbetweendiseasesanddrugsextractedfromclinicalrecordsandbiomedicalliterature.Co-occurrenceapproachescommonlyexhibithighrecallandlowprecision.Rule-basedapproachesdescribethelinguisticpatternsexhibitedbyparticularrelations.Unlikethesystemsbasedontermco-occurrences,rule-basedapproachestypicallydemonstratehighprecisionandlowre-call.Therulesusedforrelationextractioncanbemanuallydeﬁnedbydomainexperts[172],ortheycanbederivedfromannotatedcoporabymachinelearningalgorithms[64].Classiﬁcation-basedapproachesarealsocommonlyusedtoidentifyre-lations,particularlythoseinvolvingmedicalentities.Robertsetal.[168]describeasupervisedmachinelearningsystem,trainedonshallowfea-turesextractedfromoncologyreports,thatdetectsvariousclinicalre-lationshipsinpatientnarratives.Similarly,Rinketal.[167]describeasystemthatdiscoversrelationsbetweenmedicalproblems,treatments,andtestsmentionedinelectronicmedicalrecords.Thesystemreliesonsupervisedmachinelearningandlexical,syntactic,andsemanticcon-textfeatures.Bundschusetal.[23]utilizeCRFstoidentifyandclassifyrelationsbetweendiseasesandtreatmentsextractedfromPubMedab-stractsandrelationsbetweengenesanddiseasesinthehumanGeneRIFdatabase.Finally,AbachandZweigenbaum[1]describeahybridap-proachthatutilizespatternsdevelopedbydomainexpertsaswellasSVMclassiﬁcationtoextractrelationsthatoccurbetweendiseasesandtreatmentsinmedicaltexts.BiomedicalTextMining:ASurveyofRecentProgress481Animportantadvanceintheevolutionofrelationextractionmethodshasbeentheconsiderationofsyntacticstructures.Inparticular,depen-dencyparsingiscapableofproducinginformativesyntacticdescriptionsofbiomedicaltext,intheformofdependencytreesorgraphs,whichen-codegrammaticalrelationsbetweenphrasesorwords.Fundeletal.[60]producedependencytreesfromMEDLINEabstracts.Theirsystemthenappliesthreerelationextractionrulestothesyntacticstructuresinordertoidentifygeneandproteinassociations.Similarly,Rinaldietal.[164]combinesyntacticpatternsobtainedfromdependencytreestructuresinordertosupportqueryingthebiomedicalliteratureforinteractionsbetweengenesandproteins.Miyaoetal.[121]performdeepparsingtoannotatepredicate-argumentstructuresinMEDLINEabstracts.Theirsystemthenreliesonthestructuralmatchingofthesemanticannota-tionstoidentifyandretrieverelationalconcepts.Inotherwork,Miyaoet.al[122]evaluatevariousparsersandtheiroutputrepresentationsontheirabilitytoimproveaccuracywhenusedasacomponentofaPPIextractionsystem.Withthegrowingavailabilityoflargecorporacontainingrelationalannotations,manyapproachesutilizemachinelearningalgorithmstoextractusefulinformationfromsyntacticstructuresratherthanapply-ingmanuallyderivedpatterns.Inthecontextofkernel-basedmachinelearning,severalauthorshaveproposedkernelscapableofmeasuringthesimilaritybetweensyntacticparsetreesorgraphs.Airolaetal.[7]describeanall-pathsgraphkernelforcomputingthesimilaritybetweendependencygraphs.Thekernelfunctionisthenusedintrainingaleastsquaressupportvectormachinetoidentifyprotein-proteininteractions.Kimetal.[92]suggestfourgenicrelationextractionkernelsdeﬁnedontheshortestsyntacticdependencypathbetweentwonamedentities.Finally,Miwaetal.[120]describeaframeworkforcombiningtheout-putsofmultiplekernelsandsyntacticparserstoextractprotein-proteininteractions.Syntacticanalysisisoftencomplementedbysemanticrolelabeling,anaturallanguageprocessingtechniquethatidentiﬁesthesemanticrolesofwordsorphrasesinsentencesandexpressesthemaspredicate-argumentstructures.Tsaietal.[202]constructarolelabelingsys-temthatusesamaximumentropymachinelearningmodeltoextractbiomedicalrelationsfromapreparedportionoftheGENIAcorpus.Asdiscussedbelow,theannotationofsemanticrolesfornamedbiomed-icalentitieshasenabledtheextractionofavarietyofcomplexentityassociations.482MININGTEXTDATA3.3EventExtractionRecently,therehasbeenashiftinbiomedicalinformationextractionfromrecognizingbinaryrelationstothemoreambitioustaskofidentify-ingcomplex,nestedeventstructures.Eventsaretypicallycharacterizedbyverbsornominalizedverbs.Forexample,inthesentence“glnAP2maybeactivatedbyNifA,”theverbactivatedspeciﬁestheevent,andglnAP2andNifAaretheevent’sarguments.Unlikethecaseofsimplebinaryrelations,bothconceptlabelsandsemanticrolesareassignedtoaneventanditsarguments.Inthisexample,theverbactivatedindi-catesapositiveregulationtypeevent,whichexpectsaprotein(NifA)toactastheevent’scauseandagene(glnAP2)toactastheevent’stheme[13].Anotherimportantdistinctionbetweentheextractionofbinaryrela-tionsandcomplexeventsisthateventscanbenested,withoneeventfunctioningasaparticipantofanotherevent.Forexample,inthesen-tence“RFLAT-1activatesRANTESgeneexpression”twoeventsarepresent[13].OneeventisindicatedbythenominalizedverbexpressionwhosethemeisRANTES,agene,andtheothereventisindicatedbytheverbactivateswhosecauseisRFLAT-1,aprotein,andwhosethemeisthegeneexpressioneventitself.Thus,eventrepresentations,unlikebinaryrelations,arecapableofcapturingmanydiﬀerenttypesofasso-ciationswithanarbitrarynumberofentitiesandeventsrelatedbyavarietyofsemanticroles.Duetothecomplexityofbiomedicalevents,eﬀectiveeventextractiontypicallyrequiresathoroughanalysisofsentencestructure.Eventex-tractionisparticularlyaidedbytheuseofsemanticprocessinganddeepparsingtechniques,whicharecapableofanalyzingboththesyntacticandsemanticstructureofbiomedicaltext.Dependencyparsingisanespeciallyusefultechniqueforcapturingsemanticssuchaspredicate-argumentrelationships,whichhavebeenshowntobeaneﬀectiverepre-sentationforeventextraction[219].Despitethecomplexityofthetask,eventextractionhasbroadapplicabilityinthebiomedicaldomain,anditisincreasinglybeingusedfortheannotationofbiomedicalpathways,GeneOntologyannotation,andtheenrichmentofbiologicaldatabases.Thegrowinginterestineventextractionhaslargelybeendrivenbytheintroduction,mostlyinthedomainofsystemsbiology,ofcorporacontainingtheannotationsnecessaryforthetrainingandevaluationofstatisticaleventextractionmethods.TheBioInfercorpus[156]wastheﬁrstpubliclyavailablecorpusinthebiomedicaldomaintoincorporateeventannotations.OtherannotatedeventcorporaincludetheGENIAEventCorpus[92]andtheGeneRegulationEventCorpus[198].No-BiomedicalTextMining:ASurveyofRecentProgress483tably,theGENIAcorpusremainsoneofthemostwidelyusedresourcesinbiomedicaltextmining,andthedatafortheBioNLPsharedtasksoneventextraction[89,88]werepreparedbasedonthisresource.TheBioNLP’09sharedtask[89]wastheﬁrst-of-its-kindcommunity-wideevaluationofeventextractionmethods.TheprimarychallengewastoextracteventtypesrelatedtoproteinbiologyfromMEDLINEabstracts.Targetedeventtypesincluded,amongothers,geneexpres-sion,transcription,localization,binging,andregulation.Thebindingeventtypewasmorecomplexthantheotherssinceitrequiredthede-tectionofanarbitrarynumberofarguments,andtheregulationeventtypeswerenotableforallowingothereventstoactastheircauseortheme.Thebest-performingsystemobtainedanF-scoreof0.52ontheprimaryeventextractiontask.TheBioNLP’11sharedtask[88]repeatedtheevaluationfromthepreviousmeeting,butalsoincludedadditionaltaskstargetingeventtypesinothersubdomainsofbiology.Onthesubtaskcomparablewiththatofthatoftheﬁrstmeeting,thebest-performingsystemachievedanF-scoreof0.57,whichdemonstratedasigniﬁcantimprovementinthecommunity.SuccessfulsystemsattheBioNLPsharedtaskmeetingsreliedonavarietyoftechniquesinclud-ingmachinelearning,Markovlogicnetworks,anddependencyparsing.Severalapproachestobiomedicaleventextractionaredescribedbelow.Mosteventextractionsystemsfollowapipelinedapproachthatdi-videsthetaskintoasequenceofthreestages.Fist,thesystemspredictacandidatesetofeventtriggerwords.Triggerwordsareoftentheverbsornominalizedverbsthatindicateaparticulareventtype,suchas“phosphorylation,”“activates,”or“inhibits.”Then,thesystemsseektodeterminewhetheranyrecognizednamedentitiesortriggerwordsareinstantiationsofeventarguments.Theﬁnalstageintheprocessisasemanticpost-processingstepthatattachesargumentstoeventtriggersfollowingconstraintsonthetypeandnumberargumentsallowableforagiveneventtype.Thisbasicarchitectureisacommonapproachtotheeventextrac-tiontask.Bj¨orneetal.[21]describethebest-performingsystemontheBioNLP’09eventextractiontask.Theirmethodtrainsseparatemulti-classSVMsfordetectingeventtriggersandargumentsusinganextensivesetoffeatures,especiallythosederivedfromdependencyparsegraphs.Theirsystemthenusesarule-basedapproachforattachingargu-mentstotheircorrespondingevents.ThisapproachhasbeencombinedwithBANNERtoperformeventextractiononanunlabeledsubsetofcitationsfromPubMed[20].Miwaetal.[119]describeaneventex-tractionapproachsimilartothatofBj¨orneetal.,butinsteadofrelyingonarule-basedapproachtoattacheventparticipantstotriggerwords,484MININGTEXTDATAtheyobtainanimprovementbyutilizingaclassiﬁerandadditionalfea-turesforthisstep.Buykoetal.[24]describeasystemthatreliesonadictionary-basedapproachtoidentifyeventtriggersandanensembleoffeature-andkernel-basedclassiﬁerstrainedusing“trimmed”depen-dencygraphstoidentifyeventparticipants.KilicogluandBergler[87]alsouseadictionary-basedapproachtoidentifyeventriggers,buttheydeveloprulesbasedonsyntacticdependencypathstodetecteventpar-ticipants.Finally,Cohenetal.[34]describeapattern-basedapproachtoeventextractionthatutilizestheOpenDMAPsystem[79]todeﬁneentityandeventtypesaswellastheconstraintsoneventarguments.Recently,jointpredictionapproacheshavebeenproposedthatseektoovercometheproblemofcascadingerrors,whichsomeoftheaboveapproachesallow.Forexample,byseparatingtheeventtriggerandar-gumentdetectiontasks,asystemmaynotcorrectlyextractaneventifitfailstodetectatriggerwordintheﬁrststageoftheprocess.PoonandVanderwende[153]proposeamethodbasedonMarkovlogicnet-worksthatjointlypredictseventsandarguments.Foreachword,thesystempredictswhetheritisaneventtriggerword,andforeachsyn-tacticdependencyedge,thesystempredictswhetheritisanargumentpathleadingtoaneventthemeorcause.Additionally,RiedelandMc-Callum[161]proposeafamilyofthreejointpredictionmodelsbasedonMarkovlogicthatarelesscomputationallycomplexthanpreviouswork[160]andleadtobettereventextractionresults.4.SummarizationInformationextractiontechniquesareoftenutilizedasaﬁrststepinotherbiomedicaltextminingtasks.Onesuchtaskistheautomaticsum-marizationofbiomedicaldocuments.Automaticsummarizationreferstotheprocessbywhichthesalientaspectsofoneormoredocumentsisidentiﬁedandpresentedsuccinctlyandcoherently.Duetotheenor-mousgrowthofunstructuredinformationintheformofscientiﬁcarticlesandelectronichealthrecords,ameansforcliniciansandresearchestoquicklyandreliablyassimilateknowledgefromamultitudeofbiomed-icalsourcesisdesirable.Automaticsummarizationisoneapproachtodetermineandmakeaccessibletheimportantinformationcontainedinanincreasinglylargeanddiversevolumeofbiomedicaltext.Inthebiomedicaldomain,documentsummariesarecommonlyapplication-oriented,andcanserveavarietyofpurposes.Summariesmaybeeitheragenericassimilationoffactsortheymaybetargeted[3].GenericsummariesconsideralltheinformationcontainedinadocumentorsetofdocumentswhiletargetedsummariesaimtosatisfyaspeciﬁcBiomedicalTextMining:ASurveyofRecentProgress485informationneed,whichisusuallypresentedtoasystemintheformofaquery.Forexample,atargetedsummaryofthebiomedicalliteraturemightseektodeterminethebesttreatmentsforagivendisease[56],whereasagenericsummarymightaimtoextractfromarticleskeysen-tencesrelatedtoresultsorconclusions[169].Additionally,asummaryisconsideredindicativeifitspurposeistoinformareaderofthecontentsofadocumentorsetofdocuments,oritisinformativeifitspurposeistosupplantthosecontentsintermsofinformationcoverage[3].Dependingontheirpurpose,severaldiﬀerenttypesofdocumentsum-mariescanbeproduced.Single-documentsummariesseektosummarizethecontentsofindividualsources,whereasmulti-documentsummariesconsidertheinformationcontainedinacollectionofsources[3].Often,documentclusteringisutilizedwhengeneratingmulti-documentsum-mariesinordertoproduceatopicalaccountofaparticulargroupofdocuments.Summariesmayalsobeextractiveorabstractive[3].Ex-tractivesummariesarecreatedbyidentifyingthesalienttextualcom-ponentsofdocuments(e.g.,theirimportantsentencesorparagraphs)andthenpresentingthisinformationasthesummary.Therepresenta-tivetextualcomponentsaredeterminedbystatisticalmethodsthatrankthemaccordingtorelevanceorbygraph-basedmethodsthatorganizethemaccordingtotheirsimilarity.Alternatively,abstractivesummariesarecreatedbystructuringdocumentinformationinawaythatcanbeprocessedbyanaturallanguagegenerationsystemtoproducethesum-mary.Salientinformationistypicallygeneratedthroughpriorknowl-edgeofthedocuments’structureorbyutilizingontologicalresourcestoproducesemanticrepresentationsofthedocuments.Consideringboththevarioustypesofsummariesthatmaybegener-atedandtheirintendedapplications,theevaluationofsummarizationtechniqueswithinthebiomedicaldomainisachallengingissue.Thisdif-ﬁcultyisdue,inpart,tothesubjectiveaspectofdeterminingwhetherasummaryisof“good”qualityornot.Existingevaluationcriteriacon-sidertheintrinsicaspectsofasummary,suchasitscoherence,concise-ness,grammaticality,andreadability.Otherextrinsicevaluationcriteriameasure,forexample,whetherareaderisabletocomprehendthecon-tentofasummary[3].However,manualevaluationsofsummariesaretime-consumingandexpensivetoperform.Apopularautomaticsum-maryevaluationmethodologyisROUGE[107].ROUGEisanacronymforRecall-OrientedUnderstudyforGistingEvaluation,anditdeter-minesthequalityofanautomaticallygeneratedsummarybycomputingstatisticsbasedonn-gramco-occurrencesandcommonsubsequencesbe-tweenitandidealhuman-producedsummaries.ROUGEhasbeenshowntocorrelatewellwithhumanevaluationsofsingle-documentsummaries.486MININGTEXTDATAArelatedmethodisbasedontheJensen-Shannondivergenceofdis-tributionsbetweenanautomaticallygeneratedsummaryandreferencesummariesandismoreeﬀectiveforthemultipledocumentsummariza-tiontask[108].Recentbiomedicaltextsummarizationtechniqueshavebeenshowntobeeﬀectivetoolsforassimilatinginformationfromadiversecollec-tionofsources.Whilemostapproachesinthebiomedicaldomainaimtoproducetargetedortopic-speciﬁcsummaries,thetypesofgeneratedsummariesaregenerallymorediverseandincludebothsingle-andmulti-documentsummariesaswellasextractiveandabstractivesummaries.However,giventherapidlyexpandingvolumeofpublishedbiomedicalliterature,multi-documentsummariesareincreasinglyviewedasimpor-tant.Examplesofrecenttextsummarizationapproachesandtheirap-plicationsaredescribedbelow.Oneofthemostbasicapproachestobiomedicaltextsummarizationinvolvestheclassiﬁcationofindividualsentencesintoagivensetofcat-egories.Thesecategoriesmaybespeciﬁctothebiomedicaldomain,buttheyareoftenrepresentativeofthegeneralrhetoricalcategoriescom-monlyencounteredinscientiﬁcliterature.AgarwalandYu[4]trainaNa¨ıveBayesclassiﬁertoclassifysentencesinfull-textbiomedicalarti-clesasbeingrelatedtotheintroduction,methods,results,anddiscussionrhetoricalcategories.Theirsystemachievesanoverallannotationagree-mentof0.76kappawithhumanannotators.Ruchetal.[169]describeasimilarapproachthatclassiﬁessentencesinMEDLINEabstractsasbeingrelatedtoanarticle’spurpose,methods,results,orconclusions.Finally,Demner-FushmanandLin[45]produceextractivesummariesforclinicalinformationneedsbyextractingsentencesfromMEDLINEabstractsrelatingtotheoutcomesofaclinicalstudy.Whilesomeoftheaboveapproachesapplygenericsummarizationmethodstobiomedicalarticles,mostapplicationsaretargetedandseekaconcisedescriptionofaspeciﬁctypeofinformation.Sincetheunder-standingofgeneregulationandexpressioniscrucialincurrentbiomedi-calresearch,avarietyoftargetedmethodshavebeenproposedtogener-atemulti-documentgenesummaries.Lingetal.[112]proposeamethodforgeneratingabstractivemulti-documentgenesummariesfrombiomed-icalliterature.Theirtwo-stageapproachtogenesummarizationﬁrstretrievesarticlesthatmentionaparticulargene,anditthenidentiﬁestextwithinthosearticlesthatpertainstoseveralgene-relatedsemanticcategories,whichincludeexpression,sequence,andphenotypicinfor-mation.Similarly,Yangetal.[225]describeanextractiveapproachtogenesummarizationthatﬁrstclustersgenesintofunctionalgroupsbasedontheirmentionsinMEDLINEabstracts.TheirsystemthenpresentsBiomedicalTextMining:ASurveyofRecentProgress487summariesforeachfunctionalgroupbyrankingandextractingsentencesfromtheabstracts.Achallengefacingmanyautomaticsummarizationtechniquesistheaccuratesemanticinterpretationofthetext.Toaddressthisissue,severalsummarizationmethodsutilizedomainknowledgeinordertoproduceontology-baseddocumentsummaries.Reeveetal.[158]de-scribesasingle-documentabstractiveapproachthatutilizesMetaMaptomaptexttoconceptsintheUMLSMetathesaurus.TheirapproachthendiscoversstrongthematicchainsofUMLSsemantictypesandex-tractsthecorrespondingsentences.Yooetal.[229]describeanap-proachtomulti-documentsummarizationthatﬁrstclustersarticlesintotopicalgroupsandthenproducessummariesforeachcluster.Theirsystemusesagraph-basedmethodforbothdocumentclusteringandsummarizationthatisenrichedwithconceptsfromtheMeSHontol-ogy.Moralesetal.[123]describeasimilargraph-basedapproachtosingle-documentsummarizationthatrepresentsdocumentsusingUMLSconcepts.Finally,Fiszmanetal.[56]utilizeSemRep[165]toproducemulti-documentsummariesofMEDLINEcitationsaccordingtodisease-treatmentrelationshipsrelevanttouser-speciﬁedtopics.TheirapproachhasbecomeanintegralcomponentofSemanticMEDLINE[166].Inadditiontothetextfoundinbiomedicalarticles,theﬁgurestheycontainalsoconveyessentialinformation.Howeverbiomedicalimagesareseldomself-evident,andmuchoftheinformationrequiredfortheircomprehensionisfoundelsewhereinanarticle.Figurecaptions,articletitlesandabstracts,andsnippetsoftextfromwithinthebodiesofarti-clesallcontributetoimageunderstanding[230].Giventhatﬁguresareacrucialsourceofinformationinthebiomedicalliterature,manymeth-odsseektoincorporateimage-relatedtextintodocumentsummaries.However,sincethenumberofsuchapproachesissolarge,andtheirmethodsarediverse,afullaccountingoftheuseofimage-relatedtextinbioinformaticswarrantsaseparatereview.Afewrepresentativeexamplesofﬁguresummarizationandtheuseﬁgurecaptionsforproducingdocumentsummariesincludethefollow-ing.Similartotheirapproachforfull-textsummarization,AgarwalandYu[5]produceﬁguresummariesconsistingofonesentenceeachfromanarticle’sintroduction,methods,results,anddiscussionrhetoricalcate-gories.YuandLee[232]produceﬁguresummariesbyextractingsen-tencesfromarticleabstractsthataresimilartoﬁgurecaptions,andSimpsonetal.[181]utilizeimage-relatedtexttoproducefull-textsum-mariesinsupportofcase-basedarticleretrieval.Severaluser-orientedsystemshavebeendevelopedforsupportingbiomedicaldocumentsummarization.PERSIVAL[116,49]isaclini-488MININGTEXTDATAcalsystemthatseekstoprovideaccesstomedicalliteratureandcon-sumerhealthinformation.Forclinicians,thesystemproducestargeted,multi-documentsummariescontainingsentences,extractedfromfull-textbiomedicalarticles,thatrelatetoexperimentalresults.Forusersofthesystemthatarepatients,PERSIVALprovidesindicativesum-mariesofinformationthatiscommonlyrepeatedacrossasetofconsumerhealthdocuments.AnneO’Tate[184]isanotheruser-orientedsystemcapableofproducingsummariesofbiomedicalliterature.AnneO’Tateisaweb-basedtoolthatprovidesnavigable,extractivemulti-documentsummariesofarticlecitationsretrievedbyPubMed.Thetoolpresentsimportwordsandauthorsmentionedintheresultsandcanclustertheretrievedcitationsbytopic.5.QuestionAnsweringAnotherbiomedicaltextminingtaskthatbuildsuponinformationex-tractiontechniquesisquestionanswering.Unliketraditionalinformationretrieval,whereasetofpotentiallyrelevantdocumentsisreturnedforagivenquery,questionansweringreferstotheprocessofprovidingdi-rectandpreciseanswerstonaturallanguagequestions.Likeautomaticsummarization,questionansweringisataskdirectedtowardsaidingresearchersandhealthcareprofessionalsinmanagingthecontinuousgrowthofinformationinthebiomedicaldomain.Sincequestionanswer-ingrequirestheuseofcomplexnaturallanguageprocessingtechniquesinordertoproduceaccurateresponses,questionansweringsystemsareoftenregardedasthenextgenerationofsearchengines.Thebasicprocessingstepsrequiredofaquestionansweringsystemarewell-understood.Theinputtosuchasystemisnaturallanguagetext.Aquestionprocessingstageuseslinguisticanalysisandquestionclassiﬁcationtechniquestodeterminethetypeofquestionbeingposedtothesystemandthetypeofresponseitshouldgenerate.Itthencon-structsaqueryfromtheinputtexttobefedintoadocumentprocessingstage.Inthedocumentprocessingstage,thesysteminputsthequeryintoasearchengine,whichretrievesasetofdocuments,andfromthesedocuments,extractsrelevantpassagesorsnippetsoftextaspotentialanswers.Ananswerprocessingstageranksthecandidateanswersac-cordingtothedegreetowhichtheymatchtheexpectedanswertypethatwasdeterminedinthequestionprocessingstage.Theoutputofaquestionansweringsystemisthetop-rankedanswer.Severalcharacteristicsofthisprocessdistinguishquestionansweringinthebiomedicaldomainfromgeneral,open-domainquestionanswer-ingsystems.First,biomedicalquestionansweringisbothchallengedBiomedicalTextMining:ASurveyofRecentProgress489andadvantagedbyaprominentuseofdomain-speciﬁcterminology.Al-thoughterminologicalvariationsandsynonymymaketextminingdiﬃ-cultingeneralforthebiomedicaldomain(Section3),questionanswer-ingsystemsmaybeneﬁtfromthespeciﬁcityandlimitedscopeofpo-tentialquestionsthatadomain-speciﬁcterminologyprovides.Second,themultitudeofdomain-speciﬁccorporaandthetoolsandmethodsre-quiredforexploitingthesemanticinformationtheycontain(Section2)allowfordeepquestionprocessing.Lastly,agreementondomain-speciﬁcstructuresinwhichtoorganizequestions—especiallyclinicalquestions—allowsforanswerprocessingstrategiesthatcanbetailoredtospeciﬁcquestiontypes.Duetotheuniquecharacteristicsofbiomedicineasanapplicationdomainforquestionanswering,recentlyproposedsystemshaveincreas-inglysoughttoincorporatedeepsemanticknowledgethroughouttheirprocessingstagesinordertoproducemorepreciseresponses.There-mainderofthediscussioninthissectionsurveysbiomedicalquestionan-sweringtechniques,andorganizesthemethodsaccordingtotherecentreviewbyAthenikosandHan[17],inwhichtheauthorsclassifybiomedi-cal“semanticknowledge-based”systemsintosemantics-based,inference-based,andlogic-basedapproaches.Semantics-basedapproachesproduceanswerstobiomedicalquestionsbyexploitingthesemanticmetadataen-codedinstructuredknowledgeresourcesandontologies;inference-basedapproachesderiveresponsesbyexploitingextractedsemanticrelation-ships,andlogic-basedapproachesutilizeexplicitlogicalformsandtheo-remprovingtechniquestoproduceanswers.Theapproachescanfurtherbedividedintothosethatsupportmedicalquestionansweringandthosethatsupportbiologicalquestionanswering.5.1MedicalQuestionAnsweringAdominantthemeofworkrelatedtomedical(orclinical)questionan-sweringistheuseoftheevidence-basedmedicineframework.Evidence-basedmedicine[170]seekstoapplythebestinformationgarneredfromscientiﬁcinquirytoclinicaldecisionmaking.Fordeterminingthebestavailableevidencesupportingananswertoagivenclinicalquestion,theevidence-basedparadigmsuggestsquestionsbestructuredaccordingtothePICO[159]format.PICOisanacronymforPatient/Problem,In-tervention,Comparison,andOutcome.Clinicalquestionscontainingelementsthatpertaintoeachofthesesemanticrolesareconsideredwell-formed.Inadditiontothestructureofclinicalquestions,taxonomiesofquestionsintheevidence-basedframeworkhavealsobeenproposed.Elyetal.[50]describeagenerictaxonomyforclinicalquestionsthatdistin-490MININGTEXTDATAguishesamongquestionsthatarepotentiallyanswerableandthosethatarenot.Theauthorsclaimthatquestionsinvolvingasearchforevidenceareamongtheanswerableones.Theﬁrststeptowardsansweringaclinicalquestionisprocessingthequestionsoastodeterminethetypeofanswertoproduce.Severalau-thorsinthemedicaldomainhaveinvestigatedquestionclassiﬁcationasameansofanalyzingandﬁlteringclinicalquestions.Huangetal.[77]describeamanualclassiﬁcationofprimarycareclinicalquestionsasameanstoevaluatetheeﬀectivesofthePICOframework.TheauthorsconcludethatPICOisausefulorganizingstructureforclinicalquestions,buttheysuggestitislesssuitableforquestionsthatdonotinvolvether-apyelements.Additionally,Yuetal.[234,235,231]investigatevariousmachinelearningapproachesforquestionﬁlteringthatautomaticallydeterminewhetheraclinicalquestionisanswerableaccordingtotheevidencetaxonomyproposedbyElyetal.,whichwasdescribedabove.Mostapproachestomedicalquestionansweringinsomewaymakeuseofdomain-speciﬁcsemanticknowledgeforinformationextractionandre-trieval.Jacqumartetal.[40,81]describeasemantics-basedapproachforthedevelopmentofaFrench-languagemedicalquestionansweringsystem.Theirapproachisnotablefortheuseofpattern-basedsemanticmodelsofmedicalquestionsandtheuseofUMLSconcepts,semantictypesandrelationsforidentifyingnamedentitiesandextractinganswers.Niuetal.[135,136,138,137]proposeaPICO-basedquestionansweringapproachwithintheEPoCaresystem.Theirmethodslocatepotentialanswersbyidentifying,inboththequestionandanswertexts,semanticrolesthatcorrespondtothefourelementsofthePICOframework.Thesemanticrolesidentiﬁedinthequestionarethencomparedwiththoseidentiﬁedincandidateanswerstoselectaresponse.Similarly,Demner-Fushmanetal[45,44,42,109,43]proposeanapproachtoclinicalques-tionansweringbasedonthesemanticuniﬁcationofaqueryPICOframewiththoseofcandidateanswers.MakingextensiveusofMetaMapandSemRep,theauthorsdescribesemanticknowledgeextractorsforiden-tifyingPICOelementsinmedicaltexts,asemanticmatcherforscoringandrankingMEDLINEcitationsaccordingtoaqueryPICOframe,andananswergeneratorforextractinganswersfromthescoredcitations.Weimingetal.[221]describeaquestionansweringapproachthatrep-resentsquestionsanddocumentsusingUMLSconcepts,semantictypes,andsemanticrelations.Theirapproachisnotableforincorporatingasemanticclusteringphaseintotheanswerprocessingstagesoastoor-ganizepotentialanswersaccordingtotheirhierarchicalrelationshipsintheUMLSMetathesaurus.FinallyAskHERMES[27]isanonlineclin-icalquestionansweringsystemcapableofprocessinglongandcomplexBiomedicalTextMining:ASurveyofRecentProgress491questions.Thesystemusesmachinelearningtechniqueswithavarietyoflexical,syntactic,andUMLS-derivedfeaturestoclassifyquestionsandtopicallygroupandrankcandidateanswers.ApreliminaryversionofAskHERMES,knownastheMedQA[233]system,wasanon-semantic-knowledge-basedapproachcapableofansweringdeﬁnitionalquestions.Fewapproachestoquestionansweringinthemedicaldomainareinference-orlogic-based.Teroletal.[197]describeanapproachbasedoncomparingtheformallogicformsderivedfromanaturallanguagequestionwiththoseofcandidateanswers.Theirtechniqueutilizesapattern-basedmethodforquestionclassiﬁcation,anditidentiﬁesmedi-calentitiesinbothquestionsandanswersbasedonUMLSconceptsandsemantictypes.5.2BiologicalQuestionAnsweringWhereasevidence-basedmedicineprovidesameanstostructureclinicalquestionsandanswers,workinthebiologicaldomainhasyettoadoptsuchaprominentframework.However,systemstargetingthebiologicaldomainstillfollowthegeneralarchitectureofquestionedansweringsys-temsoutlinedpreviously.Areviewofrecentworkrelatedtobiologicalquestionansweringispresentedbelow.Liketheiruseformedicalquestionanswering,semantics-basedap-proachesarealsocommonlyemployedforansweringquestionsinthebiologicaldomain.Takahashietal.[195]describeanapproachthatutilizestheUMLSMetathesaurusandotherbiologicaldictionariesandthesauriforanalyzingquestionsandgeneratingqueries.Theirsystemthenusessemanticinformationoftermsselectedfromtheretrieveddocu-mentstoassimilateandrankcandidateanswers.Linetal.[110]proposeasystemforansweringquestionsaboutbiomolecularevents,includinginteractionsbetweengenesandproteins(Section3).Theirapproachin-volvestheuseofsemanticrolelabelingforextractingpredicate-argumentstructuresandtheuseofsemanticfeaturesforrankingcandidatean-swers.Thesystemprovidesanswerresponsesintheformofbiomedi-calnamedentities.Finally,theBioSquash[180]systemisatargeted,multi-document,semanticgraph-basedsummarizationsystemorientedtowardsansweringbiologicalquestions.Liketheuseinference-andlogic-basedmethodsformedicalquestionanswering,fewapproachesinthebiologicaldomainmakeuseofthesetechniques.Kontusetal.[94,95]describetheAROMAinference-basedsystemforbiologicalquestionanswering.AROMAextractsrhetoricalandcausalrelationshipsfrommultiplebiologicaltexts,combinestheex-tractedtextwithmanuallyentereddomainknowledge,andencodesthis492MININGTEXTDATAinformationasPrologfacts.Thesystemgeneratesanswerstoquestionsbyapplyinginferencerulesovertheencodedfacts.Rinaldietal.[162]describealogic-basedapproachtoquestionansweringinthegenomicsdomain.Usingdeeplinguisticandterminologicalinformation,thesys-temderiveslogicalformsfortexttakenfromdocumentsintheGENIAcorpusandasubsetoffull-textdocumentsindexedinMEDLINE.Natu-rallanguagequestionsareprocessedwiththesamemechanism,andthesystemderivesananswerusingatheoremprovingprocess.6.Literature-BasedDiscoveryWhiletheextractionofexplicitrelationsandeventsamongbiomedicalentitiescanbeusedtoproducerichdocumentsummariesandenablecomplexquestionansweringsystems,anexcitinguseofthesemethodsaimstouncoverrelationshipsthatarenotpresentinthetext,butthatcanbeinferredfromotherinformation.Literature-baseddiscoveryreferstothetaskofutilizingscientiﬁcliteraturetouncover“hidden,”previ-ouslyunknownorneglectedrelationshipsbetweenexistingknowledge.Thegoalofdiscoveringtheseimplicitrelationshipsistoidentifyrelationsworthyoffurtherscientiﬁcinvestigationortoﬁndevidencesupportingsuspectedrelations.Asatechniqueusefulforbiomedicaltextmining,literature-baseddis-coverywaspioneeredbytheworkofSwansoninthe1980s.Swansonsuggestedthatnovelinformationcouldbeuncoveredbysystematicallyreviewing“complementarybutdisjoint”bodiesofliterature[192].Inwhathasbecometheprototypicalexampleofliterature-baseddiscovery,Swansonlinkedﬁshoil,asubstancewidely-understoodtohavepotentialcardiovascularbeneﬁts,withRaynaud’ssyndrome,avasospasticdisor-dercausingthenarrowingofbloodvessels[189].ThediscoverysuggestsﬁshoilsupplementsmayhelptocontrolthesymptomsofRaynaud’ssyn-drome.Tofurtherdemonstratethefeasibilityofhisideas,Swansonlaterfoundevidenceforrelationshipsbetweenmigraineandmagnesium[190],somatomedinCandarginine[191],andvirusesandtheirpotentialuseasbiologicalweapons[194].ThebasicpremiseofSwanson’sapproachisthatthereexiststwoscien-tiﬁccommunitiesthatdonotcommunicate.Aportionoftheknowledgeinonecommunitymayberelatedtoorcomplementknowledgeintheotherone,butthisrelationshipisunknowntoeithercommunity.Forexample,supposeascientiﬁccommunityhasresearchedtherelationshipbetweenamedicalﬁndingorcharacteristicBandadiseaseC.FurthersupposethataseparatecommunityhasstudiedtheaﬀectsofsubstanceAoncharacteristicB.Theuseofliterature-baseddiscoverytechniquesBiomedicalTextMining:ASurveyofRecentProgress493maysuggestanA-Crelationship,indicatinginthisexamplethatsub-stanceAmaypotentiallytreatdiseaseC.Weeberetal.[220]distinguishbetweentwomodesofdiscovery.A“closeddiscovery,”orhypothesistestingstudy,beginswithknownA-andC-terms.Thus,thediscoveryconcernsﬁndingnovelB-termsthatmayexplaintheobservedA-Cassociationorhypothesis.Ontheotherhand,an“opendiscovery,”orhypothesisgenerationstudy,beginswithknownA-BassociationsinonedomainandseekstodiscoverB-Cre-lationsinanotherdomain,therebysuggestingorgeneratingapotentialA-Cassociation.SincethepioneeringworkofSwanson,literature-baseddiscoverytech-niqueshaveseenwidespreaduse.Existingapproachescanbegroupedbythewayinwhichtheyidentifypotentiallynovelrelationships.Therearethosethatdependexclusivelyontheco-occurrenceoftermsorconcepts,thosethatmakeuseofsemanticinformationtoinformtheprocessingofco-occurringterms,andthosethatconstructinteractionnetworksofindividualrelationswhosepathscanrevealhiddenassociations.Somerecentmethodsfollowingthesegeneralapproachesarereviewedbelow.Unlikeothertextminingtasks,measuringtheperformanceofliterature-baseddiscoverytoolsisnotstraightforward,andadiscussionofsystemevaluationfollowsaswell.Co-occurrence-basedmethodsareamongthesimplest,althoughlessprecise,approachestoliterature-baseddiscovery.Likethemostba-sicapproachestotherelationextractiontask(Section3),thesemeth-odsseektoidentifytermsthatfrequentlyoccurtogether.However,whereasapproachestorelationextractionidentifyﬁrst-ordertermco-occurrences,approachestoliterature-baseddiscoveryexploresecond-orderco-occurrences—thesharedco-occurrencesoftwogivenbiomedicalentities[238].Mostoftheearliestapproachestoliterature-baseddiscoveryandmanymodernapproachesrelyonentityco-occurrencestatistics.TheArrow-smith[193,185,182,183,199,186]two-nodesearchtoolimplementsSwanson’soriginalapproachtoﬁndbiologicallymeaningfullinksbe-tweentwosetsofarticlesinPubMedusingtitlewordsandphrases.Recentworkrelatedtothisprojecthasdevelopedamethodtoesti-mateandranktherelevanceofassociations.BITOLA[74,73,72,75]isasimilarliterature-baseddiscoverysystem,butinsteadofidentifyingrelationsusingtitlewords,itrepresentsdocumentsusingtheirMeSHtermsandrecognizedgenesymbols.Additionally,BITOLAusesasso-ciationrules[6]asameasureofconceptrelatednessinsteadofwordfrequencies.LitLinker[227]alsoutilizesMeSHterms;however,itusesastatisticalapproachbasedonthebackgrounddistributionoftermproba-494MININGTEXTDATAbilitiestoidentifycorrelatedconcepts.Jelieretal.[82]describeasystemthatidentiﬁesfunctionalassociationsbetweengenesandotherbiomed-icalconcepts.Theirapproachmeasuresthestrengthofassociationofco-occurringconceptsusingaloglikelihoodratio.RaJoLink[151]pro-videssemi-automatedsuggestionsforlinksbetweentwosetsofarticlesbasedonraretermsidentiﬁedintheliterature.FACTA+[203]usesaninformationtheoreticscoretorankindirectlyassociatedconcepts.Itidentiﬁesexplicitassociationsamongbiomedicalentitiesusingmethodsinheritedfromanearlierversionofthesystem[206].Finally,unlikeotherliterature-baseddiscoverymethodsthatrelyonassociationsexplicitinscientiﬁcliterature,Bentonetal.[18]useacorpusofpoststoInternetbreastcancermessageboardstodiscoveradversedrugeﬀects.Becausesystemsrelyingsolelyonco-occurrencestatisticstendtopro-ducealargenumberofspuriousrelations,recentapproachesincreasinglyrelyonsemanticinformationtoidentifyhiddenrelationsoraugmenttheprocessingofco-occurringentities.Hristovskietal.[71]describeanim-provementtoBITOLAthatusesthesemanticpredicationsproducedbySemRepandBioMedLEE[114]toenableuserstoeliminateuninterest-ingorincorrectrelations.AsimilarapproachisusedintheEpiphaNetsystem[35],aninteractivevisualisationtoolforexploringassociationsbetweenconceptsfoundinMEDLINE.EpiphaNetmakesextensiveuseofMetaMapandSemRepforidentifyingexplicitrelations.Othersys-tems,includingWeeberetal.’sDAD-system[220],ﬁltercandidaterela-tionsbasedontheUMLSsemantictypeofidentiﬁedB-terms.Recallthatforhypothesisgeneration,B-termsareusedtouncoverhiddenA-CrelationsfromexplicitA-BandB-Cassociations.Huetal.[76]de-scribealiterature-baseddiscoverymethodthatusesassociationrulesasameasureofconceptrelatednessbutalsoﬁlterspotentialrelationsusingUMLSsemantictypes.Anotherapproachtodiscoveringhiddenrelationshipsamongbiomedi-calentitiesinvolvestheconstructionofinteractionnetworkswhosepathscanrevealindirectassociations.SekiandMostafa[174]buildaninfer-encenetwork[208]topredictimplicitgene-diseaseassociations.Genesanddiseasesareconnectedwithinthegraphbyintermediarynodesrep-resentinggenefunctionsandphenotypes.Similarly,¨Ozg¨uretal.[145,146]buildagene-interactionnetworkbycollectinganinitialsetofknowndisease-relatedgenesfrombiomedicaltextsusingdependencyparsingandSVMs.Theythenusenetworkcentralitymetricstopredictgene-diseaseassociations.Finally,Palakaletal.[149]describeBioMap,adirectedgraphthatisconstructedfromexplicitrelationshipsbetweenbiomedicalentitiesidentiﬁedwithintext.Usersareabletoquerythegraphtouncoverimplicitassociationsamongtheentities.BiomedicalTextMining:ASurveyofRecentProgress495Duetothenatureofuncoveringnovelinformation,thereisnogroundtruthavailableforevaluatingliterature-baseddiscoverysystems,andcomparingtherelativeperformanceofalternativeapproachesisdiﬃcult.Acommonmethodforevaluatinganautomaticdiscoverytechniqueistousethesystemtoreplicateknowndiscoveries,suchasSwanson’slinkingofRaynaud’ssyndromewithﬁshoilormigrainewithmagnesium[220].However,Yetisgen-YildizandPratt[228]suggestthisapproachisun-informativeoftheoverallperformanceofasystem.TheydescribeanalternativemethodologythatdividestheabstractsinMEDLINEintotwosets:thosethatwerepublishedbeforeagivencut-oﬀdate,andthosethatwerepublishedafterthisdate.Literature-baseddiscoverymethodsarethenappliedtotheoldersetofabstractsashypothesesgeneratingsystemsandtothenewersetashypothesestestingsystems,usingthegeneratedassociationsfromtheoldersetasinput.Theper-formanceofasystemcanthenbequantiﬁedusingstandardinformationretrievalevaluationmethods.7.ConclusionThepastseveralyearshaveseensomeexcitingdevelopmentsinbiomedi-caltextmining.Progresswasmadein(1)deﬁningandattemptingmorechallengingtasks,suchaseventextractionandclinicaltextmining;(2)increasingthepublicavailabilityofandcommunityinvestmentinre-sources,suchastheMIMICIIdatabaseandtheORBITregistry;and(3)developmentanduseofcommonframeworks,suchasUIMA.Itisinterestingtocomparethedevelopmentoftheﬁeldtothedesir-abledirectionsoutlinedbytheleadingresearchersin2008[9].Atthattime,theresearcherswereaskedabouttheimportanceoftextminingforbiology,theutilityofthetextminingsystems,andfuturedirections.Theﬁrstsuggestedavenueforfutureresearchwasfusingliteratureandbiologicaldatabasesthroughtextmining.Understandably,thisrequiresengagingthepublishersofscientiﬁcliteratureandrealizingpotentiallyadditionaleﬀortsbythepublications’authors.Tothatend,Elsevierispilotingatool,Reﬂect-Network[147],developedinpartnershipwiththeEuropeanMolecularBiologyLaboratoryandtheNovoNordiskFounda-tionCenterforProteinResearch.Reﬂecttagsproteinsandchemicalsindocumentsandgeneratesagraphicalrepresentationdisplayinginterac-tionsbetweenentitiesandadditionaldetailsaboutthem.Thesecondproposedresearchdirectionwasinteractivityanduserin-terfaces.Thisdirectionrequiresidentifyingmorepotentialusergroupsandtasks.Progresswasmadeindevelopingtoolsfordatabasecura-496MININGTEXTDATAtion[223,150];however,moreresearchisstillneededinidentifyingusergroupsandtasksinparallelwithtooldevelopmentforknownusers.Theauthorsnotedthatsuccessinthethirddirection,toolscala-bilityandintegrationintoworkﬂows,dependsoncommonlyacceptedandusedstablestandardsfortheexchangeandintegrationofinfor-mationderivedfromtextmining.Despitemajorinitiativestowardsseamlessdataexchangeandinteroperability(e.g.,thei2b2hive[80]ortheeMERGENetwork[51])andpilotapplicationsbeingincludedintoworkﬂows(e.g.,NLMInfoBot[46]),thisdirectionremainschallenging.Theeﬀortsneededtomakeasystemscalableandcapableofhandlingreal-timeworkﬂowinteractionswererecentlydemonstratedintheIBMDeepQAproject[53].Thelastdirection,developmentoftextminingresources,isanongoingactivity.Existinglexicons,standards,andontologiesaremaintained—andnewresourcesandcommunity-wideevaluationsemerge—followingtheprogressinbiologyandmedicine.AcknowledgementsM.S.S.wassupportedinpartbyanappointmenttotheNLMRe-searchParticipationProgramsponsoredbytheU.S.NationalLibraryofMedicineandadministeredbytheOakRidgeInstituteforScienceandEducation.References[1]A.B.AbachaandP.Zweigenbaum.Ahybridapproachfortheex-tractionofsemanticrelationsfromMEDLINEabstracts.InA.Gel-bukh,editor,ComputationalLinguisticsandIntelligentTextPro-cessing,volume6609ofLectureNotesinComputerScience,pages139–150.SpringerBerlin/Heidelberg,2011.[2]A.B.AbachaandP.Zweigenbaum.Medicalentityrecognition:Acomparisonofsemanticandstatisticalmethods.InProceedingsofBioNLP2011Workshop,pages56–64,2011.[3]S.Afantenos,V.Karkaletsis,andP.Stamatopoulos.Summariza-tionfrommedicaldocuments:Asurvey.ArtiﬁcialIntelligenceinMedicine,33(2):157–177,2005.[4]S.AgarwalandH.Yu.Automaticallyclassifyingsentencesinfull-textbiomedicalarticlesintointroduction,methods,resultsanddiscussion.Bioinformatics,25(23):3174–3180,2009.[5]S.AgarwalandH.Yu.FigSum:Automaticallygeneratingstruc-turedtextsummariesforﬁguresinbiomedicalliterature.InAMIABiomedicalTextMining:ASurveyofRecentProgress497AnnualSymposiumProceedings,pages6–10,2009.[6]R.Agrawal,H.Mannila,R.Srikant,H.Toivonen,andA.I.Verkamo.Fastdiscoveryofassociationrules.InU.M.Fayyad,G.Piatetsky-Shapiro,P.Smyth,andR.Uthurusamy,editors,Ad-vancesinKnowledgeDiscoveryandDataMining,pages307–328.AmericanAssociationforArtiﬁcialIntelligence,1996.[7]A.Airola,S.Pyysalo,J.Bjorne,T.Pahikkala,F.Ginter,andT.Salakoski.All-pathsgraphkernelforprotein-proteininteractionextractionwithevaluationofcross-corpuslearning.BMCBioin-formatics,9(Suppl11):S2,2008.[8]B.Alex,B.Haddow,andC.Grover.Recognisingnestednamedentitiesinbiomedicaltext.InProceedingsoftheWorkshoponBioNLP2007:Biological,Translational,andClinicalLanguageProcessing,pages65–72,2007.[9]R.B.Altman,C.M.Bergman,J.Blake,C.Blaschke,A.Cohen,F.Gannon,L.Grivell,U.Hahn,W.Hersh,L.Hirschman,L.J.Jensen,M.Krallinger,B.Mons,S.I.O’Donoghue,M.C.Peitsch,D.Rebholz-Schuhmann,H.Shatkay,andA.Valencia.Textminingforbiology-thewayforward:opinionsfromleadingscientists.GenomeBiology,9(Suppl2):S7,2008.[10]S.F.Altschul,W.Gish,W.Miller,E.W.Myers,andD.J.Lipman.Basiclocalalignmentsearchtool.JournalofMolecularBiology,215(3):403–410,1990.[11]S.F.Altschul,T.L.Madden,A.A.Sch¨aﬀer,J.Zhang,Z.Zhang,W.Miller,andD.J.Lipman.GappedBLASTandPSI-BLAST:Anewgenerationofproteindatabasesearchprograms.NucleicAcidsResearch,25(17):3389–3402,1997.[12]S.AnaniadouandJ.Mcnaught.TextMiningforBiologyAndBiomedicine.ArtechHouse,Inc.,2005.[13]S.Ananiadou,S.Pyysalo,J.Tsujii,andD.B.Kell.Eventextrac-tionforsystemsbiologybytextminingtheliterature.TrendsinBiotechnology,28(7):381–390,2010.[14]A.R.AronsonandF.-M.Lang.AnoverviewofMetaMap:his-toricalperspectiveandrecentadvances.JournaloftheAmericanMedicalInformaticsAssociation,17(3):229–236,2010.[15]R.ArtsteinandM.Poesio.Inter-coderagreementforcomputa-tionallinguistics.ComputationalLinguistics,34(4):555–596,2008.[16]M.Ashburner,C.A.Ball,J.A.Blake,D.Botstein,H.Butler,J.M.Cheryy,A.P.Davis,K.Dolinski,S.S.Dwight,J.T.Eppig,M.A.Harris,D.P.Hill,L.Issel-Tarver,A.Kasarskis,S.Lewis,498MININGTEXTDATAJ.C.Matese,J.E.Richardson,M.Ringwald,G.M.Rubin,andG.Sherlock.Geneontology:Toolfortheuniﬁcationofbiology.NatureGenetics,25(1):25–29,2000.[17]S.J.AthenikosandH.Han.Biomedicalquestionanswering:Asurvey.ComputerMethodsandProgramsinBiomedicine,99(1):1–24,2010.[18]B.Benton,L.Ungar,S.Hill,S.Hennessy,J.Mao,A.Chung,C.E.Leonard,andJ.H.Holmes.Identifyingpotentialadverseeﬀectsusingtheweb:Anewapproachtomedicalhypothesisgeneration.InPress,2011.[19]BioNLP.http://www.bionlp.org/.[20]J.Bj¨orne,F.Ginter,S.Pyysalo,J.Tsujii,andT.Salakoski.ComplexeventextractionatPubMedscale.Bioinformatics,26(12):i382–i390,2010.[21]J.Bj¨orne,J.Heimonen,F.Ginter,A.Airola,T.Pahikkala,andT.Salakoski.Extractingcomplexbiologicaleventswithrichgraph-basedfeaturesets.InProceedingsoftheWorkshoponCurrentTrendsinBiomedicalNaturalLanguageProcessing:SharedTask,pages10–18,2009.[22]K.W.Boyack,D.Newman,R.J.Duhon,R.Klavans,M.Patek,J.R.Biberstine,B.Schijvenaars,A.Skupin,N.Ma,andK.Borner.Clusteringmorethantwomillionbiomedicalpublications:Com-paringtheaccuraciesofninetext-basedsimilarityapproaches.PLoSONE,6(3):e18029,2011.[23]M.Bundschus,M.Dejori,M.Stetter,V.Tresp,andH.-P.Kriegel.Extractionofsemanticbiomedicalrelationsfromtextusingcon-ditionalrandomﬁelds.BMCBioinformatics,9(1):207,2008.[24]E.Buyko,E.Faessler,J.Wermter,andU.Hahn.Eventextractionfromtrimmeddependencygraphs.InProceedingsoftheWorkshoponCurrentTrendsinBiomedicalNaturalLanguageProcessing:SharedTask,pages19–27,2009.[25]Y.CaiandX.Cheng.Biomedicalnamedentityrecognitionwithtri-traininglearning.InProceedingsofthe20092ndInternationalConferenceonBiomedicalEngineeringandInformatics,pages1–5,2009.[26]CALBCchallenge.http://www.calbc.eu/.[27]Y.Cao,F.Liu,P.Simpson,L.Antieau,A.Bennett,J.J.Cimino,J.Ely,andH.Yu.AskHERMES:Anonlinequestionansweringsystemforcomplexclinicalquestions.JournalofBiomedicalIn-formatics,44(2):277–288,2011.BiomedicalTextMining:ASurveyofRecentProgress499[28]D.T.-H.Chang,Y.-Z.Weng,J.-H.Lin,M.-J.Hwang,andY.-J.Oyang.Protemot:Predictionofproteinbindingsiteswithau-tomaticallyextractedgeometricaltemplates.NucleicAcidsRe-search,34(suppl2):W303–W309,2006.[29]W.W.ChapmanandK.B.Cohen.Currentissuesinbiomedicaltextminingandnaturallanguageprocessing.JournalofBiomed-icalInformatics,42(5):757–759,2009.[30]E.S.Chen,G.Hripcsak,H.Xu,M.Markatou,andC.Friedman.Automatedacquisitionofdisease-drugknowledgefrombiomedicalandclinicaldocuments:Aninitialstudy.JournaloftheAmericanMedicalInformaticsAssociation,15(1):87–98,2008.[31]H.W.Chun,Y.Tsuruoka,J.D.Kim,R.Shiba,N.Nagata,T.Hishiki,andJ.Tsujii.Extractionofgene-diseaserelationsfromMEDLINEusingdomaindictionariesandmachinelearning.InPaciﬁcSymposiumonBiocomputing,pages4–15,2006.[32]A.M.CohenandW.R.Hersh.Asurveyofcurrentworkinbiomed-icaltextmining.BrieﬁngsinBioinformatics,6(1):57–71,2005.[33]K.B.CohenandL.Hunter.Gettingstartedintextmining.PLoSComputationalBiology,4(1):e20,2008.[34]K.B.Cohen,K.Verspoor,H.L.Johnson,C.Roeder,P.V.Ogren,W.A.Baumgartner,Jr.,E.White,H.Tipney,andL.Hunter.High-precisionbiologicaleventextractionwithaconceptrecog-nizer.InProceedingsoftheWorkshoponCurrentTrendsinBiomedicalNaturalLanguageProcessing:SharedTask,pages50–58,2009.[35]T.Cohen,G.K.Whitﬁeld,R.W.Schvaneveldt,K.Mukund,andT.Rindﬂesch.EpiphaNet:Aninteractivetooltosupportbiomedi-caldiscoveries.JournalofBiomedicalDiscoveryandCollaboration,5:21–49,2010.[36]N.Collier,C.Nobata,andJ.-i.Tsujii.ExtractingthenamesofgenesandgeneproductswithahiddenMarkovmodel.InPro-ceedingsofthe18thConferenceonComputationalLinguistics-Volume1,pages201–207,2000.[37]P.CorbettandA.Copestake.Cascadedclassiﬁersforconﬁdence-basedchemicalnamedentityrecognition.BMCBioinformatics,9(Suppl11):S4,2008.[38]CRAFT:Thecoloradorichlyannotatedfulltextcorpus.http://bionlp-corpora.sourceforge.net/CRAFT/index.shtml.[39]H.Cunningham,D.Maynard,K.Bontcheva,V.Tablan,N.Aswani,I.Roberts,G.Gorrell,A.Funk,A.Roberts,D.Daml-500MININGTEXTDATAjanovic,T.Heitz,M.A.Greenwood,H.Saggion,J.Petrak,Y.Li,andW.Peters.TextProcessingwithGATE(Version6).GATE,2011.[40]T.Delbecque,P.Jacquemart,andP.Zweigenbaum.IndexingUMLSsemantictypesformedicalquestion-answering.InR.En-gelbrecht,A.Geissbuhler,C.Lovis,andG.Mihalas,editors,Con-nectingMedicalInformaticsandBio-Informatics:ProceedingsofMIE2005-TheXIXthInternationalCongressoftheEuropeanFederationforMedicalInformatics,pages805–810.IOSPress,2005.[41]D.Demner-Fushman,W.W.Chapman,andC.J.McDonald.Whatcannaturallanguageprocessingdoforclinicaldecisionsup-port?JournalofBiomedicalInformatics,42(5):760–772,2009.[42]D.Demner-Fushman,B.Few,S.E.Hauser,andG.Thoma.Au-tomaticallyidentifyinghealthoutcomeinformationinMEDLINErecords.JournaloftheAmericanMedicalInformaticsAssociation,13(1):52–60,2006.[43]D.Demner-FushmanandJ.Lin.Knowledgeexractionforclini-calquestionanswering:Preliminaryresults.InProceedingsoftheAAAI2005WorkshoponQuestionAnseringinRestrictedDo-mains,2005.[44]D.Demner-FushmanandJ.Lin.Answerextraction,semanticclus-tering,andextractivesummarizationforclinicalquestionanswer-ing.InProceedingsofthe21stInternationalConferenceonCom-putationalLinguisticsandthe44thAnnualMeetingoftheAssoci-ationforComputationalLinguistics,pages841–848,2006.[45]D.Demner-FushmanandJ.Lin.Answeringclinicalquestionswithknowledge-basedandstatisticaltechniques.ComputationalLin-guistics,33(1):63–103,2007.[46]D.Demner-Fushman,C.Seckman,C.Fisher,S.E.Hauser,J.Clay-ton,andG.R..Thoma.Aprototypesystemtosupportevidence-basedpractice.InAMIAAnnualSymposiumProceedings,pages151–155,2008.[47]S.Dipper,M.G¨otze,andM.Stede.Simpleannotationtoolsforcomplexannotationtasks:Anevaluation.InProceedingsoftheLRECWorkshoponXML-BasedRichlyAnnotatedCorpora,pages54–62,2004.[48]eHOST:Theextensiblehumanoraclesuiteoftools.http://code.google.com/p/ehost/.BiomedicalTextMining:ASurveyofRecentProgress501[49]N.Elhadad,M.-Y.Kan,J.L.Klavans,andK.R.McKeown.Cus-tomizationinauniﬁedframeworkforsummarizingmedicalliter-ature.ArtiﬁcialIntelligenceinMedicine,33(2):179–198,2005.[50]J.W.Ely,J.A.Osheroﬀ,M.H.Ebell,M.L.Chambliss,D.C.Vinson,J.J.Stevermer,andE.A.Pifer.Obstaclestoansweringdoctors’questionsaboutpatientcarewithevidence:qualitativestudy.BritishMedicalJournal,324(7339):710,2002.[51]Electronicmedicalrecordsandgenomics.https://www.mc.vanderbilt.edu/victr/dcc/projects/acc/index.php/Main_Page.[52]Europeanbioinformaticsinstitute.http://www.ebi.ac.uk/.[53]D.Ferrucci,E.Brown,J.Chu-Carroll,J.Fan,D.Gondek,A.A.Kalyanpur,A.Lally,J.W.Murdock,E.Nyberg,J.Prager,N.Schlaefer,andC.Welty.BuildingWatson:AnoverviewoftheDeepQAproject.AIMagazine,31(3):59–79,2010.[54]D.FerrucciandA.Lally.UIMA:Anarchitecturalapproachtounstructuredinformationprocessinginthecorporateresearchen-vironment.NaturalLanguageEngineering,10(3-4):327–348,2004.[55]J.Finkel,S.Dingare,H.Nguyen,M.Nissim,C.Manning,andG.Sinclair.Exploitingcontextforbiomedicalentityrecognition:Fromsyntaxtotheweb.InProceedingsoftheInternationalJointWorkshoponNaturalLanguageProcessinginBiomedicineanditsApplications,pages88–91,2004.[56]M.Fiszman,D.Demner-Fushman,H.Kilicoglu,andT.C.Rind-ﬂesch.AutomaticsummarizationofMEDLINEcitationsforevidence-basedmedicaltreatment:Atopic-orientedevaluation.JournalofBiomedicalInformatics,42(5):801–813,2009.[57]K.Franz´en,G.Eriksson,F.Olsson,L.Asker,P.Lid´en,andJ.C¨oster.Proteinnamesandhowtoﬁndthem.InternationalJournalofMedicalInformatics,67(1-3):49–61,2002.[58]C.Friedman,G.Hripcsak,L.Shagina,andH.Liu.Arepresentinginformationinpatientreportsusingnaturallanguageprocessingandtheextensiblemarkuplanguage.JournaloftheAmericanMedicalInformaticsAssociation,6:76–87,1999.[59]K.Fukuda,A.Tamura,T.Tsunoda,andT.Takagi.Towardinfor-mationextraction:Identifyingproteinnamesfrombiologicalpa-pers.InPaciﬁcSymposiumonBiocomputing,pages707–718,1998.[60]K.Fundel,R.K¨uﬀner,andR.Zimmer.RelEx—relationextrac-tionusingdependencyparsetrees.Bioinformatics,23(3):365–371,2007.502MININGTEXTDATA[61]R.Gaizauskas,G.Demetriou,P.J.Artymiuk,andP.Willett.Pro-teinstructuresandinformationextractionfrombiologicaltexts:ThePASTAsystem.Bioinformatics,19(1):135–143,2003.[62]B.Gu.RecognizingnestednamedentitiesinGENIAcorpus.InProceedingsoftheWorkshoponLinkingNaturalLanguagePro-cessingandBiology:TowardsDeeperBiologicalLiteratureAnaly-sis,pages112–113,2006.[63]J.Hakenberg,S.Bickel,C.Plake,U.Brefeld,H.Zahn,L.Faulstich,U.Leser,andT.Scheﬀer.Systematicfeatureevaluationforgenenamerecognition.BMCBioinformatics,6(Suppl1):S9,2005.[64]J.Hakenberg,C.Plake,andU.Leser.LLL’05challenge:Genicinteractionextraction-identiﬁcationoflanguagepatternsbasedonalignmentandﬁnitestateautomata.InInProceedingsoftheICML2005WorkshoponLearningLanguageinLogic,pages38–45,2005.[65]W.Hersh.InformationRetrieval:AHealthandBiomedicalPer-spective.HealthInformatics.Springer,thirdedition,2005.[66]HighWirepress.http://highwire.org/.[67]L.Hirschman,M.Colosimo,A.Morgan,andA.Yeh.OverviewofBioCreAtIvEtask1B:Normalizedgenelists.BMCBioinformatics,6(Suppl1):S11,2005.[68]L.Hirschman,A.A.Morgan,andA.S.Yeh.Rutabagabyanyothername:Extractingbiologicalnames.JournalofBiomedicalInformatics,35(4):247–259,2002.[69]L.Hirschman,A.Yeh,C.Blaschke,andA.Valencia.OverviewofBioCreAtIvE:Criticalassessmentofinformationextractionforbiology.BMCBioinformatics,6(Suppl1):S1,2005.[70]W.-J.HouandH.-H.Chen.Enhancingperformanceofproteinnamerecognizersusingcollocation.InProceedingsoftheACL2003WorkshoponNaturalLanguageProcessinginBiomedicine-Volume13,pages25–32,2003.[71]D.Hristovski,C.Friedman,T.C.Rindﬂesch,andB.Peterlin.Exploitingsemanticrelationsforliterature-baseddiscovery.InAMIAAnualSymposiumProceedings,pages349–353,2006.[72]D.Hristovski,B.Peterlin,S.Dˇzeroski,andJ.Stare.Literature-baseddiscoverysupportsystemanditsapplicationtodiseasegeneidentiﬁcation.InS.DˇzeroskiandL.Todorovski,editors,Compu-tationalDiscoveryofScientiﬁcKnowledge,volume4660ofLectureNotesinComputerScience,pages307–326.SpringerBerlin/Hei-delberg,2007.BiomedicalTextMining:ASurveyofRecentProgress503[73]D.Hristovski,B.Peterlin,J.A.Mitchell,andS.M.Humphrey.Improvingliterature-baseddiscoverysupportbygeneticknowledgeintegration.StudiesinHealthTechnogyandInformatics,95:68–73,2003.[74]D.Hristovski,B.Peterlin,J.A.Mitchell,andS.M.Humphrey.Us-ingliterature-baseddiscoverytoidentifydiseasecandidategenes.InternationalJournalofMedicalInformatics,74(2-4):289–298,2005.[75]D.Hristovski,J.Stare,B.Peterlin,andS.Dˇzeroski.SupportingdiscoveryinmedicinebyassociationrulemininginMEDLINEandUMLS.InV.L.Patel,R.Rogers,andR.Haux,editors,Proceedingsofthe10thWorldCongressonMedicalInformatics,volume84/2001ofStudiesinHealthTechnologyandInformatics,pages1344–1348.IOSPress,2001.[76]X.Hu,X.Zhang,I.Yoo,X.Wang,andJ.Feng.Mininghiddenconnectionsamongbiomedicalconceptsfromdisjointbiomedicalliteraturesetsthroughsemantic-basedassociationrule.Interna-tionalJournalofIntelligentSystems,25(2):207–223,2010.[77]X.Huang,J.Lin,andD.Demner-Fushman.EvaluationofPICOasaknowledgerepresentationforclinicalquestions.InAMIAAnnualSymposiumProceedings,pages359–363,2006.[78]K.Humphreys,G.Demetriou,andR.Gaizauskas.Twoapplica-tionsofinformationextractiontobiologicalscienceyournalarti-cles:Enzymeinteractionsandproteinstructures.InPaciﬁcSym-posiumonBiocomputing,pages502–513,2000.[79]L.Hunter,Z.Lu,J.Firby,W.Baumgartner,H.Johnson,P.Ogren,andK.B.Cohen.OpenDMAP:Anopensource,ontology-drivenconceptanalysisengine,withapplicationstocapturingknowledgeregardingproteintransport,proteininteractionsandcell-type-speciﬁcgeneexpression.BMCBioinformatics,9(1):78,2008.[80]Informaticsforintegratingbiologyandthebedside.https://www.i2b2.org/resrcs/hive.html.[81]P.JacqumartandP.Zweigenbaum.Towardsamedicalquestion-answeringsystem:Afeasibilitystudy.StudiesinHealthTechnologyandInformatics,95:463–468,2003.[82]R.Jelier,G.Jenster,L.Dorssers,B.Wouters,P.Hendriksen,B.Mons,R.Delwel,andJ.Kors.Text-derivedconceptproﬁlessupportassessmentofDNAmicroarraydataforacutemyeloidleukemiaandforandrogenreceptorstimulation.BMCBioinfor-matics,8(1):14,2007.504MININGTEXTDATA[83]R.Kabiljo,A.B.Clegg,andA.J.Shepherd.Arealisticassessmentofmethodsforextractinggene/proteininteractionsfromfreetext.BMCBioinformatics,10:233,2008.[84]J.Kalpathy-Cramer,H.M¨uler,S.Bedrick,I.Eggel,A.deHerrera,andT.Tsikrika.TheCLEF2011medicalimageretrievalandclassiﬁcationtasks.InCLEF2011WorkingNotes,2011.[85]H.KarstenandH.Suominen.Miningofclinicalandbiomedi-caltextanddata.InternationalJournalofMedicalInformatics,78(12):786–787,2009.[86]J.Kazama,T.Makino,Y.Ohta,andJ.Tsujii.Tuningsupportvectormachinesforbiomedicalnamedentityrecognition.InPro-ceedingsoftheACL-02WorkshoponNaturalLanguageProcessingintheBiomedicalDomain-Volume3,pages1–8,2002.[87]H.KilicogluandS.Bergler.Syntacticdependencybasedheuristicsforbiologicaleventextraction.InProceedingsoftheWorkshoponCurrentTrendsinBiomedicalNaturalLanguageProcessing:SharedTask,pages119–127,2009.[88]J.-D.Kim,T.Ohta,N.Nguyen,S.Pyysalo,R.Bossy,andJ.Tsu-jii.OverviewofBioNLPsharedtask2011.InProceedingsoftheBioNLPSharedTask2011Workshop,pages1–6,2011.[89]J.-D.Kim,T.Ohta,S.Pyysalo,Y.Kano,andJ.Tsujii.OverviewofBioNLP’09sharedtaskoneventextraction.InProceedingsoftheWorkshoponCurrentTrendsinBiomedicalNaturalLanguageProcessing:SharedTask,pages1–9,2009.[90]J.-D.Kim,T.Ohta,Y.Tateisi,andJ.Tsujii.GENIAcorpus—asemanticallyannotatedcorpusforbio-textmining.Bioinformatics,19(Suppl1):i180–i182,2003.[91]J.-D.Kim,T.Ohta,Y.Tsuruoka,Y.Tateisi,andN.Collier.In-troductiontothebio-entityrecognitiontaskatJNLPBA.InPro-ceedingsoftheInternationalJointWorkshoponNaturalLanguageProcessinginBiomedicineanditsApplications,pages70–75,2004.[92]S.Kim,J.Yoon,andJ.Yang.Kernelapproachesforgenicinter-actionextraction.Bioinformatics,24(1):118–126,2008.[93]S.Kinoshita,K.B.Cohen,P.Ogren,andL.Hunter.BioCreAtIvEtask1A:Entityidentiﬁcationwithastochastictagger.BMCBioin-formatics,6(Suppl1):S4,2005.[94]J.Kontos,J.Lekakis,I.Malagardi,andJ.Peros.Grammarsforquestionansweringsystemsbasedonintelligenttextmininginbiomedicine.InProceedingsofthe7thHellenicEuropeoanCon-ferenceonComputerMathematicsanditsApplications,2005.BiomedicalTextMining:ASurveyofRecentProgress505[95]J.Kontos,I.Malagardi,andJ.Peros.QuestionansweringandrhetoricanalysisofbiomedicaltextsintheAROMAsystem.InProceedingsofthe7thHellenicEuropeoanConferenceonCom-puterMathematicsanditsApplications,2005.[96]M.Krallinger,F.Leitner,C.Rodriguez-Penagos,andA.Valencia.Overviewoftheprotein-proteininteractionannotationextractiontaskofBioCreAtIveII.GenomeBiology,9(Suppl2):S4,2008.[97]M.Krallinger,A.Morgan,L.Smith,F.Leitner,L.Tanabe,J.Wilbur,L.Hirschman,andA.Valencia.Evaluationoftext-miningsystemsforbiology:OverviewofthesecondBioCreAtIvEcommunitychallenge.GenomeBiology,9(Suppl2):S1,2008.[98]M.Krallinger,A.Valencia,andL.Hirschman.Linkinggenestoliterature:textmining,informationextraction,andretrievalap-plicationsforbiology.Genomebiology,9(Suppl2):S8,2008.[99]M.KrauthammerandG.Nenadic.Termidentiﬁcationinthebiomedicalliterature.JournalofBiomedicalInformatics,37(6):512–526,2004.[100]M.Krauthammer,A.Rzhetsky,P.Morozov,andC.Friedman.UsingBLASTforidentifyinggeneandproteinnamesinjournalarticles.Gene,259(1-2):245–252,2000.[101]R.LeamanandG.Gonzalez.BANNER:Anexecutablesurveyofadvancesinbiomedicalnamedentityrecognition.InPaciﬁcSymposiumonBiocomputing,pages652–663,2008.[102]L.C.Lee,F.Horn,andF.E.Cohen.Automaticextractionofproteinpointmutationsusingagraphbigramassociation.PLoSComputationalBiology,3(2):e16,2007.[103]G.Leech.Addinglinguisticannotation.InM.Wynne,editor,DevelopingLinguisticCorpora:AGuidetoGoodPractice,pages17–29.OxbowBooks,2005.[104]U.LeserandJ.Hakenberg.Whatmakesagenename?namedentityrecognitioninthebiomedicalliterature.BrieﬁngsinBioin-formatics,6(4):357–369,2005.[105]M.Liberman,M.Mandel,andGlaxoSmithKlinePharmaceuticalsR&D.PennBioIECYP1.0,2008.[106]M.Liberman,M.Mandel,andP.White.PennBioIEOncology1.0,2008.[107]C.-Y.Lin.ROUGE:Apackageforautomaticevaluationofsum-maries.InProceedingsoftheWorkshoponTextSummarizationBranchesOut,2004.506MININGTEXTDATA[108]C.-Y.Lin,G.Cao,J.Gao,andJ.-Y.Nie.Aninformation-theoreticapproachtoautomaticevaluationofsummaries.InProceedingsoftheHumanLanguageTechnologyConferenceoftheNorthAmer-icanChapteroftheAssociationofComputationalLinguistics,pages463–470,2006.[109]J.LinandD.Demner-Fushman.Theroleofknowledgeincon-ceptualretrieval:Astudyinthedomainofclinicalmedicine.InProceedingsofthe29thAnnualInternationalACMSIGIRCon-ferenceonResearchandDevelopmentinInformationRetrieval,pages99–106,2006.[110]R.T.K.Lin,J.Liang-TeChiu,H.-J.Dai,M.-Y.Day,R.T.-H.Tsai,andW.-L.Hsu.Biologicalquestionansweringwithsyntacticandsemanticfeaturematchingandanimprovedmeanreciprocalrankingmeasurement.InProceedingsofthe2008IEEEInter-nationalConferenceonInformationReuseandIntegration,pages184–189,2008.[111]D.A.Lindberg,B.L.Humphreys,andA.T.McCray.Theuniﬁedmedicallanguagesystem.MethodsofInformationinMedicine,32(4):281–291,1993.[112]X.Ling,J.Jiang,X.He,Q.Mei,C.Zhai,andB.Schatz.Gen-eratinggenesummariesfrombiomedicalliterature:Astudyofsemi-structuredsummarization.InformationProcessing&Man-agement,43(6):1777–1791,2007.[113]Y.Lussier,T.Borlawsky,D.Rappaport,Y.Liu,andC.Friedman.PheneGo:Assigningphenotypiccontexttogeneontologyannota-tionswithnaturallanguageprocessing.InPaciﬁcSymposiumonBiocomputing,pages64–75,2006.[114]Y.Lussier,T.Borlawsky,D.Rappaport,Y.Liu,andC.Friedman.PhenoGo:AssigningphenotypiccontexttoGeneOntologyanno-tationswithnaturallanguageprocessing.InPaciﬁcSymposiumonBiocomputing,pages64–75,2006.[115]D.Maynard.D1.2.2.1.3benchmarkingofannotationtools,2007.http://knowledgeweb.semanticweb.org/semanticportal/deliverables/D1.2.2.1.3.pdf.[116]K.R.McKeown,S.-F.Chang,J.Cimino,S.K.Feiner,C.Fried-man,L.Gravano,V.Hatzivassiloglou,S.Johnson,D.A.Jordan,J.L.Klavans,A.Kushniruk,V.Patel,andS.Teufel.PERSIVAL,asystemforpersonalizedsearchandsummarizationovermultimediahealthcareinformation.InProceedingsofthe1stACM/IEEE-CSJointConferenceonDigitalLibraries,pages331–340,2001.BiomedicalTextMining:ASurveyofRecentProgress507[117]S.MikaandB.Rost.Proteinnamespreciselypeeledoﬀfreetext.Bioinformatics,20(suppl1):i241–i247,2004.[118]T.Mitsumori,S.Fation,M.Murata,K.Doi,andH.Doi.Gene/proteinnamerecognitionbasedonsupportvectormachineusingdictionaryasfeatures.BMCBioinformatics,6(Suppl1):S8,2005.[119]M.Miwa,R.Sætre,andJ.-D.Kim.Eventextractionwithcomplexeventclassiﬁcationusingrichfeatures.JournalofBioinformaticsandComputationalBiology,8(1):131–146,2010.[120]M.Miwa,R.Sætre,Y.Miyao,andJ.Tsujii.Protein-proteininter-actionextractionbyleveragingmultiplekernelsandparsers.In-ternationalJournalofMedicalInformatics,78(12):e39–e46,2009.[121]Y.Miyao,T.Ohta,K.Masuda,Y.Tsuruoka,K.Yoshida,T.Ni-nomiya,andJ.Tsujii.Semanticretrievalfortheaccurateidentiﬁ-cationofrelationalconceptsinmassivetextbases.InProceedingsofthe21stInternationalConferenceonComputationalLinguisticsandthe44thAnnualMeetingoftheAssociationforComputationalLinguistics,pages1017–1024,2006.[122]Y.Miyao,K.Sagae,R.Sætre,T.Matsuzaki,andJ.Tsujii.Evalu-atingcontributionsofnaturallanguageparserstoprotein-proteininteractionextraction.Bioinformatics,25(3):394–400,2009.[123]L.P.Morales,A.D.Esteban,andP.Gerv´as.Concept-graphbasedbiomedicalautomaticsummarizationusingontologies.InProceed-ingsofthe3rdTextgraphsWorkshoponGraph-BasedAlgorithmsforNaturalLanguageProcessing,pages53–56,2008.[124]A.Morgan,L.Hirschman,A.Yeh,andM.Colosimo.GenenameextractionusingFlyBaseresources.InProceedingsoftheACL2003WorkshoponNaturalLanguageProcessinginBiomedicine-Volume13,pages1–8,2003.[125]A.A.Morgan,L.Hirschman,M.Colosimo,A.S.Yeh,andJ.B.Colombe.Genenameidentiﬁcationandnormalizationusingamodelorganismdatabase.JournalofBiomedicalInformatics,37(6):396–410,2004.[126]A.A.Morgan,Z.Lu,X.Want,A.M.Cohen,J.Fluck,P.Ruch,A.Divoli,K.Fundel,R.Leaman,J.Hakenberg,C.Sun,H.-h.Liu,R.Torres,M.Krauthammer,W.W.Lau,H.Liu,C.-N.Hsu,M.Scheumie,K.B.Cohen,andL.Hirschman.OverviewofBioCre-AtIvEII:Genenormalization.GenomeBiology,9(Suppl2):S3,2008.508MININGTEXTDATA[127]H.M¨uller,J.Kalpathy-Cramer,I.Eggel,S.Bedrick,C.E.CharlesE.Kahn,Jr.,andW.Hersh.Overviewoftheclef2010medicalimageretrievaltrack.InWorkingNotesofCLEF2010,2010.[128]M.Narayanaswamy,K.E.Ravikumar,andK.Vijay-Shanker.Abiologicalnamedentityrecognizer.InPaciﬁcSymposiumonBio-computing,pages427–438,2003.[129]Nationalcenterforbiomedicalontology.http://www.bioontology.org/.[130]NCBOBioPortal.http://bioportal.bioontology.org/.[131]NationalCenterforBiotechnologyInformation.EntrezPro-grammingUtilitiesHelp,2010.http://www.ncbi.nlm.nih.gov/books/NBK25501/.[132]Nationalcentrefortextmining.http://www.nactem.ac.uk/.[133]C.N´edellec.Learninglanguageinlogic-genicinteractionextrac-tionchallenge.InInProceedingsoftheICML2005WorkshoponLearningLanguageinLogic,pages31–37,2005.[134]Neuroscienceinformationframework.http://neuinfo.org/.[135]Y.NiuandG.Hirst.Analysisandsemanticclassesinmedicaltextforquestionanswering.InProceedingsoftheACL2004WorkshoponQuestionAnsweringinRestrictedDomains,2004.[136]Y.Niu,G.Hirst,G.McArthur,andR.-G.P.Answeringclinicalquestionswithroleidentiﬁcation.InProceedingsoftheACL2003WorkshoponNaturalLanguageProcessinginBiomedicine,pages73–80,2003.[137]Y.Niu,X.Zhu,andG.Hirst.Usingoutcomepolarityinsen-tenceextractionformedicalquestion-answering.InAMIAAnualSymposiumProceedings,pages599–603,2006.[138]Y.Niu,X.Zhu,J.Li,andG.Hirst.Analysisofpolarityinfor-mationinmedicaltext.InAMIAAnualSymposiumProceedings,pages570–574,2005.[139]C.Nobata,N.Collier,andJ.-i.Tsujii.Automatictermidenti-ﬁcationandclassiﬁcationinbiologytexts.InProceedingsoftheNaturalLanguagePaciﬁcRimSymposium,pages369–374,1999.[140]P.V.Ogren.Knowtator:Aprot´eg´eplug-inforannotatedcorpusconstruction.InProceedingsofthe2006ConferenceoftheNorthAmericanChapteroftheAssociationforComputationalLinguis-ticsonHumanLanguageTechnology,pages273–275,2006.[141]D.Okanohara,Y.Miyao,Y.Tsuruoka,andJ.Tsujii.Improvingthescalabilityofsemi-MarkovconditionalrandomﬁeldsfornamedBiomedicalTextMining:ASurveyofRecentProgress509entityrecognition.InProceedingsofthe21stInternationalConfer-enceonComputationalLinguisticsandthe44thAnnualMeetingoftheAssociationforComputationalLinguistics,pages465–472,2006.[142]F.Olsson,G.Eriksson,K.Franz´en,L.Asker,andP.Lid´en.No-tionsofcorrectnesswhenevaluatingproteinnametaggers.InPro-ceedingsofthe19thInternationalConferenceonComputationalLinguistics-Volume1,pages1–7,2002.[143]Openbiologicalandbiomedicalontologies.http://www.obofoundry.org/.[144]ORBITproject.http://orbit.nlm.nih.gov/.[145]A.¨Ozg¨ur,T.Vu,G.Erkan,andD.R.Radev.Identifyinggene-diseaseassociationsusingcentralityonaliteratureminedgene-interactionnetwork.Bioinformatics,24(13):i277–i285,2008.[146]A.¨Ozg¨ur,Z.Xiang,D.R.Radev,andY.He.Literature-baseddis-coveryofIFN-γandvaccine-mediatedgeneinteractionnetworks.JournalofBiomedicine&Biotechnology,page426479,2010.[147]E.Paﬁlis,S.O’Donoghue,L.Jensen,H.Horn,M.Kuhn,N.Brown,andR.Schneider.Reﬂect-augmentedbrowsingforthelifescien-tist.NatureBiotechnology,27:508–510,2009.[148]S.Pakhomov.Semi-supervisedmaximumentropybasedapproachtoacronymandabbreviationnormalizationinmedicaltexts.InProceedingsofthe40thAnnualMeetingonAssociationforCom-putationalLinguistics,pages160–167,2002.[149]M.Palakal,J.Bright,T.Sebastian,andS.Hartanto.Acompara-tivestudyofcellsininﬂammation,EAEandMSusingbiomedicalliteraturedatamining.JournalofBiomedicalScience,14(1):67–85,2007.[150]V.Petri,M.Shimoyama,G.Hayman,J.Smith,M.Tutaj,J.dePons,M.Dwinell,D.Munzenmaier,S.Twigger,andH.Ja-cob.Theratgenomedatabasepathwayportal.Database,2011.[151]I.Petriˇc,U.Tanja,B.Cestnik,andM.Macedoni-Lukˇsiˇc.Lit-eratureminingmethodRaJoLinkforuncoveringrelationsbe-tweenbiomedicalconcepts.JournalofBiomedicalInformatics,42(2):219–227,2009.[152]Pharmacogenomicsknowledgebase.http://www.pharmgkb.org/.[153]H.PoonandL.Vanderwende.Jointinferenceforknowledgeex-tractionfrombiomedicalliterature.InHumanLanguageTechnolo-gies:The2010AnnualConferenceoftheNorthAmericanChapter510MININGTEXTDATAoftheAssociationforComputationalLinguistics,pages813–821,2010.[154]PubMedcentralopenaccesssubset.http://www.ncbi.nlm.nih.gov/pmc/tools/openftlist/.[155]S.Pyysalo,A.Airola,J.Heimonen,J.Bjorne,F.Ginter,andT.Salakoski.Comparativeanalysisofﬁveprotein-proteininterac-tioncorpora.BMCBioinformatics,9(Suppl3):S6,2008.[156]S.Pyysalo,F.Ginter,J.Heimonen,J.Bjorne,J.Boberg,J.Jarvi-nen,andT.Salakoski.BioInfer:Acorpusforinformationex-tractioninthebiomedicaldomain.BMCBioinformatics,8(1):50,2007.[157]L.A.RamshawandM.P.Marcus.Textchunkingusingtransformation-basedlearning.In3rdACLSIGDATWorkshoponVeryLargeCorpora,pages82–94,1995.[158]L.H.Reeve,H.Han,andA.D.Brooks.Theuseofdomain-speciﬁcconceptsinbiomedicaltextsummarization.InformationProcessing&Management,43(6):1765–1776,2007.[159]W.S.Richardson,M.C.Wilson,J.Nishikawa,andR.S.Hayward.Thewell-builtclinicalquestion:Akeytoevidence-baseddecisions.ACPJournalClub,123(3):A12–A13,1995.[160]S.Riedel,H.-W.Chun,T.Takagi,andJ.Tsujii.AMarkovlogicapproachtobio-moleculareventextraction.InProceedingsoftheWorkshoponCurrentTrendsinBiomedicalNaturalLanguagePro-cessing:SharedTask,pages41–49,2009.[161]S.RiedelandA.McCallum.Fastandrobustjointmodelsforbiomedicaleventextraction.InProceedingsofthe2011ConferenceonEmpericalMethodsinNaturalLanguageProcessing,pages1–12,2011.[162]F.Rinaldi,J.Dowdall,G.Schneider,andA.Persidis.Answeringquestionsinthegenomicsdomain.InProceedingsoftheACL2004WorkshoponQuestionAnsweringinRestrictedDomains,2005.[163]F.Rinaldi,K.Kaljurand,andR.Saetre.Terminologicalresourcesfortextminingoverbiomedicalscientiﬁcliterature.ArtiﬁcialIn-telligenceinMedicine,52(2):107–114,2011.[164]F.Rinaldi,G.Schneider,K.Kaljurand,M.Hess,C.Andronis,O.Konstandi,andA.Persidis.Miningofrelationsbetweenpro-teinsoverbiomedicalscientiﬁcliteratureusingadeep-linguisticapproach.ArtiﬁcialIntelligenceinMedicine,39(2):127–136,2007.[165]T.C.RindﬂeschandM.Fiszman.Theinteractionofdomainknowledgeandlinguisticstructureinnaturallanguageprocessing:BiomedicalTextMining:ASurveyofRecentProgress511Interpretinghypernymicpropositionsinbiomedicaltext.JournalofBiomedicalInformatics,36(6):462–477,2003.[166]T.C.Rindﬂesch,H.Kilicoglu,M.Fiszman,G.Rosemblat,andD.Shin.SemanticMEDLINE:Anadvancedinformationmanage-mentapplicationforbiomedicine.InformationServices&Use,31:15–21,2011.[167]B.Rink,S.Harabagiu,andK.Roberts.Automaticextractionofrelationsbetweenmedicalconceptsinclinicaltexts.JournaloftheAmericanMedicalInformaticsAssociation,18(5):594–600,2011.[168]A.Roberts,R.Gaizauskas,andM.Hepple.Extractingclinicalrela-tionshipsfrompatientnarratives.InProceedingsoftheWorkshoponCurrentTrendsinBiomedicalNaturalLanguageProcessing,pages10–18,2008.[169]P.Ruch,C.Boyer,C.Chichester,I.Tbahriti,A.Geissb¨uhler,P.Fabry,J.Gobeill,V.Pillet,D.Rebholz-Schuhmann,C.Lovis,andA.-L.Veuthey.Usingargumentationtoextractkeysentencesfrombiomedicalabstracts.InternationalJournalofMedicalIn-formatics,76(2-3):195–200,2007.[170]D.L.Sackett,W.M.C.Rosenberg,J.A.M.Gray,andR.B.Haynes.Evidencebasedmedicine:Whatitisandwhatitisn’t.BritishMedicalJournal,312(7023):71–72,1996.[171]M.Saeed,M.Villarroel,A.Reisner,G.Cliﬀord,L.Lehman,G.Moody,T.Heldt,T.Kyaw,B.Moody,andR.Mark.Mul-tiparameterintelligentmonitoringinintensivecareII(MIMIC-II):Apublic-accessintensivecareunitdatabase.CritCareMed,39(5):952–960,2011.[172]J.ˇSari´c,L.J.Jensen,R.Ouzounova,I.Rojas,andP.Bork.Extrac-tionofregulatorygene/proteinnetworksfromMEDLINE.Bioin-formatics,22(6):645–650,2006.[173]Y.Sasaki,Y.Tsuruoka,J.McNaught,andS.Ananiadou.HowtomakethemostofNEdictionariesinstatisticalNER.BMCBioinformatics,9(Suppl11):S5,2008.[174]J.Seki,K.Mostafa.Discoveringimplicitassociationsbetweengenesandhereditarydiseases.InPaciﬁcSymposiumonBiocom-puting,pages316–327,2007.[175]B.Settles.Biomedicalnamedentityrecognitionusingconditionalrandomﬁeldsandrichfeaturesets.InProceedingsoftheIn-ternationalJointWorkshoponNaturalLanguageProcessinginBiomedicineanditsApplications,pages104–107,2004.512MININGTEXTDATA[176]B.Settles.ABNER:anopensourcetoolforautomaticallytagginggenes,proteinsandotherentitynamesintext.Bioinformatics,21(4):3191–3192,2005.[177]H.Shatkay,F.Pan,A.Rzhetsky,andW.Wilbur.Multi-dimensionalclassiﬁcationofbiomedicaltext:towardautomated,practicalprovisionofhigh-utilitytexttodiverseusers.Bioinfor-matics,24(18):2086–2093,2008.[178]H.Shatkay,J.W.Wilbur,andA.Rzhetsky.Annotationguidelines,2005.http://www.ncbi.nlm.nih.gov/CBBresearch/Wilbur/AnnotationGuidelines.pdf.[179]D.Shen,J.Zhang,G.Zhou,J.Su,andC.-L.Tan.Eﬀectiveadap-tationofahiddenmarkovmodel-basednamedentityrecognizerforbiomedicaldomain.InProceedingsoftheACL2003WorkshoponNaturalLanguageProcessinginBiomedicine-Volume13,pages49–56,2003.[180]Z.Shi,G.Melli,Y.Wang,Y.Liu,B.Gu,M.Kashani,A.Sarkar,andF.Popowich.Questionansweringsummarizationofmultiplebiomedicaldocuments.InZ.KobtiandD.Wu,editors,AdvancesinArtiﬁcialIntelligence,volume4509ofLectureNotesinCom-puterScience,pages284–295.SpringerBerlin/Heidelberg,2007.[181]M.S.Simpson,D.Demner-Fushman,andG.R.Thoma.Evaluat-ingtheimportanceofimage-relatedtextforad-hocandcase-basedbiomedicalarticleretrieval.InAMIAAnnualSymposiumProceed-ings,pages752–756,2010.[182]N.Smalheiser.TheArrowsmithproject:2005statusreport.InA.Hoﬀmann,H.Motoda,andT.Scheﬀer,editors,DiscoverySci-ence,volume3735ofLectureNotesinComputerScience,pages26–43.SpringerBerlin/Heidelberg,2005.[183]N.Smalheiser,V.Torvik,A.Bischoﬀ-Grethe,L.Burhans,M.Gabriel,R.Homayouni,A.Kashef,M.Martone,G.Perkins,D.Price,A.Talk,andR.West.Collaborativedevelopmentofthearrowsmithtwonodesearchinterfacedesignedforlaboratoryin-vestigators.JournalofBiomedicalDiscoveryandCollaboration,1(1):8,2006.[184]N.Smalheiser,W.Zhou,andV.Torvik.AnneO’Tate:Atooltosupportuser-drivensummarization,drill-downandbrowsingofPubMedsearchresults.JournalofBiomedicalDiscoveryandCollaboration,3(1):2,2008.[185]N.R.SmalheiserandD.R.Swanson.UsingArrowsmith:Acomputer-assistedapproachtoformulatingandassessingscien-BiomedicalTextMining:ASurveyofRecentProgress513tiﬁchypotheses.ComputerMethodsandProgramsinBiomedicine,57(3):149–153,1998.[186]N.R.Smalheiser,V.I.Torvik,andW.Zhou.Arrowsmithtwo-nodesearchinterface:AtutorialonﬁndingmeaningfullinksbetweentwodisparatesetsofarticlesinMEDLINE.ComputerMethodsandProgramsinBiomedicine,94(2):190–197,2009.[187]L.Smith,L.Tanabe,R.JohnsonneeAndo,C.-J.Kuo,I.-F.Chung,C.-N.Hsu,Y.-S.Lin,R.Klinger,C.Friedrich,K.Ganchev,M.Torii,H.Liu,B.Haddow,C.Struble,R.Povinelli,A.Vlachos,W.Baumgartner,L.Hunter,B.Carpenter,R.Tzong-HanTsai,H.-J.Dai,F.Liu,Y.Chen,C.Sun,S.Katrenko,P.Adriaans,C.Blaschke,R.Torres,M.Neves,P.Nakov,A.Divoli,M.Mana-Lopez,J.Mata,andW.Wilbur.OverviewofBioCreAtIveII:Genementionrecognition.GenomeBiology,9(Suppl2):S2,2008.[188]M.Q.Stearns,C.Price,K.A.Spackman,andA.Y.Wang.SNOWMEDclinicalterms:Overviewofthedevelopmentprocessandprojectstatus.InProceedingsoftheAMIASymposium,pages662–666,2001.[189]D.R.Swanson.Fishoil,Raynaud’ssyndrome,andundiscoveredpublicknowledge.PerspectivesinBiologyandMedicine,30(1):7–18,1986.[190]D.R.Swanson.Migraineandmagnesium:Elevenneglectedcon-nections.PerspectivesinBiologyandMedicine,31(4):526–557,1988.[191]D.R.Swanson.SomatomedinCandarginine:Implicitconnectionsbetweenmutuallyisolatedliteratures.PerspectivesinBiologyandMedicine,33(2):157–186,1990.[192]D.R.Swanson.Complementarystructuresindisjointsciencelit-eratures.InProceedingsofthe14thAnnualInternationalACMSIGIRConferenceonResearchandDevelopmentinInformationRetrieval,pages280–289,1991.[193]D.R.SwansonandN.R.Smalheiser.Aninteractivesystemforﬁndingcomplementaryliteratures:Astimulustoscientiﬁcdiscov-ery.ArtiﬁcialIntelligence,91(2):183–203,1997.[194]D.R.Swanson,N.R.Smalheiser,andA.Bookstein.Informationdiscoveryfromcomplementaryliteratures:Categorizingvirusesaspotentialweapons.JournaloftheAmericanSocietyforInforma-tionScienceandTechnology,52(10):797–812,2001.514MININGTEXTDATA[195]K.Takahashi,A.Koike,andT.Takagi.Questionansweringsysteminbiomedicaldomain.InProceedingsofthe15thInternationalConferenceonGenomeInformatics,pages161–162,2004.[196]K.TakeuchiandN.Collier.Bio-medicalentityextractionus-ingsupportvectormachines.ArtiﬁcialIntelligenceinMedicine,33(2):125–137,2005.[197]R.M.Terol,P.Mart´ınez-Barco,andM.Palomar.Aknowledgebasedmethodforthemedicalquestionansweringproblem.Com-putersinBiologyandMedicine,37(10):1511–1521,2007.[198]P.Thompson,S.Iqbal,J.McNaught,andS.Ananiadou.Con-structionofanannotatedcorpustosupportbiomedicalinforma-tionextraction.BMCBioinformatics,10(1):349,2009.[199]V.I.TorvikandN.R.Smalheiser.Aquantitativemodelforlink-ingtwodisparatesetsofarticlesinMEDLINE.Bioinformatics,23(13):1658–1665,2007.[200]TREC-9ﬁlteringtrackcollections.http://trec.nist.gov/data/t9_filtering.html.[201]TRECgenomicstrackdata.http://ir.ohsu.edu/genomics/data.html.[202]R.Tsai,W.-C.Chou,Y.-S.Su,Y.-C.Lin,C.-L.Sung,H.-J.Dai,I.Yeh,W.Ku,T.-Y.Sung,andW.-L.Hsu.BIOSMILE:Aseman-ticrolelabelingsystemforbiomedicalberbsusingamaximum-entropymodelwithautomaticallygeneratedtemplatefeatures.BMCBioinformatics,8(1):325,2007.[203]Y.Tsuruoka,M.Miwa,K.Hamamoto,J.Tsujii,andS.Anani-adou.Discoveringandvisualizingindirectassociationsbetweenbiomedicalconcepts.Bioinformatics,27(13):i111–i119,2011.[204]Y.TsuruokaandJ.Tsujii.Boostingprecisionandrecallofdictionary-basedproteinnamerecognition.InProceedingsoftheACL2003WorkshoponNaturalLanguageProcessinginBiomedicine-Volume13,pages41–48,2003.[205]Y.TsuruokaandJ.Tsujii.Probabilistictermvariantgeneratorforbiomedicalterms.InProceedingsofthe26thAnnualInterna-tionalACMSIGIRConferenceonResearchandDevelopmentinInformaionRetrieval,pages167–173,2003.[206]Y.Tsuruoka,J.Tsujii,andS.Ananiadou.FACTA:Atextsearchengineforﬁndingassociatedbiomedicalconcepts.Bioinformatics,24(21):2559–2560,2008.BiomedicalTextMining:ASurveyofRecentProgress515[207]O.Tuason,L.Chen,L.H.,andC.Friedman.Biologicalnomen-clatures:Asourceoflexicalknowledgeandambiguity.InPaciﬁcSymposiumonBiocomputing,pages238–249,2004.[208]H.TurtleandW.B.Croft.Evaluationofaninferencenetwork-basedretrievalmodel.ACMTransactionsonInformationSystems,9:187–222,1991.[209]Orangebook:Approveddrugproductswiththerapeuticequiv-alenceevaluations.http://www.accessdata.fda.gov/scripts/cder/ob/default.cfm.[210]Databases,resources&APIs.http://wwwcf2.nlm.nih.gov/nlm_eresources/eresources/search_database.cfm.[211]UniversityofPittsburghNLPrepository.http://www.dbmi.pitt.edu/nlpfront.[212]Y.Usami,H.-C.Cho,N.Okazaki,andJ.Tsujii.Automaticacqui-sitionofhugetrainingdataforbio-medicalnamedentityrecog-nition.InProceedingsofBioNLP2011Workshop,pages65–73,2011.[213]O.Uzuner.Recognizingobesityandcomorbiditiesinsparsedata.JournaloftheAmericanMedicalInformaticsAssociation,16(5):561–570,2009.[214]O.Uzuner,I.Goldstein,Y.Luo,andI.Kohane.Identifyingnpa-tientsmokingstatusfrommedicaldischargerecords.JournaloftheAmericanMedicalInformaticsAssociation,15(1):14–24,2008.[215]O.Uzuner,I.Solti,andE.Cadag.Extractingmedicationinfor-mationfromclinicaltext.JournaloftheAmericanMedicalInfor-maticsAssociation,17(5):514–518,2010.[216]O.Uzuner,B.R.South,S.Shen,andS.L.DuVall.2010i2b2/VAchallengeonconcepts,assertions,andrelationsinclini-caltext.JournaloftheAmericanMedicalInformaticsAssociation,18(5):552–556,2011.[217]V.Vincze,G.Szarvas,R.Farkas,G.Mora,andJ.Csirik.TheBio-Scopecorpus:Biomedicaltextsannotatedforuncertainty,negationandtheirscopes.BMCBioinformatics,9(Suppl11):S9,2008.[218]A.VlachosandC.Gasperin.Bootstrappingandevaluatingnamedentityrecognitioninthebiomedicaldomain.InProceedingsoftheHLT-NAACLBioNLPWorkshoponLinkingNaturalLanguageandBiology,pages138–145,2006.[219]T.Wattarujeekrit,P.Shah,andN.Collier.PASBio:Predicate-argumentstructuresforeventextractioninmolecularbiology.BMCBioinformatics,5(1):155,2004.516MININGTEXTDATA[220]M.Weeber,H.Klein,L.T.W.deJong-vandenBerg,andR.Vos.Usingconceptsinliterature-baseddiscovery:SimulatingSwanson’sRaynaud-ﬁshoilandmigraine-magnesiumdiscoveries.JournaloftheAmericanSocietyforInformationScienceandTechnology,52(7):548–557,2001.[221]W.Weiming,D.Hu,M.Feng,andL.Wenyin.Automaticclin-icalquestionansweringbasedonUMLSrelations.InThirdIn-ternationalConferenceonSemantics,KnowledgeandGrid,pages495–498,2007.[222]J.W.Wilbur,A.Rzhetsky,andH.Shatkay.Newdirectionsinbiomedicaltextannotation:Deﬁnitions,guidelinesandcorpuscon-struction.BMCBioinformatics,7:356,2006.[223]G.Williams,P.Davis,A.Rogers,T.Bieri,P.Ozersky,andJ.Spi-eth.Methodsandstrategiesforgenestructurecurationinworm-base.Database,2011.[224]K.Yamamoto,T.Kudo,A.Konagaya,andY.Matsumoto.Proteinnametaggingforbiomedicalannotationintext.InProceedingsoftheACL2003WorkshoponNaturalLanguageProcessinginBiomedicine-Volume13,pages65–72,2003.[225]J.Yang,A.M.Cohen,andW.Hersh.AutomaticsummarizationofmousegeneinformationbyclusteringandsentenceextractionfromMEDLINEabstracts.InAMIAAnnualSymposiumProceedings,pages831–835,2007.[226]A.Yeh,A.Morgan,M.Colosimo,andL.Hirschman.BioCreAtIvEtask1A:Genementionﬁndingevaluation.BMCBioinformatics,6(Suppl1):S2,2005.[227]M.Yetisgen-YildizandW.Pratt.Usingstatisticalandknowledge-basedapproachesforliterature-baseddiscovery.JournalofBiomedicalInformatics,39(6):600–611,2006.[228]M.Yetisgen-YildizandW.Pratt.Anewevaluationmethodol-ogyforliterature-baseddiscoverysystems.JournalofBiomedicalInformatics,42(4):633–643,2009.[229]I.Yoo,X.Hu,andI.-Y.Song.Acoherentgraph-basedsemanticclusteringandsummarizationapproachforbiomedicalliteratureandanewsummarizationevaluationmethod.BMCBioinformat-ics,8(Suppl9):S4,2007.[230]H.Yu,S.Agarwal,M.Johnston,andA.Cohen.Areﬁgureleg-endssuﬃcient?Evaluatingthecontributionofassociatedtexttobiomedicalﬁgurecomprehension.JournalofBiomedicalDiscoveryandCollaboration,4(1):1,2009.BiomedicalTextMining:ASurveyofRecentProgress517[231]H.YuandY.-G.Cao.Automaticallyextractinginformationneedsfromadhocclinicalquestions.InAMIAAnnualSymposiumPro-ceedings,pages96–100,2008.[232]H.YuandM.Lee.Accessingbioscienceimagesfromabstractsentences.Bioinformatics,22(14):e547–e556,2006.[233]H.Yu,M.Lee,D.Kaufman,J.Ely,J.A.Osheroﬀ,G.Hripcsak,andJ.Cimino.Development,implementation,andacognitiveevaluationofadeﬁnitionalquestionansweringsystemforphysi-cians.JournalofBiomedicalInformatics,40(3):236–251,2007.[234]H.YuandC.Sable.BeingErlangShen:Identifyinganswerablequestions.InProceedingsoftheNineteenthInternationalJointConferenceonArtiﬁcialIntelligenceonKnowledgeandReasoninforAnsweringQuestions,pages6–14,2005.[235]H.Yu,C.Sable,andH.Zhu.Classifyingmedicalquestionsbasedonanevidencetaxonomy.InProceedingsoftheAAAI2005Work-shoponQuestionAnsweringinRestrictedDomains,2005.[236]G.Zhou,D.Shen,J.Zhang,J.Su,andS.Tan.Recognitionofpro-tein/genenamesfromtextusinganensembleofclassiﬁers.BMCBioinformatics,6(Suppl1):S7,2005.[237]P.ZweigenbaumandD.Demner-Fushman.Advancedliterature-miningtools.InD.Edwards,J.Stajich,andD.Hansen,editors,Bioinformatics:ToolsandApplications,pages347–380.Springer,2009.[238]P.Zweigenbaum,D.Demner-Fushman,H.Yu,andK.B.Cohen.Frontiersofbiomedicaltextmining:Currentprogress.BrieﬁngsinBioinformatics,8(5):358–375,2007.    C.C. Aggarwal and C.X. Zhai (eds.), Mining Text Data, DOI 10.1007/978-1-4614-3223-4,

Indexχ2-statistic,170k-MeansClustering,93k-MedoidsClustering,92AgglomerativeClustering,90AspectSentimentClassiﬁcation,433Aspect-BasedOpinionSummary,420BackgroundKnowledgeBase,404Bagging,210Baum=WelchAlgorithm,281BayesianNetworkApplications,277BayesianNetworks,276BayesianTopicModels,53BernoulliMultivariateModel,183BiologicalQuestionAnswering,491BiomedicalInformationExtraction,472BiomedicalMining,465BiomedicalRelationExtraction,472BiomedicalTextAnnotation,469BiomedicalTextMiningResources,467BioNLP,472Boosting,210BoostinginTransferLearning,233BOWToolkit,78,164BrowsinginScatter/Gather,97Buckshot,95BurstyFeaturesforStreamClustering,113,304C4.5Classiﬁcation,178CentroidSummarization,50Chaining,91ChineseRestaurantProcess,269ClassiﬁcationImprovementwithUnla-beledData,192ClassifyingTextStreams,312CLASSIT,92,299ClusterReﬁnementHypothesis,97ClusteringTextinNetworks,115ClusteringTextStreams,110ClusteringwithFrequentPhrases,105Co-clusteringwithGraphPartitioning,104Co-clusteringWordsandDocuments,103Co-training,191COBWEB,92,299CollaborativeQuestionAnswering,395CollectiveClassiﬁcationofEmails,208CommunityDetectionwithEdgeCon-tent,118CommunityDetectionwithNodeCon-tent,117ComparativeOpinions,418,441CompleteLinkageClustering,92CompositeKernels,28ConceptDecompositionforClustering,85ConditionalRandomFields,20,285ConstrainedProbabilisticModels,287ContextinSummarization,56Corpus-basedApproachforOpinionMin-ing,430CorrelatedBurstyTopicPatterns,311Cost-SensitiveClassiﬁcation,212CRFApplications,286CrossDomainTextClassiﬁcation,225CrossTextandVisualContentMining,374Cross-DomainEnsembleLearning,232Cross-LingualInformationRetrieval,324Cross-LingualMining,324DecisionTrees,176DependencyGrammar,441Dictionary-basedApproachforOpinionMining,429DimensionalityReduction,130DirichletDistribution,133DirichletProcess,270DirichletProcessMixtureModel,271Distance-basedClusteringAlgorithms,89Distance-basedPartitioningAlgorithms,92DNFRulesforClassiﬁcation,179DocumentSentimentClassiﬁcation,422DynamicTopicModeling,151EMAlgorithm,266© Springer Science+Business Media, LLC 2012 519 
 
520MININGTEXTDATAEMforClassiﬁcation,192EMforSemi-SupervisedClustering,119EmailNetworkClassiﬁcation,208EmailSpamFiltering,165,186EmailSummarization,59EMPathIE,476EnsembleLearning,209Entropy-basedUnsupervisedFeatureSe-lection,83EvaluationofInformationExtractionMethods,33EventDetectioninSocialMedia,393EventExtractionfromBiomedicalData,482EvolutionAnalysisinTextStreams,316EvolutioninBlogStreams,317ExtractiveSummarization,44FeatureCompressionwithClustering,85FeatureSelectionforTextClassiﬁcation,167FeatureSelectionforTextClustering,81FeatureTransformationforTextCluster-ing,81Feature-basedTransferLearning,235Fisher’sLinearDiscriminant,173Fractionation,95Frequency-basedFeatureSelection,81FrequentWordPatternsforClustering,100GaussianMixtureModel,263GeneralizedSingularValueDecomposi-tion,175GenerativeProcess,133GibbsSampling,145,268GiniIndex,168GlobalSummarySelection,65Graph-basedSemi-SupervisedClustering,119Graph-basedSummarization,61GraphicalModels,275GroupSpamDetectioninOpinions,450Group-AverageLinkageClustering,91HeterogeneousLabelSpace,243HeterogeneousTransferLearning,239HiddenMarkovModels,278HiddenMarkovModelsinNamedEntityRecognition,18HierarchicalClassiﬁcation,186HierarchicalClustering,90HMMApplications,281HMRFforSemi-SupervisedClustering,119HyperlinksforTranslingualMining,351IncrementalLSI,137IndicatorRepresentationforSummariza-tion,60InformationExtraction,11InformationGain,169Information-TheoreticCo-clustering,105Instance-basedTransfer,231InverseDocumentFrequency,80iTopicModel,118JointVisualandTextMining,370KernelMethods,26LagrangianOptimizationinNMF,87LAIR2,98LatentDirichletAllocation,108,130,142,264LatentSemanticAnalysis,52LatentSemanticIndexing,52,84,130,133LDA,108,130,142,264LDAModelTraining,144LemurToolkit,78LexicalChainsforSummarization,50LexicalTranslationModel,327LinearClassiﬁers,176,193LinearDiscriminantAnalysis,173LinkandTextAnalyticsinSocialMedia,400LinkedDataClassiﬁcation,203Literature-basedDiscoveryfromBiomed-icalText,492LLLGenicExtractionChallenge,479LLSFMethod,196LocalFeatureSelection,104LocalitySensitiveHashing,311LSH,311LSI,84,130,133LSIandPCARelationship,85LSIandPLSIRelationships,139,140LSIImplementationIssues,135MachineLearningforSummarization,60MachineTranslationinTranslingualMin-ing,325MapReduceinTextMining,289MarkovLogicNetwork,286MarkovRandomFields,282MatchingParallelPages,339MatrixFactorization,86MatrixFactorizationforLinkedTextClassiﬁcation,209MaximalMarginRelevanceforSumma-rization,64MaximumEntropyMarkovModels,19MedicalQuestionAnswering,489MetaMap,471INDEX521Microblogging,388MixtureModelingforClassiﬁcation,191MixtureModelingforTextClassiﬁcation,190MixtureModels,261MixtureofUnigrams,263MRFApplications,284MRFforLinkedTextClustering,116MultimediaTextMining,362MultinomialDistribution,132,188MutualInformationforClustering,105MutualInformationforFeatureSelection,169NaiveBayesClassiﬁer,181NaiveBayesforLinkedTextClassiﬁca-tion,205NamedEntityRecognition,11,15,473NearestNeighborClassiﬁer,201NetPLSA,118NeuralNetworkClassiﬁers,197,315NeuralnetworksforStreamClassiﬁcation,315NewsFiltering,164NMF,86Non-negativeMatrixFactorization,86Objective-CenteredClassiﬁcation,212OCFS,175One-ClassStreamClassiﬁcation,314OnlineSphericalk-MeansAlgorithm,110,299OpenInformationExtraction,32OpinionLexiconExpansion,429OpinionMining,416OpinionOrientations,418OpinionSpamDetection,447OpinionSpamLearning,448OpinionUtility,451OptimalOrthogonalCentroidFeatureSe-lection,175ORBIT,472OSKM,110,299PachinkoMachine,187ParallelLearningAlgorithms,288PASTA,476PCA,84PerceptronAlgorithm,198PERSIVAL,487Phrase-basedModelsforTranslingualMining,329Pitman-YorProcess,274PLSI,108,140,264Polarities,418PrincipalComponentAnalysis,84ProbabilisticDocumentClustering,107ProbabilisticLatentSemanticIndexing,108,140,264ProbabilisticModelswithConstraints,287ProbabilisticTechniquesforTextMining,259ProjectedClustering,103ProjectionsforDocumentClustering,98PrototypeHierarchiesforSupervision,120Proximity-basedClassiﬁers,200Query-FocusedSummarization,58QuestionAnsweringforBiomedicalData,488QuestionAnsweringinSocialMedia,395RandomWalksforLinkedTextClassiﬁ-cation,206RegularOpinions,417RegularizationofLinkedText,207RelationDiscoveryandTemplateInduc-tion,31RelationExtraction,11,22RelationalTopicModels,153RelaxationLabelingforLinkedTextClas-siﬁcation,204ReviewUtility,451RIPPER,181RocchioMethod,202Rule-basedApproachinNamedEntityRecognition,16Rule-basedClassiﬁers,178Scatter/Gather,94ScientiﬁcArticleSummarization,58SeedPhraseExtraction,402SemanticFeatureGeneration,404,405SemanticGapinSocialMedia,398Semi-SupervisedClustering,118SentenceClusteringforSummarization,55SentenceSubjectivityinSentimentClas-siﬁcation,426SentimentAnalysis,416SentimentClassiﬁcation,422SentimentConsistency,430SentimentOrientations,418Sequence-basedKernels,26SideInformationinTextClustering,116SingleLinkageClustering,91SingularValueDecomposition,84,133SleepingExperts,181,315SocialMedia,386SocialStreams,310,394SocialTagging,397SpamFiltering,165,186,313522MININGTEXTDATAStatisticalLearningApproachinNamedEntityRecognition,17StatisticalMachineTranslation,325StopWords,81StreamMining,297SubspaceClustering,103SummarizationofBiomedicalData,484SummarySentences,64SupervisedClusteringforDimensionalityReduction,172SupervisedLSI,171SupportVectorMachines,194,225SurroundingTextMininginMultimedia,364SVD,84,133SVM,194,225Syntax-basedModelsforTranslingualMining,333TagInformationEnrichment,369TagMininginMultimedia,366TagReﬁnementinMultimedia,367TAPER,187TDT,307TemporalDecayinStreamClustering,300TermContextinLSI,137TermContributionforFeatureSelection,83TermStrengthforFeatureSelection,82TextClustering,77TextMininginSocialMedia,385TextStreams,299TextSummarization,44ThemeEvolutionGraph,316ThemeShifts,317TopicDetectionandTracking,307TopicModelingApplications,154TopicModelinginNetworkedData,152TopicModelinginTextStreams,151,307TopicModels,107,130,139TopicRepresentationforSummarization,46TopicSignatures,114TopicWordsforSummarization,46TopicalDiﬀerenceFactorAnalysis,174TransferLearningforTextClassiﬁcation,225TransferLearninginTextMining,224TranslingualMining,324TranslingualRelationsfromMonolingualTexts,349Tree-basedKernels,27UniﬁedMedicalLanguageSystem,470UniversumforSupervisedClustering,120UnlabeledDatainClassiﬁcation,191UnsupervisedFeatureSelection,81UnsupervisedInformationExtraction,30UnsupervisedSentimentClassiﬁcation,424VariationalApproximationforLDA,145VariationalEMforLDA,147VisualRe-ranking,371WebDataClassiﬁcation,203WebStructureforCrosslingualMining,337WebSummarization,57WHIRL,201WordandPhrase-basedClustering,99WordClusters,99Word-basedModelsforTranslingualMin-ing,327